Help needed with webalizer - Suse

This is a discussion on Help needed with webalizer - Suse ; Suse 9.3 on an HP Pavilion x86. uname -a => Linux 2.6.11.4-21.17-default Webalizer 2.01.10. While trying to "make all" with the -DUSE_DNS definition I get an error message about not finding db.h. I can find no db.h file in the ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Help needed with webalizer

  1. Help needed with webalizer

    Suse 9.3 on an HP Pavilion x86.

    uname -a => Linux 2.6.11.4-21.17-default

    Webalizer 2.01.10.

    While trying to "make all" with the -DUSE_DNS definition I get an error
    message about not finding db.h. I can find no db.h file in the webalizer
    package so I'd appreciate some explanation as to where I might find this
    little piece.

    --
    Jim Carter
    Rogers, Arkansas



  2. Re: Help needed with webalizer

    Some being by the name of Jim Carter managed to piece together the
    following:

    > Suse 9.3 on an HP Pavilion x86.
    >
    > uname -a => Linux 2.6.11.4-21.17-default
    >
    > Webalizer 2.01.10.
    >
    > While trying to "make all" with the -DUSE_DNS definition I get an error
    > message about not finding db.h. I can find no db.h file in the webalizer
    > package so I'd appreciate some explanation as to where I might find this
    > little piece.
    >


    You need to install Berkeley DB.

    --
    I'm a dyslexic satanist, I worship the drivel... must be why I'm here

  3. Re: Help needed with webalizer

    On Sun, 07 Oct 2007 20:47:15 +0100, TGGA wrote:

    > Some being by the name of Jim Carter managed to piece together the
    > following:
    >
    >> Suse 9.3 on an HP Pavilion x86.
    >>
    >> uname -a => Linux 2.6.11.4-21.17-default
    >>
    >> Webalizer 2.01.10.
    >>
    >> While trying to "make all" with the -DUSE_DNS definition I get an error
    >> message about not finding db.h. I can find no db.h file in the webalizer
    >> package so I'd appreciate some explanation as to where I might find this
    >> little piece.
    >>

    >
    > You need to install Berkeley DB.


    Ok - installed BerkeleyDB 4.6, ran make and make install, then linked the
    db.h and db_cxx.h files into the /usr/include directory. New error message
    leads me to believe this isn't worth the trouble...

    ---------------------------------------
    gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c dns_resolv.c
    dns_resolv.c: In function `resolve_dns':
    dns_resolv.c:149: warning: passing arg 2 of pointer to function from incompatible pointer type
    dns_resolv.c:149: error: too few arguments to function
    dns_resolv.c: In function `dns_resolver':
    dns_resolv.c:203: error: `ENOENT' undeclared (first use in this function)
    dns_resolv.c:203: error: (Each undeclared identifier is reported only once
    dns_resolv.c:203: error: for each function it appears in.)
    dns_resolv.c:218: warning: implicit declaration of function `dbopen'
    dns_resolv.c:218: warning: assignment makes pointer from integer without a cast
    dns_resolv.c:228: error: too few arguments to function
    dns_resolv.c:235: error: too few arguments to function
    dns_resolv.c:275: warning: passing arg 2 of pointer to function from incompatible pointer type
    dns_resolv.c:275: error: too few arguments to function
    dns_resolv.c:329: error: too few arguments to function
    dns_resolv.c:359: error: too few arguments to function
    dns_resolv.c: In function `process_list':
    dns_resolv.c:558: error: `EINTR' undeclared (first use in this function)
    dns_resolv.c: In function `db_put':
    dns_resolv.c:745: warning: passing arg 2 of pointer to function from incompatible pointer type
    dns_resolv.c:745: error: too few arguments to function
    dns_resolv.c: In function `open_cache':
    dns_resolv.c:782: error: `ENOENT' undeclared (first use in this function)
    dns_resolv.c:793: warning: assignment makes pointer from integer without a cast
    dns_resolv.c:801: error: too few arguments to function
    dns_resolv.c:807: error: too few arguments to function
    dns_resolv.c: In function `close_cache':
    dns_resolv.c:829: error: too few arguments to function
    make: *** [dns_resolv.o] Error 1
    arroglx01:/usr/local/src/webalizer-2.01-10 #
    ----------------------------------------

    What's next? I don't think I should have to be hacking the dns_resolv.c
    code to get this name resolution thing working.

  4. Re: Help needed with webalizer

    On Sun, 07 Oct 2007 19:46:44 -0500
    Jim Carter wrote:

    > On Sun, 07 Oct 2007 20:47:15 +0100, TGGA wrote:
    >
    > > Some being by the name of Jim Carter managed to piece together the
    > > following:
    > >
    > >> Suse 9.3 on an HP Pavilion x86.
    > >>
    > >> uname -a => Linux 2.6.11.4-21.17-default
    > >>
    > >> Webalizer 2.01.10.
    > >>
    > >> While trying to "make all" with the -DUSE_DNS definition I get an
    > >> error message about not finding db.h. I can find no db.h file in
    > >> the webalizer package so I'd appreciate some explanation as to
    > >> where I might find this little piece.
    > >>

    > >
    > > You need to install Berkeley DB.

    >
    > Ok - installed BerkeleyDB 4.6, ran make and make install, then linked
    > the db.h and db_cxx.h files into the /usr/include directory. New
    > error message leads me to believe this isn't worth the trouble...
    >
    > ---------------------------------------
    > gcc -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1
    > -DUSE_DNS -c dns_resolv.c dns_resolv.c: In function `resolve_dns':
    > dns_resolv.c:149: warning: passing arg 2 of pointer to function from
    > incompatible pointer type dns_resolv.c:149: error: too few arguments
    > to function dns_resolv.c: In function `dns_resolver':
    > dns_resolv.c:203: error: `ENOENT' undeclared (first use in this
    > function) dns_resolv.c:203: error: (Each undeclared identifier is
    > reported only once dns_resolv.c:203: error: for each function it
    > appears in.) dns_resolv.c:218: warning: implicit declaration of
    > function `dbopen' dns_resolv.c:218: warning: assignment makes pointer
    > from integer without a cast dns_resolv.c:228: error: too few
    > arguments to function dns_resolv.c:235: error: too few arguments to
    > function dns_resolv.c:275: warning: passing arg 2 of pointer to
    > function from incompatible pointer type dns_resolv.c:275: error: too
    > few arguments to function dns_resolv.c:329: error: too few arguments
    > to function dns_resolv.c:359: error: too few arguments to function
    > dns_resolv.c: In function `process_list':
    > dns_resolv.c:558: error: `EINTR' undeclared (first use in this
    > function) dns_resolv.c: In function `db_put':
    > dns_resolv.c:745: warning: passing arg 2 of pointer to function from
    > incompatible pointer type dns_resolv.c:745: error: too few arguments
    > to function dns_resolv.c: In function `open_cache':
    > dns_resolv.c:782: error: `ENOENT' undeclared (first use in this
    > function) dns_resolv.c:793: warning: assignment makes pointer from
    > integer without a cast dns_resolv.c:801: error: too few arguments to
    > function dns_resolv.c:807: error: too few arguments to function
    > dns_resolv.c: In function `close_cache':
    > dns_resolv.c:829: error: too few arguments to function
    > make: *** [dns_resolv.o] Error 1
    > arroglx01:/usr/local/src/webalizer-2.01-10 #
    > ----------------------------------------
    >
    > What's next? I don't think I should have to be hacking the
    > dns_resolv.c code to get this name resolution thing working.


    Have you looked at awstats, it's a much better tool?
    http://awstats.sourceforge.net/
    9.3 version
    http://rpm.pbone.net/index.php3/stat...oarch.rpm.html
    --
    Cheers Malcolm (Linux Counter #276890)
    SLED 10.0 SP1 x86_64 Kernel 2.6.16.53-0.8-smp
    up 5 days 11:54, 1 user, load average: 0.08, 0.16, 0.17

+ Reply to Thread