| Summary: | failed to compile apache-1.3.28-r1 with sys-libs/db-4.1.25_p1-r1 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Masatomo Nakano (RETIRED) <nakano> |
| Component: | Current packages | Assignee: | Robin Johnson <robbat2> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | apache-bugs, mkennedy, pauldv |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | error log | ||
|
Description
Masatomo Nakano (RETIRED)
2003-10-15 22:43:49 UTC
The db-4 packages are not supposed to provide -ldb1, please attach the full log so we can see why it tries to use -ldb1 instead of -ldb-4. Currently though I have some problems during compilation with db-4.1 installed. I will try to fix them as soon as possible Please try to remerge after a while (giving the system time to sync up) Note that apache-1 will force the merging of db-4.0 as it does not work with db-4.1. This new version however should compile correctly. failed with another error.
gcc -c -I../../os/unix -I../../include -O3 -march=pentium4 -DHARD_SERVER_LIMIT=512
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX=22 -DTARGET=\"apache\"
-I/usr/include/db4 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI -DEAPI_MM
`../../apaci` -fpic -DSHARED_MODULE mod_digest.c && mv mod_digest.o mod_digest.lo
mod_rewrite.c: In function `lookup_map_dbmfile':
mod_rewrite.c:3068: error: `DBM' undeclared (first use in this function)
mod_rewrite.c:3068: error: (Each undeclared identifier is reported only once
mod_rewrite.c:3068: error: for each function it appears in.)
mod_rewrite.c:3068: error: `dbmfp' undeclared (first use in this function)
mod_rewrite.c:3069: error: `datum' undeclared (first use in this function)
mod_rewrite.c:3069: error: syntax error before "dbmkey"
mod_rewrite.c:3074: error: `dbmkey' undeclared (first use in this function)
mod_rewrite.c:3077: error: `dbmval' undeclared (first use in this function)
make[4]: *** [mod_rewrite.so] Error 1
make[4]: *** Waiting for unfinished jobs....
gcc -shared -o mod_digest.so mod_digest.lo -L/usr/lib -lm -lcrypt -ldb-4.0
-lmm -lexpat -lpthread
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/var/tmp/portage/apache-1.3.28-r1/work/apache_1.3.28/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/var/tmp/portage/apache-1.3.28-r1/work/apache_1.3.28'
make: *** [build] Error 2
!!! ERROR: net-www/apache-1.3.28-r1 failed.
!!! Function src_compile, Line 133, Exitcode 2
!!! compile problem
I added -I/usr/include/gdbm to CFLAGS, then did re-emerge it. It seems fine.
But I'm not familiar with apache/dbm :)
Please attach the full compilation log. The errors you are experiencing are probably caused by configuration settings in the start of the file. Attaching the build log helps us diagnose the problem. Created attachment 19331 [details]
error log
This is the error log.
The original problem is fixed. However it now complains about a missing ndbm.h, this is provided by the db-1.85 package which is pulled in with gdbm, try to remerge gdbm or db1 and try again. closing due to no response. pauldv notes it should be fixed. This problem is not fixed. I just had some trouble emerge-ing apache-1.3.29-r1 but it it failed to build because it couldn't find ndbm.h. This header exists, but it is in /usr/include/gdbm/ndbm.h, not at /usr/include/ndbm.h where the configure script expects. manually emerge-ing db-1.85-r1 installs the expected header files and allows apache to build. The apache ebuild file should have a dependency for db-1.85 |