Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: (qmail 43388 invoked from network); 8 Dec 2009 14:50:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 14:50:16 -0000 Received: (qmail 50151 invoked by uid 500); 8 Dec 2009 14:50:16 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 50094 invoked by uid 500); 8 Dec 2009 14:50:16 -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 50084 invoked by uid 99); 8 Dec 2009 14:50:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 14:50:15 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.211.176] (HELO mail-yw0-f176.google.com) (209.85.211.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 14:50:05 +0000 Received: by ywh6 with SMTP id 6so5117156ywh.4 for ; Tue, 08 Dec 2009 06:49:40 -0800 (PST) Received: by 10.101.15.11 with SMTP id s11mr1516425ani.29.1260283780765; Tue, 08 Dec 2009 06:49:40 -0800 (PST) Received: from ?10.0.0.151? (NACREDATA.NET [96.10.17.106]) by mx.google.com with ESMTPS id 6sm2412697ywd.22.2009.12.08.06.49.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Dec 2009 06:49:40 -0800 (PST) Message-Id: From: Devin Ceartas To: modules-dev@httpd.apache.org In-Reply-To: <1260246667.28106.16@raydesk1.bettercgi.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Linking in libraries to Apache Module Date: Tue, 8 Dec 2009 09:49:38 -0500 References: <1260246667.28106.16@raydesk1.bettercgi.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org OK, got it. Understood. Good point, will do. :-) devin On Dec 7, 2009, at 11:31 PM, Ray Morris wrote: >> So, for what it's worth, it ends up that it will work with either >> the direct linking as I was trying or with LoadFile > > It will work FOR NOW, on that ONE SERVER, if you directly > link a library. Loadfile will work now, and in the future, > and on other servers, rather than causing incorrect results > or crashes in the future. > -- > Ray Morris > support@bettercgi.com > > Strongbox - The next generation in site security: > http://www.bettercgi.com/strongbox/ > > Throttlebox - Intelligent Bandwidth Control > http://www.bettercgi.com/throttlebox/ > > Strongbox / Throttlebox affiliate program: > http://www.bettercgi.com/affiliates/user/register.php > > > On 12/07/2009 09:59:41 PM, Devin Ceartas wrote: >> So, for what it's worth, it ends up that it will work with either >> the direct linking as I was trying or with LoadFile >> The problem had to do with my downloading SQLite and compiling - >> when I deleted all those resulting files and installed the OpenBSD >> package for SQLite, it worked fine. So there must be some platform- >> specific compile tweaks needed for that library. >> -- devin >> On Dec 7, 2009, at 9:24 PM, Nick Kew wrote: >>> On 7 Dec 2009, at 23:44, Devin Ceartas wrote: >>>> apxs -cia -L/usr/local/lib -I/home/devin mod_hello.c >>>> /* Works Fine, prints "hello world" */ >>>> apxs -cia -L/usr/local/lib -I/home/devin -lsqlite3 mod_hello.c >>>> /* compiles but dies on apache load */ >>>> The platform is OpenBSD 4.6 with the platform's version of Apache >>>> 1.3 and SQLite 3.6.20 downloaded from the SQLite site and >>>> compiled from source >>> Don't link libsqlite. >>> apr_dbd may already be loading libsqlite. If for instance you've >>> got more than one libsqlite installed and the two load different >>> versions, segfault is the expected outcome. >>> If apache DBD API doesn't meet your needs, you can invoke >>> sqlite directly, but use LoadFile so sysops can load libsqlite if >>> and only if it's not already loaded. >>> --Nick Kew