View previous topic :: View next topic |
Author |
Message |
ilukha n00b
Joined: 01 Jul 2003 Posts: 2 Location: EKTB, 66, RUS
|
Posted: Thu Jan 08, 2004 9:19 pm Post subject: A webalizer problem |
|
|
I need to install webalizer with DNS resolve support. But during emerge the following stuff occurs:
Code: | nullfield root # emerge webalizer
Calculating dependencies ...done!
>>> emerge (1 of 1) app-admin/webalizer-2.01.10-r4 to /
>>> md5 src_uri ;-) webalizer-2.01-10-src.tar.bz2
>>> Unpacking source...
>>> Unpacking webalizer-2.01-10-src.tar.bz2 to /var/tmp/portage/webalizer-2.01.10-r4/work
>>> Source unpacked.
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -O3 -mcpu=i686 -funroll-loops -pipe ) works... yes
checking whether the C compiler (gcc -O3 -mcpu=i686 -funroll-loops -pipe ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether ln -s works... yes
checking for a BSD compatible install... /bin/install -c
checking how to run the C preprocessor... gcc -E
checking whether char is unsigned... no
checking for db.h... yes
checking for errno.h... yes
checking for socket... yes
checking for sys/socket.h... yes
checking for main in -lnsl... yes
checking for main in -l44bsd... no
checking for main in -lm... yes
checking for main in -lz... yes
checking for gzrewind in -lz... yes
checking for main in -lpng... yes
checking for gdImagePng in -lgd... yes
checking for gd.h... /usr/include
checking for getopt.h... yes
checking for math.h... yes
checking default config dir... /etc
checking for language file... yes - english
updating cache ./config.cache
creating ./config.status
creating Makefile
linking ./lang/webalizer_lang.english to webalizer_lang.h
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c webalizer.c
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c hashtab.c
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c linklist.c
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c preserve.c
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -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: too few arguments to function
dns_resolv.c: In function `dns_resolver':
dns_resolv.c:218: warning: assignment makes pointer from integer without a cast
dns_resolv.c:228: too few arguments to function
dns_resolv.c:235: 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: too few arguments to function
dns_resolv.c:329: too few arguments to function
dns_resolv.c:359: too few arguments to 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: too few arguments to function
dns_resolv.c: In function `open_cache':
dns_resolv.c:793: warning: assignment makes pointer from integer without a cast
dns_resolv.c:801: too few arguments to function
dns_resolv.c:807: too few arguments to function
dns_resolv.c: In function `close_cache':
dns_resolv.c:829: too few arguments to function
make: *** [dns_resolv.o] Error 1
!!! ERROR: app-admin/webalizer-2.01.10-r4 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! (no error message)
|
econf string was changed into this:
Code: | econf --enable-dns --with-db=/usr/include --with-dblib=/usr/lib || die |
What is wrong with it? DB-1.85 is installed! _________________ emerge your world |
|
Back to top |
|
|
ilukha n00b
Joined: 01 Jul 2003 Posts: 2 Location: EKTB, 66, RUS
|
Posted: Fri Jan 09, 2004 8:26 am Post subject: |
|
|
Uncommented the following strings in ebuild:
Code: | mv dns_resolv.c dns_resolv.c.orig
sed -e 's%^\(#include \)\(<db.h>\)\(.*\)%\1<db1/db.h>\3%' \
dns_resolv.c.orig > dns_resolv.c
sed -i -e "s,db_185.h,db.h," configure |
Emerge output changed to:
Code: | nullfield root # emerge webalizer
Calculating dependencies ...done!
>>> emerge (1 of 1) app-admin/webalizer-2.01.10-r4 to /
>>> md5 src_uri ;-) webalizer-2.01-10-src.tar.bz2
>>> Unpacking source...
>>> Unpacking webalizer-2.01-10-src.tar.bz2 to /var/tmp/portage/webalizer-2.01.10-r4/work
>>> Source unpacked.
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -O3 -mcpu=i686 -funroll-loops -pipe ) works... yes
checking whether the C compiler (gcc -O3 -mcpu=i686 -funroll-loops -pipe ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether ln -s works... yes
checking for a BSD compatible install... /bin/install -c
checking how to run the C preprocessor... gcc -E
checking whether char is unsigned... no
checking for db.h... yes
checking for errno.h... yes
checking for socket... yes
checking for sys/socket.h... yes
checking for main in -lnsl... yes
checking for main in -l44bsd... no
checking for main in -lm... yes
checking for main in -lz... yes
checking for gzrewind in -lz... yes
checking for main in -lpng... yes
checking for gdImagePng in -lgd... yes
checking for gd.h... /usr/include
checking for getopt.h... yes
checking for math.h... yes
checking default config dir... /etc
checking for language file... yes - english
updating cache ./config.cache
creating ./config.status
creating Makefile
linking ./lang/webalizer_lang.english to webalizer_lang.h
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c webalizer.c
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c hashtab.c
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c linklist.c
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c preserve.c
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c dns_resolv.c
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c parser.c
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c output.c
gcc -I/usr/include -O3 -mcpu=i686 -funroll-loops -pipe -DETCDIR=\"/etc\" -DHAVE_DB_H=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -I/usr/include -c graphs.c
gcc -L/usr/lib -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o graphs.o -lgd -lpng -lz -lm -lnsl -ldb
dns_resolv.o(.text+0x26d): In function `dns_resolver':
: undefined reference to `dbopen'
dns_resolv.o(.text+0x1548): In function `open_cache':
: undefined reference to `dbopen'
collect2: ld returned 1 exit status
make: *** [webalizer] Error 1
!!! ERROR: app-admin/webalizer-2.01.10-r4 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! (no error message) |
Still no effect _________________ emerge your world |
|
Back to top |
|
|
guitard00d Tux's lil' helper
Joined: 19 Dec 2003 Posts: 81 Location: Minatare, NE, USA, Earth
|
Posted: Thu Mar 04, 2004 8:08 pm Post subject: |
|
|
Did you ever get this to work? I've tried rebuilding my entire system (including all dependencies) and webalizer still barfs at the same line number you listed. I'm almost tempted to write my own web site traffic analyzer and dump that POS webalizer. _________________ I know you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant...
--Richard Nixon |
|
Back to top |
|
|
Mitzi n00b
Joined: 16 Dec 2003 Posts: 45 Location: Cheshire, UK
|
Posted: Fri Mar 05, 2004 8:23 am Post subject: |
|
|
Whilst the Webalizer ebuild worked fine for me you could always try AWStats (http://awstats.sourceforge.net/) as an alternative...not too sure if an ebuild exists. |
|
Back to top |
|
|
guitard00d Tux's lil' helper
Joined: 19 Dec 2003 Posts: 81 Location: Minatare, NE, USA, Earth
|
Posted: Fri Mar 05, 2004 8:38 am Post subject: |
|
|
Mitzi wrote: | Whilst the Webalizer ebuild worked fine for me you could always try AWStats (http://awstats.sourceforge.net/) as an alternative...not too sure if an ebuild exists. |
The problem is that the webalizer ebuild is just f*cked up (surprise surprise). According to other messages posted here, I'm not the only one having problems with it and everybody that has posted a message stating they are having a problem is seeing the exact same crash during the compilation process.
Downloading the original webalizer source and building it that way fixes the problem (surprise surprise again). _________________ I know you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant...
--Richard Nixon |
|
Back to top |
|
|
Mitzi n00b
Joined: 16 Dec 2003 Posts: 45 Location: Cheshire, UK
|
Posted: Fri Mar 05, 2004 9:08 am Post subject: |
|
|
guitard00d wrote: | Mitzi wrote: | Whilst the Webalizer ebuild worked fine for me you could always try AWStats (http://awstats.sourceforge.net/) as an alternative...not too sure if an ebuild exists. |
The problem is that the webalizer ebuild is just f*cked up (surprise surprise). According to other messages posted here, I'm not the only one having problems with it and everybody that has posted a message stating they are having a problem is seeing the exact same crash during the compilation process.
Downloading the original webalizer source and building it that way fixes the problem (surprise surprise again). |
Well download the sources from the Webalizer web site, compile it yourself and then file a bug report about the ebuild. As I said though, checkout AWStats - it looks pretty impressive. |
|
Back to top |
|
|
|