Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 18741 invoked by uid 6000); 18 Jul 1998 08:20:02 -0000 Received: (qmail 18728 invoked by uid 2001); 18 Jul 1998 08:20:01 -0000 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 X-Send-Pr-Version: 3.2 Subject: pending/2640: LoadFile is sort of useless, since symbols aren't global Sender: apache-bugdb-owner@apache.org Precedence: bulk >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: wbardwel@platinum.com >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 in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]