Received: (qmail 8166 invoked by uid 2012); 16 Sep 1999 05:22:03 -0000 Message-Id: <19990916052203.8165.qmail@hyperreal.org> Date: 16 Sep 1999 05:22:03 -0000 From: Ron Blum Reply-To: rblum@atg.com To: apbugs@hyperreal.org Subject: apxs for creating object for DSO fails on AIX X-Send-Pr-Version: 3.2 >Number: 5018 >Category: os-aix >Synopsis: apxs for creating object for DSO fails on AIX >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Sep 15 22:30:01 PDT 1999 >Closed-Date: Tue Dec 04 19:33:25 PST 2001 >Last-Modified: Tue Dec 04 19:33:25 PST 2001 >Originator: rblum@atg.com >Release: 1.3.9 >Organization: >Environment: AIX 4.3 AIX 3 4 008365814C00 gcc 2.91.60 >Description: Creating a module for use with DSO-enabled Apache 1.3.9 breaks when creating the module using apxs. The ld command that apxs issues results in the error ld: 0711-244 ERROR: No csects or exported symbols have been saved. $ .././servers/dynamo-7080/bin/apxs -o dynamo.so -c *.c gcc -DAIX=43 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/work/rblum/ATG/TestingServers/4.5.0/apache_1.3.9/servers/dynamo-7080/include -c CMLDRP.c cc1: warning: -fpic ignored for AIX (all code is position independent) gcc -DAIX=43 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/work/rblum/ATG/TestingServers/4.5.0/apache_1.3.9/servers/dynamo-7080/include -c DRPClient.c cc1: warning: -fpic ignored for AIX (all code is position independent) gcc -DAIX=43 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/work/rblum/ATG/TestingServers/4.5.0/apache_1.3.9/servers/dynamo-7080/include -c DRPServerIO.c cc1: warning: -fpic ignored for AIX (all code is position independent) gcc -DAIX=43 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/work/rblum/ATG/TestingServers/4.5.0/apache_1.3.9/servers/dynamo-7080/include -c dynamo.c cc1: warning: -fpic ignored for AIX (all code is position independent) gcc -DAIX=43 -U__STR__ -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/work/rblum/ATG/TestingServers/4.5.0/apache_1.3.9/servers/dynamo-7080/include -c pageroute.c cc1: warning: -fpic ignored for AIX (all code is position independent) ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -bI:/work/rblum/ATG/TestingServers/4.5.0/apache_1.3.9/servers/dynamo-7080/libexec/httpd.exp -lc -o dynamo.so pageroute.o dynamo.o DRPServerIO.o DRPClient.o CMLDRP.o ld: 0711-244 ERROR: No csects or exported symbols have been saved. apxs:Break: Command failed with rc=524288 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: From: Ron Blum To: apbugs@Apache.Org Cc: apbugs@Apache.Org Subject: os-aix/5018: Date: Thu, 09 Mar 2000 19:07:55 -0500 The solution is to run the apxs command with the -bexpall option, e.g. apxs -o dynamo.so -c *.c -bexpall It might be necessary to add the -blibpath:... argument in order to load other shared libraries. (Thanks to Frank Kim and Kari Karhi) -- Ron Blum rblum@atg.com Cambridge, MA State-Changed-From-To: open-suspended State-Changed-By: trawick State-Changed-When: Mon Dec 3 05:51:24 PST 2001 State-Changed-Why: While the normal AIX way of handling this (which you found) is fairly straightforward, I will consider implementing a better fix in Apache 2.0 apxs. This will help suppliers of third-party modules by not having to say "on AIX please add -Wl,-bexpall", as well as Apache users on AIX by not seeing the problem in the first place :) State-Changed-From-To: suspended-closed State-Changed-By: trawick State-Changed-When: Tue Dec 4 19:33:25 PST 2001 State-Changed-Why: With Apache 2.0, libtool handles the equivalent of -bexpall under the covers. A module author no longer has to give special apxs instructions for AIX. >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! ]