From apwww@hyperreal.org Fri Sep 12 11:43:14 1997 Received: (from apwww@localhost) by hyperreal.org (8.8.5/8.8.5) id LAA13441; Fri, 12 Sep 1997 11:43:14 -0700 (PDT) Message-Id: <199709121843.LAA13441@hyperreal.org> Date: Fri, 12 Sep 1997 11:43:14 -0700 (PDT) From: Bob Van Cleef Reply-To: vancleef@microunity.com To: apbugs@hyperreal.org Subject: make: Fatal error: Command failed for target `mod_auth_db.o' X-Send-Pr-Version: 3.2 >Number: 1128 >Category: mod_auth-any >Synopsis: make: Fatal error: Command failed for target `mod_auth_db.o' >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Sep 12 11:50:01 1997 >Originator: vancleef@microunity.com >Organization: >Release: apache_1.2.4 >Environment: SunOS 4.1.4 sun4m (Sparc 5) gcc version 2.7.2 db-2.2.6 >Description: gcc -c -Iregex -O2 -DSUNOS4 -DUSEBCOPY -DSTATUS mod_auth_db.c mod_auth_db.c: In function `get_db_pw': mod_auth_db.c:145: warning: assignment makes pointer from integer without a cast mod_auth_db.c:150: warning: passing arg 2 from incompatible pointer type mod_auth_db.c:150: too few arguments to function mod_auth_db.c:156: too few arguments to function *** Error code 1 make: Fatal error: Command failed for target `mod_auth_db.o' This also failed for apache 1.2.1 in exactly the same way... >How-To-Repeat: >Fix: It could be a db-2.2.6 incompatibility... Compiliation with the db options commented out: # Module db_auth_module mod_auth_db.o # Module dbm_auth_module mod_auth_dbm.o works fine... %0 >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Fri Sep 12 12:36:37 PDT 1997 State-Changed-Why: You need to use the 1.85 compatability mode as described in the db man page. Apache does not use the 2.x calls, but the 1.85 ones. You may be able to make it work by replacing the include with include or you may need to take more effort. From: Marc Slemko To: Apache bugs database Subject: Re: mod_auth-any/1128: make: Fatal error: Command failed for target `mod_auth_db.o' (fwd) Date: Fri, 12 Sep 1997 17:06:54 -0600 (MDT) ---------- Forwarded message ---------- Date: Fri, 12 Sep 1997 16:01:17 -0700 (PDT) From: Bob Van Cleef To: Marc Slemko Cc: apache-bugdb@apache.org, marc@apache.org Subject: Re: mod_auth-any/1128: make: Fatal error: Command failed for target `mod_auth_db.o' On Fri, 12 Sep 1997, Marc Slemko wrote: > Synopsis: make: Fatal error: Command failed for target `mod_auth_db.o' > > State-Changed-From-To: open-closed > State-Changed-By: marc > State-Changed-When: Fri Sep 12 12:36:37 PDT 1997 > State-Changed-Why: > You need to use the 1.85 compatability mode as described > in the db man page. Apache does not use the 2.x calls, > but the 1.85 ones. You may be able to make it work > by replacing the include with include > or you may need to take more effort. Replacing the entry in mod_auth_db.c with allowed the module to compile, but the failure moved onto the linking stage... with the non-definition of db_open. Done building module subdirectories gcc -c -Iregex -O2 -DSUNOS4 -DUSEBCOPY -DSTATUS mod_auth_db.c gcc -o httpd alloc.o http_main.o http_core.o http_config.o http_request.o http_log.o http_protocol.o rfc1413.o util.o util_script.o modules.o buff.o md5c.o util_md5.o explain.o http_bprintf.o util_date..o util_snprintf.o mod_env.o mod_log_config.o mod_mime.o mod_negotiation.o mod_status.o mod_info.o mod_include.o mod_dir.o mod_cgi.o mod_asis.o mod_imap.o mod_actions.o mod_userdir.o modules/proxy/libproxy.a mod_alias.o mod_access.o mod_auth.o mod_auth_anon.o mod_auth_db.o mod_auth_dbm.o mod_headers.o mod_usertrack.o mod_browser.o regex/libregex.a -ldbm collect2: ld returned 2 exit status ld: Undefined symbol _dbopen *** Error code 1 make: Fatal error: Command failed for target `httpd' Bob ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> Bob Van Cleef, Member of Technical Staff (408) 734-8100 MicroUnity Systems Engineering, Inc. FAX (408) 734-8136 475 Potrero Ave., Sunnyvale, CA 94086 vancleef@microunity.com From: Marc Slemko To: Bob Van Cleef Subject: Re: mod_auth-any/1128: make: Fatal error: Command failed for target `mod_auth_db.o' Date: Fri, 12 Sep 1997 18:32:35 -0600 (MDT) On Fri, 12 Sep 1997, Bob Van Cleef wrote: > On Fri, 12 Sep 1997, Marc Slemko wrote: > > > Synopsis: make: Fatal error: Command failed for target `mod_auth_db.o' > > > > State-Changed-From-To: open-closed > > State-Changed-By: marc > > State-Changed-When: Fri Sep 12 12:36:37 PDT 1997 > > State-Changed-Why: > > You need to use the 1.85 compatability mode as described > > in the db man page. Apache does not use the 2.x calls, > > but the 1.85 ones. You may be able to make it work > > by replacing the include with include > > or you may need to take more effort. > > Replacing the entry in mod_auth_db.c with > allowed the module to compile, but the failure moved onto the > linking stage... with the non-definition of db_open. You probably need to rebuild your db library and pass --enable-compat185 to configure to enable the 185 compat code. > > Done building module subdirectories > gcc -c -Iregex -O2 -DSUNOS4 -DUSEBCOPY -DSTATUS mod_auth_db.c > gcc -o httpd alloc.o http_main.o http_core.o http_config.o > http_request.o http_log.o http_protocol.o rfc1413.o util.o util_script.o > modules.o buff.o md5c.o util_md5.o explain.o http_bprintf.o util_date..o > util_snprintf.o mod_env.o mod_log_config.o mod_mime.o mod_negotiation.o > mod_status.o mod_info.o mod_include.o mod_dir.o mod_cgi.o mod_asis.o > mod_imap.o mod_actions.o mod_userdir.o modules/proxy/libproxy.a > mod_alias.o mod_access.o mod_auth.o mod_auth_anon.o mod_auth_db.o > mod_auth_dbm.o mod_headers.o mod_usertrack.o mod_browser.o > regex/libregex.a -ldbm > collect2: ld returned 2 exit status > ld: Undefined symbol > _dbopen > *** Error code 1 > make: Fatal error: Command failed for target `httpd' > > Bob > ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> > Bob Van Cleef, Member of Technical Staff (408) 734-8100 > MicroUnity Systems Engineering, Inc. FAX (408) 734-8136 > 475 Potrero Ave., Sunnyvale, CA 94086 vancleef@microunity.com > From: Bob Van Cleef To: Marc Slemko Subject: Re: mod_auth-any/1128: make: Fatal error: Command failed for target `mod_auth_db.o' Date: Mon, 15 Sep 1997 10:15:22 -0700 (PDT) It took three items: 1) edit mod_auth_db.c to use #include instead of 2) rebuild db-2.2.6 with the --enable-compat185 3) add -ldb to the link library list That done, it compiled and linked without any complaints. Thanks for the help. It might be worth adding this to the SunOS 4.1.4 erata. Bob >Unformatted: >Last-Modified: Fri Sep 12 12:36:37 PDT 1997