Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 25566

Summary: webalizer fails to compile with sys-libs/db-3.2.9-r6
Product: Gentoo Linux Reporter: Frido Ferdinand <frido.ferdinand>
Component: New packagesAssignee: Donny Davies (RETIRED) <woodchip>
Status: RESOLVED DUPLICATE    
Severity: normal CC: pauldv, phosphan
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Frido Ferdinand 2003-07-30 04:25:40 UTC
gcc  -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o
dns_resolv.o graphs.o -lgd -lpng -lz -lm -lnsl -ldb1 
dns_resolv.o: In function `dns_resolver':
dns_resolv.o(.text+0x204): undefined reference to `__db185_open'
dns_resolv.o: In function `open_cache':
dns_resolv.o(.text+0x13a0): undefined reference to `__db185_open'
collect2: ld returned 1 exit status
make: *** [webalizer] Error 1

works perfectly on sys-libs/db-3.2.9-r2


Reproducible: Always
Steps to Reproduce:
1. emerge webalizer with sys-libs/db-3.2.9-r6
2.
3.
Comment 1 Frido Ferdinand 2003-07-30 04:42:34 UTC
after downgrading to db-3.2.9-r2 things seem to work
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2003-07-30 04:46:01 UTC
That looks like a duplicate, please correct me if I am wrong.

*** This bug has been marked as a duplicate of 25355 ***

*** This bug has been marked as a duplicate of 25355 ***
Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2003-07-30 04:56:22 UTC
Also it should only work because I allready fixed it
Comment 4 Frido Ferdinand 2003-07-30 05:23:29 UTC
I presume the fix is in app-admin/webalizer-2.01.10-r3, however thats the version that didn't compile. If it should be fixed by:

        # fix --enable-dns; our db1 headers are in /usr/include/db1
        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

this leaves my dns_resolv.c as:

#ifdef HAVE_DB_185_H
#include <db_185.h>                            /* on my RH6.0 system ?!?   */
#else
#include <db1/db.h>                                /* DB header ***************/
#endif /* HAVE_DB_185_H */

However in the Makefile I have: 

-DHAVE_DB_185_H=1

I think this is because I have sys-libs/db-1.85-r1 installed,don't know if this is proper behaviour, but if I remove this define from the makefile, make clean and make everything compiles.
Comment 5 Paul de Vrieze (RETIRED) gentoo-dev 2003-07-30 05:40:49 UTC
Sorry, I forgot to commit my fix, but that fix is really broken. The fix changes a  bit in the configure script. I believe it was a simple sed command. If you want it now, after the unpack stage do:

sed -i -e "s/db_185.h/db.h/" configure

That should fix things.