Received: (qmail 53154 invoked by uid 501); 28 Jan 2001 12:28:02 -0000 Message-Id: <20010128122801.53153.qmail@apache.org> Date: 28 Jan 2001 12:28:01 -0000 From: Erik Norgaard Reply-To: norgaard@math.ku.dk To: submit@bugz.apache.org Subject: Build Error when compiling apache 1.3.14 under RedHat 7.0 X-Send-Pr-Version: 3.110 >Number: 7141 >Category: mod_auth-any >Synopsis: Build Error when compiling apache 1.3.14 under RedHat 7.0 >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sun Jan 28 04:30:00 PST 2001 >Closed-Date: Thu Feb 01 01:23:49 PST 2001 >Last-Modified: Thu Feb 01 01:23:49 PST 2001 >Originator: norgaard@math.ku.dk >Release: 1.3.14 >Organization: >Environment: RedHat 7.0 with Linux 2.2.16-22 kernel, gcc-2.96-54 >Description: Problem configuring apache 1.3.14 (with php4) on RedHat 7.0: The problem seems not to be with php (compiling without php gives the same errors): ./configure --prefix=/usr/local/apache --server-uid=25 --server-gid=25 --activate-module=src/modules/php4/libphp4.a --enable-module=most make Gives the following error: gcc -c -I../../os/unix -I../../include -DLINUX=2 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_auth_dbm.c In file included from mod_auth_dbm.c:84: /usr/include/db1/ndbm.h:42:16: db.h: No such file or directory make[4]: *** [mod_auth_dbm.o] Error 1 make[3]: *** [all] Error 1 make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/usr/local/src/apache_1.3.14/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/usr/local/src/apache_1.3.14' make: *** [build] Error 2 Following the suggestions in the bug-database: run configure with the extra option INCLUDES="-I/usr/include/db1": INCLUDES="-I/usr/include/db1" ./configure --prefix=/usr/local/apache --server-uid=25 --server-gid=25 --activate-module=src/modules/php4/libphp4.a --enable-module=most make The compilation seems to get on a little further: gcc -DLINUX=2 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` \ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/proxy/libproxy.a main/libmain.a ./os/unix/libos.a ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a -lm -lcrypt modules/proxy/libproxy.a(proxy_cache.o): In function `ap_proxy_cache_update': proxy_cache.o(.text+0x2038): the use of `mktemp' is dangerous, better use `mkstemp' modules/standard/libstandard.a(mod_auth_dbm.o): In function `get_dbm_pw': mod_auth_dbm.o(.text+0xc6): undefined reference to `dbm_open' mod_auth_dbm.o(.text+0x10e): undefined reference to `dbm_fetch' mod_auth_dbm.o(.text+0x157): undefined reference to `dbm_close' collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/usr/local/src/apache_1.3.14/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/usr/local/src/apache_1.3.14' make: *** [build] Error 2 Also tried the other suggestions with less luck. So how do I continue from here? NOTE: ls /usr/include/db1/ db.h mpool.h ndbm.h ls /usr/include/gdbm/ dbm.h gdbm.h ndbm.h >How-To-Repeat: The error also comes when compiling without php: Run: INCLUDES="-I/usr/include/db1" ./configure --prefix=/usr/local/apache --server-uid=25 --server-gid=25 --enable-module=most make >Fix: >Release-Note: >Audit-Trail: From: =?ISO-8859-1?Q?Erik_N=F8rgaard?= To: apbugs@Apache.Org Cc: Subject: Re: mod_auth-any/7141: Build Error when compiling apache 1.3.14 under RedHat 7.0 Date: Tue, 30 Jan 2001 13:33:29 +0100 (MET) > >Category: mod_auth-any > >Responsible: apache > >Synopsis: Build Error when compiling apache 1.3.14 under RedHat 7.0 Fix: Upgrade to Apache 1.3.17, compiles fine. State-Changed-From-To: open-closed State-Changed-By: fanf State-Changed-When: Thu Feb 1 01:23:48 PST 2001 State-Changed-Why: Fixed. Thanks for using Apache! >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]