Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 95562 invoked from network); 26 Apr 2007 16:09:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Apr 2007 16:09:16 -0000 Received: (qmail 84240 invoked by uid 500); 26 Apr 2007 16:09:22 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 84212 invoked by uid 500); 26 Apr 2007 16:09:22 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 84203 invoked by uid 99); 26 Apr 2007 16:09:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 09:09:22 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [80.229.52.226] (HELO grimnir.webthing.com) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2007 09:09:14 -0700 Received: from grimnir.webthing.com (localhost [127.0.0.1]) by grimnir.webthing.com (Postfix) with ESMTP id 203412146 for ; Thu, 26 Apr 2007 17:08:53 +0100 (BST) Date: Thu, 26 Apr 2007 17:08:52 +0100 From: Nick Kew To: modules-dev@httpd.apache.org Subject: Re: namespace collisions Message-ID: <20070426170852.2ab52f6d@grimnir> In-Reply-To: <6.2.1.2.2.20070426105750.03c59c80@postoffice7.mail.cornell.edu> References: <6.2.1.2.2.20070426105750.03c59c80@postoffice7.mail.cornell.edu> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 26 Apr 2007 11:16:57 -0400 Hong Ye wrote: > Hi, > > I have an Apache module which makes calls to functions in Kerberos > library. On the redHat server that I build my Apache module, there is > kerberos library that come with redHat. But I don't want to use that > one since it is too old. So I compiled and installed a newer version > of kerberos library in my own directory. In my build script, I > specified to use the kerberos library in my own directory for linking. > > After my Apache module is loaded, I found there are namespace > collisions. There are global symbols with the same name, one is from > the kerberos library I installed, the other one is from the kerberos > library that come with redHat. > > Can someone help me out? You can't expect to load multiple versions of the same library. Your module should specify the library as a dependency, and require [version x or later] as appropriate. Users can then load a version compatible with your module and any others that use the library. As regards distributions such as redhat, if their packaging system makes this unduly difficult for their users, you might want to raise the matter with them. This is one reason why it's preferable to use LoadFile to load your libraries, rather than link them in. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/