>Number: 2640 >Category: pending >Synopsis: LoadFile is sort of useless, since symbols aren't global >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Sat Jul 18 01:20:00 PDT 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >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: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]
