Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 4661 invoked from network); 11 Nov 2006 10:34:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Nov 2006 10:34:09 -0000 Received: (qmail 30652 invoked by uid 500); 11 Nov 2006 10:34:20 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 30475 invoked by uid 500); 11 Nov 2006 10:34:19 -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 30466 invoked by uid 99); 11 Nov 2006 10:34:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Nov 2006 02:34:19 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Sat, 11 Nov 2006 02:34:04 -0800 Received: from grimnir.webthing.com (localhost [127.0.0.1]) by grimnir.webthing.com (Postfix) with ESMTP id 0B4AE2136 for ; Sat, 11 Nov 2006 10:33:41 +0000 (GMT) Date: Sat, 11 Nov 2006 10:33:40 +0000 From: Nick Kew To: modules-dev@httpd.apache.org Subject: Re: Linking to a Shared Object Message-ID: <20061111103340.04e68b50@grimnir> 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 You've anonymised this so much I can't tell what you've actually done wrong, but ... > I then compiled my mod_ssl.c module into Apache2 (note assl.lo at the end): ./sbin/apxs -i -a -c > ../ApacheSource/httpd-2.2.3/modules/ssl/mod_assl.c > ../ApacheSource/httpd-2.2.3/modules/ssl/assl.lo Don't do that. If you need to use assl outside Apache, compile it to a separate shared lib, and load that with LoadFile for mod_assl. > Which library am I missing? Surely it should have complained when I > created mod_assl.so in the first place? Those symbols are from apache and openssl, and are available when your module is loaded. Your external application should not use Apache logging, and if it needs SSL then it should link (or load) the openssl lib itself. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/