Return-Path: drow@false.org 
Received: from netgod.net (johnie@netgod.net [206.187.92.21])
	by netgod.net (8.9.0/8.9.0/Debian/GNU) with ESMTP id DAA08069
	for <johnie@netgod.net>; Sun, 21 Jun 1998 03:53:32 -0400
Received: from tln.lib.mi.us
	by netgod.net (fetchmail-4.4.7 IMAP)
	for <johnie/netgod.net> (single-drop); Sun, 21 Jun 1998 03:53:33 EDT
Received: from pub1.tln.lib.mi.us (root@pub1.tln.lib.mi.us [206.187.91.11])
	by debian.tln.org (8.8.8/8.8.8/Debian/Owns/U) with ESMTP id DAA04030
	for <johnie@tln.lib.mi.us>; Sun, 21 Jun 1998 03:40:51 -0400
Received: from master.debian.org (qmailr@debian.novare.net [205.229.104.5])
	by pub1.tln.lib.mi.us (8.8.8/8.8.8/Debian/GNU) with SMTP id DAA26276
	for <johnie@tln.lib.mi.us>; Sun, 21 Jun 1998 03:40:35 -0400
Received: (qmail 19453 invoked by uid 942); 21 Jun 1998 07:40:36 -0000
Delivered-To: johnie@debian.org
Received: (qmail 19450 invoked from network); 21 Jun 1998 07:40:35 -0000
Received: from unknown (HELO debian.webcardz.com) (209.146.34.38)
  by debian.novare.net with SMTP; 21 Jun 1998 07:40:35 -0000
Received: (from drow@localhost)
	by debian.webcardz.com (8.9.0/8.9.0/Debian/GNU) id DAA09237;
	Sun, 21 Jun 1998 03:42:27 -0400
Message-ID: <19980621034226.A9229@beta.false.org>
Date: Sun, 21 Jun 1998 03:42:26 -0400
From: Dan Jacobowitz <drow@false.org>
To: johnie@debian.org
Subject: [drow@beta.false.org: apache: apache modules can not dynamically load other modules]
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.91.1i
Status: RO
X-Status: 

----- Forwarded message from Dan Jacobowitz <drow@beta.false.org> -----

Received: (from drow@localhost)
	by debian.webcardz.com (8.9.0/8.9.0/Debian/GNU) id DAA09126;
	Sun, 21 Jun 1998 03:20:56 -0400
Date: Sun, 21 Jun 1998 03:20:56 -0400
Message-Id: <199806210720.DAA09126@debian.webcardz.com>
From: Dan Jacobowitz <drow@beta.false.org>
Subject: apache: apache modules can not dynamically load other modules
To: submit@bugs.debian.org
X-Mailer: bug 3.1.5
Status: RO
Content-Length: 1458
Lines: 36

Package: apache
Version: 1.3.0-2

Because the scope of apache modules is RTLD_NOW, their symbols are not visible
in global scope, which libperl.a specifically and perhaps others use to load
their modules, resulting in undefined symbol errors.  Loading apache modules
in global scope - a very ugly and possibly evil solution, true - fixes the problem.
It would be better to implement a GlobalModule directive to load only a specific
module globally, and there are probably even better solutions, but this works.


*** apache-mod-perl/apache-modperl-1.3.0-2-1.12/src/os/unix/os.c	Tue Apr 28 04:42:11 1998
--- apache-1.3.0/src/os/unix/os.c	Sun Jun 21 01:27:28 1998
***************
*** 37,41 ****
      (defined(__FreeBSD_version) && (__FreeBSD_version >= 220000))
!     return dlopen((char *)path, RTLD_NOW);
  #else
!     return dlopen(path, RTLD_NOW);
  #endif
--- 37,41 ----
      (defined(__FreeBSD_version) && (__FreeBSD_version >= 220000))
!     return dlopen((char *)path, RTLD_GLOBAL);
  #else
!     return dlopen(path, RTLD_GLOBAL);
  #endif


-- System Information
Debian Release: 2.0
Kernel Version: Linux debian 2.0.33 #2 Sun May 10 16:44:29 EST 1998 i586 unknown

Versions of the packages apache depends on:
ii  libc6           2.0.7pre3-1    The GNU C library version 2 (run-time files)
ii  mime-support    2.17-1         MIME files 'mime.types' & 'mailcap', and sup
ii  perl            5.004.04-6     Larry Wall's Practical Extracting and Report

----- End forwarded message -----
