Received: (qmail 82297 invoked by uid 501); 11 Sep 2001 23:01:28 -0000 Message-Id: <20010911230128.82296.qmail@apache.org> Date: 11 Sep 2001 23:01:28 -0000 From: Kristin Simpson Reply-To: ksimpson@go2vanguard.com To: submit@bugz.apache.org Subject: apxs runtime error: breaks compilation X-Send-Pr-Version: 3.110 >Number: 8322 >Category: os-sunos >Synopsis: apxs runtime error: breaks compilation >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Sep 11 16:10:00 PDT 2001 >Closed-Date: >Last-Modified: Wed Sep 26 13:52:35 PDT 2001 >Originator: ksimpson@go2vanguard.com >Release: 1.3.20 >Organization: >Environment: SunOS SunGroup 5.6 Generic_105181-05 sun4u sparc SUNW,Ultra-5_10 SUN WRKSHP Compiler C/C++ SPARC >Description: While trying to compile mod_auth_pam.c as described in the apxs manual (http://httpd.apache.org/docs/programs/apxs.html), I get this error - apxs:Break: Command failed with rc=255. bash-2.03# /usr/local/apache/bin/apxs -c -lpam -ldl mod_auth_pam.c cc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/a pache/include -c mod_auth_pam.c "mod_auth_pam.c", line 405: warning: initialization type mismatch -o mod_auth_pam.so mod_auth_pam.o -lpam -ldl apxs:Break: Command failed with rc=255 also tried doing this compile by having apxs make the makefile using the following: $apxs -g -n pam_auth $make /usr/local/apache/bin/apxs -c -L/usr/lib -lpam -ldl mod_pam_auth.c cc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/a pache/include -c mod_pam_auth.c -o mod_pam_auth.so mod_pam_auth.o -L/usr/lib -lpam -ldl apxs:Break: Command failed with rc=255 *** Error code 1 make: Fatal error: Command failed for target `mod_pam_auth.so' Why is this happening?? >How-To-Repeat: You can repeat problem by going to the /src/modules/example directory in apache and do the following: $apxs -g -n example $make /usr/local/apache/bin/apxs -c mod_example.c cc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/usr/local/a pache/include -c mod_example.c -o mod_example.so mod_example.o apxs:Break: Command failed with rc=255 *** Error code 1 make: Fatal error: Command failed for target `mod_example.so' >Fix: >Release-Note: >Audit-Trail: Comment-Added-By: trawick Comment-Added-When: Wed Sep 26 13:52:35 PDT 2001 Comment-Added: I saw this today on Linux, AIX, and FreeBSD. For an unknown reason, the first time apache 1.3 is built apxs can be left with the variables for CFLAGS_SHLIB, LD_SHLIB, and LDFLAGS_SHLIB uninitialized. If I remove src/support/apxs and run make again, apxs gets built properly. I have no idea what the cause is. In fact, once it is built properly I can't figure out how to get it built improperly again :( Do you have any more clues to the problem by now? >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! ]