Received: (qmail 16508 invoked by uid 2012); 18 Jul 1998 08:10:21 -0000 Message-Id: <19980718081021.16507.qmail@hyperreal.org> Date: 18 Jul 1998 08:10:21 -0000 From: William Bardwell Reply-To: wbardwel@platinum.com To: apbugs@hyperreal.org Subject: LoadFile is sort of useless, since symbols aren't global X-Send-Pr-Version: 3.2 >Number: 2640 >Category: mod_dld >Synopsis: LoadFile is sort of useless, since symbols aren't global >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sat Jul 18 01:20:00 PDT 1998 >Last-Modified: Sat Jul 18 01:24:15 PDT 1998 >Originator: wbardwel@platinum.com >Organization: >Release: 1.3.0 >Environment: On Solaris 2.5.1, but I suspect the problem hits most or all unixes... >Description: atleast on Solaris, dlopen(X, RTLD_NOW) means that the symbols aren't viewable from other things which are dlopen-ed. This means that LoadFile can't be used to load shared libs that a module you are going to LoadModule in...so it is sort of useless... >How-To-Repeat: Well...I cause it by trying to write a module in C++, which needs the C++ lib to be loadable...but you should be able to look at the issue with-out repeating it... >Fix: I just changed the dlopen flags to be RTLD_NOW|RTLD_GLOBAL, and it fixes things. (might be more appropriate to only do that for LoadFile and not LoadModule, or make it an option for both.) Not sure what the dlopen symantics are on other platforms... >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Sat Jul 18 01:24:14 PDT 1998 State-Changed-Why: Thanks for the report. This has actually already been done for similar reasons; the changed version will be available in 1.3.1. Category-Changed-From-To: pending-mod_dld Category-Changed-By: marc Category-Changed-When: Sat Jul 18 01:24:14 PDT 1998 >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]