The following reply was made to PR config/2421; it has been noted by GNATS.
From: Albert Lunde <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], [EMAIL PROTECTED] Cc: Subject: Re: config/2421: problem specifying ndbm library for build ?with autoconfigure Date: Wed, 17 Jun 1998 18:22:24 -0500 At 1:46 AM -0500 6/12/98, Ralf S. Engelschall wrote: >In article <[EMAIL PROTECTED]> you wrote: > >> setenv LIBS "-lndbm" > >> A make with the Makefiles created works, but has -DNO_DBM_REWRITEMAP set. > >> Using -lndbm seemed to work on 1.2.6. Can you tell me what's wrong or >> how to find why ./helpers/find-dbm-lib is failing? > >The reason seems to be that your libndbm.a cannot be found. Perhaps it is >under a non-standard directory, so your linker is unable to find it. Try to >use > > setenv LIBS "-L/path/to/your/libs -lndbm" > >after finding out what /path/to/your/libs is. Perhaps something like >/usr/local/lib or such a non-standard dir. In any case first make sure libndbm >really exists on your system and determine where it stays. Then use these >conrete informations in LIBS. > > Ralf S. Engelschall > [EMAIL PROTECTED] > www.engelschall.com I've tried your suggestion, and it does not seem to work. First, libndbm.a is in /usr/lib, not an especially obscure place. When I ran "file /usr/lib/*dbm*" and "ls -ls /usr/lib/*dbm*" this was the output: - - - /usr/lib/libdbm.1: s800 shared library -not stripped /usr/lib/libdbm.a: archive file -s800 relocatable library /usr/lib/libdbm.sl: s800 shared library -not stripped /usr/lib/libndbm.a: archive file -s800 relocatable library /usr/lib/libndbm.sl: s800 shared library -not stripped /usr/lib/llib-ldbm: c program text /usr/lib/llib-ldbm.ln: lint library -r-xr-xr-x 1 bin bin 24576 Jun 10 1996 /usr/lib/libdbm.1 -r--r--r-- 2 bin bin 14944 May 30 1996 /usr/lib/libdbm.a lrwxr-xr-x 1 root sys 17 Jun 10 1996 /usr/lib/libdbm.sl -> /usr/lib/libdbm.1 -r--r--r-- 2 bin bin 14944 May 30 1996 /usr/lib/libndbm.a lrwxr-xr-x 1 root sys 17 Jun 10 1996 /usr/lib/libndbm.sl -> /usr/lib/libdbm.1 lr--r--r-T 1 root sys 27 Jun 10 1996 /usr/lib/llib-ldbm -> /usr/ccs/lib/lint/llib-ldbm lr--r--r-T 1 root sys 25 Jun 10 1996 /usr/lib/llib-ldbm.ln -> /usr/ccs/lib/llib-ldbm.ln - - - But I tried what you suggested anyway, running this script: - - - #!/usr/bin/csh # build apache 1.3 the way I like it # /usr/local/apache exists but is not a production directory # use this for early tests of this install approach setenv OPTIM "+O2" setenv CC "cc" setenv LIBS "-L/usr/lib -lndbm" /usr/bin/sh ./configure --verbose \ --enable-rule=PARANOID \ --enable-shared=max \ --runtimedir=logs \ --logfiledir=logs \ --sysconfdir=conf \ --enable-module=status \ --enable-module=info \ --enable-module=rewrite \ --enable-module=digest \ --enable-module=cern_meta \ --enable-module=expires \ --enable-module=headers \ --enable-module=setenvif # - - - This was the output: - - - Configuring for Apache, Version 1.3.0 Creating Makefile Creating Configuration.apaci in src + Rule SHARED_CORE=default + Rule STATUS=yes + Rule SOCKS4=no + Rule SOCKS5=no + Rule IRIXNIS=no + Rule IRIXN32=yes + Rule PARANOID=yes + Rule WANTHSREGEX=default + enabling mod_so for DSO support + Module env: yes [shared] + Module log_config: yes [shared] + Module log_agent: yes [shared] + Module log_referer: yes [shared] + Module mime_magic: yes [shared] + Module mime: yes [shared] + Module negotiation: yes [shared] + Module status: yes [shared] + Module info: yes [shared] + Module include: yes [shared] + Module autoindex: yes [shared] + Module dir: yes [shared] + Module cgi: yes [shared] + Module asis: yes [shared] + Module imap: yes [shared] + Module actions: yes [shared] + Module speling: yes [shared] + Module userdir: yes [shared] + Module proxy: yes [shared] + Module alias: yes [shared] + Module rewrite: yes [shared] + Module access: yes [shared] + Module auth: yes [shared] + Module auth_anon: yes [shared] + Module auth_dbm: yes [shared] + Module auth_db: yes [shared] + Module digest: yes [shared] + Module cern_meta: yes [shared] + Module expires: yes [shared] + Module headers: yes [shared] + Module usertrack: yes [shared] + Module example: yes [shared] + Module unique_id: yes [shared] + Module so: yes [static] + Module mmap_static: yes [shared] + Module setenvif: yes [shared] Creating Makefile in src + configured for HP-UX 10 platform + adding selected modules o status_module uses ConfigStart/End >> if [ "$RULE_STATUS" = "yes" ]; then >> CFLAGS="$CFLAGS -DSTATUS" >> fi o rewrite_module uses ConfigStart/End >> . ./helpers/find-dbm-lib >> if [ "x$found_dbm" = "x1" ]; then >> echo " enabling DBM support for mod_rewrite" >> else >> echo " disabling DBM support for mod_rewrite" >> echo " (perhaps you need to add -ldbm, -lndbm or -lgdbm to >>EXTRA_LIBS)" >> CFLAGS="$CFLAGS -DNO_DBM_REWRITEMAP" >> fi disabling DBM support for mod_rewrite (perhaps you need to add -ldbm, -lndbm or -lgdbm to EXTRA_LIBS) + doing sanity check on compiler and options Creating Makefile in src/support Creating Makefile in src/main Creating Makefile in src/ap Creating Makefile in src/regex Creating Makefile in src/os/unix Creating Makefile in src/modules/standard - - - I didn't bother to try the make again... (This is just speculation, but it it possible the test for the library is detecting some unrelated warning or error: One warning that comes to mind is the message: "/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (alias.o) was detected. The linked output may not run on a PA 1.x system." I've seen this show up in various builds on HP/UX 10.20, though not I think, the last build I did of apache 1.2.6. It doesn't affect the usability of the results.) It seems like I need to "get under the hood" to see how the test is failing, in more detail. --- Albert Lunde [EMAIL PROTECTED]