DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27322>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27322 srclib/apr-util/configure script does not use LDFLAGS env var Summary: srclib/apr-util/configure script does not use LDFLAGS env var Product: Apache httpd-2.0 Version: 2.0.48 Platform: All OS/Version: Solaris Status: NEW Severity: Normal Priority: Other Component: Build AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] (*) I have the Berkeley DB 4.2 libraries installed in a non-standard location (/opt/ISWberkeleydb). (*) I use the following to configure Apache 2.0.48: LDFLAGS="-R/opt/ISWberkeleydb/lib -R/opt/GNUgdb/lib -R/opt/ISWopenssl/lib" \ PATH=/usr/local/bin:$PATH \ ../httpd-2.0.48/configure \ --prefix=/opt/ISWapache \ --with-gdbm=/opt/GNUgdbm \ --enable-modules=all \ --with-mpm=worker \ --enable-mods-shared=all \ --enable-ssl \ --with-ssl=/opt/ISWopenssl \ --enable-suexec \ --with-suexec-bin=/sbin/suexec \ --with-suexec-caller=apache \ --with-suexec-userbin=www \ --with-suexec-uidmin=10001 \ --with-suexec-gidmin=10001 \ --with-suexec-safepath=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin: /usr/local/bin \ --with-dbm=db4 \ --with-berkeley-db=/opt/ISWberkeleydb The configure script will not properly detect the Berkeley DB 4.2 libraries. If I add /opt/ISWberkeleydb/lib to the system search paths (using the crle command), the above configure command will work (so I have a workaround). (*) When I look into the config.log file in srclib/apr-util/config.log, I can see that the -R/opt/ISWberkeleydb/lib that I provided in the LDFLAGS environment variable is not being used: configure:13128: result: no configure:12933: checking db.h usability configure:12942: gcc -c -g -O2 -pthreads -I/opt/GNUgdbm/include -I/opt/ISWberke leydb/include conftest.c >&5 configure:12945: $? = 0 configure:12948: test -s conftest.o configure:12951: $? = 0 configure:12960: result: yes configure:12964: checking db.h presence configure:12971: gcc -E -I/opt/GNUgdbm/include -I/opt/ISWberkeleydb/include conf test.c configure:12977: $? = 0 configure:12995: result: yes configure:13013: checking for db.h configure:13020: result: yes configure:13036: checking for db configure:13099: gcc -o conftest -g -O2 -pthreads -I/opt/GNUgdbm/include -I/opt /ISWberkeleydb/include -L/opt/ISWberkeleydb/lib conftest.c -L/opt/GNUgdbm/lib -ldb >&5 configure:13102: $? = 0 configure:13104: ./conftest ld.so.1: ./conftest: fatal: libdb-4.2.so: open failed: No such file or directory /dsk/data0/build/httpd-2.0.48/srclib/apr-util/configure: line 1: 26875 Killed ./conftest$ac_exeext configure:13107: $? = 137 configure: program exited with status 137 configure: failed program was: #line 13056 "configure" #include "confdefs.h" #include <stdio.h> #include <db.h> main () { int major, minor, patch; db_version(&major, &minor, &patch); /* Sanity check: ensure that db.h constants actually match the db library */ if (major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR || patch != DB_VERSION_PATCH) exit (1); /* Run-time check: ensure the library claims to be the correct version. */ if (4 != -1) { if (major < 4) exit (1); if (major > 4) exit (0); } if (0 != -1) { if (minor < 0) exit (1); if (minor > 0) exit (0); } if (-1 == -1 || patch >= -1) exit (0); else exit (1); } configure:13128: result: no configure:13382: error: Berkeley db4 not found --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
