| Summary: | webalizer fails to compile with sys-libs/db-3.2.9-r6 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Frido Ferdinand <frido.ferdinand> |
| Component: | New packages | Assignee: | 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
after downgrading to db-3.2.9-r2 things seem to work 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 *** Also it should only work because I allready fixed it 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.
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. |