Received: (qmail 6440 invoked by uid 2012); 15 Nov 1999 00:11:58 -0000 Message-Id: <19991115001158.6439.qmail@hyperreal.org> Date: 15 Nov 1999 00:11:58 -0000 From: Chris Graham Reply-To: chrisg@webwombat.com.au To: apbugs@hyperreal.org Subject: AIX - dlopen() problems fixed X-Send-Pr-Version: 3.2 >Number: 5309 >Category: os-aix >Synopsis: AIX - dlopen() problems fixed >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sun Nov 14 16:20:00 PST 1999 >Closed-Date: Mon Dec 03 05:58:56 PST 2001 >Last-Modified: Mon Dec 03 05:58:56 PST 2001 >Originator: chrisg@webwombat.com.au >Release: 1.3.9 >Organization: >Environment: AIX arachnide9aix 3 4 000970664C00 AIX 4.3.2 IBM Visual Age C Compiler >Description: In trying to generate a 64 bit version of Apache with DSO support, it was found that the original "do it yourself" code [in os-aix-dso.c] does not work with a 64 bit build of Apache. To work around this, I had to either fix the supplied code, or get Apache to use real AIX dlopen... etc. I chose the latter. The fix ented up being quite simple really. See below. >How-To-Repeat: >Fix: In src/os/unix/os.h /* * Do not use native AIX DSO support (Only for AIX 4.1 and below) */ #if AIX <= 41 #undef HAVE_DLFCN_H #endif In src/os/unix/os.c /* * Insert the DSO emulation code for AIX (Only for AIX 4.1 and below) */ #if AIX <= 41 #include "os-aix-dso.c" #endif And the most important bit: In src/support/httpd.exp: Change the first line of httpd.exp from: #! to: #! . And bingo, you have have a 64 bit, native DSO support enabled version of Apache. >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: trawick State-Changed-When: Mon Dec 3 05:58:56 PST 2001 State-Changed-Why: This has subsequently been put in Apache (quite a few 1.3 "dot" releases ago). Note that we use native dlopen() for 4.3 and above, not 4.2 and above like you suggested. The fix for the first line to httpd.exp is committed as well. >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! ]