Re: Linking in libraries to Apache Module

2009-12-08 Thread Devin Ceartas
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

Linking in libraries to Apache Module

2009-12-07 Thread Devin Ceartas
Playing around with this a bit, but not getting too far... The logic of my SQLite code works if I compile it as a stand-alone executable. My mod_hello.c compiles and loads/works fine without the SQLite code Combining the two, the module compiles and is installed, but the apache process

Re: Linking in libraries to Apache Module

2009-12-07 Thread Joe Lewis
Devin Ceartas wrote: The logic of my SQLite code works if I compile it as a stand-alone executable. My mod_hello.c compiles and loads/works fine without the SQLite code Combining the two, the module compiles and is installed, but the apache process dies immediately (core dump) every time it

Re: Linking in libraries to Apache Module

2009-12-07 Thread Devin Ceartas
hm. -rpath doesn't seem to be an accepted flag in the apxs included with the latest OpenBSD -- devin On Dec 7, 2009, at 6:56 PM, Joe Lewis wrote: Devin Ceartas wrote: The logic of my SQLite code works if I compile it as a stand-alone executable. My mod_hello.c compiles and loads/works

Re: Linking in libraries to Apache Module

2009-12-07 Thread Dennis J.
Have you tried ldd path-to-compiled-module? That could also give you a hint if anything is fishy with the library paths/dependencies. Regards, Dennis On 12/08/2009 01:07 AM, Devin Ceartas wrote: hm. -rpath doesn't seem to be an accepted flag in the apxs included with the latest OpenBSD --

Re: Linking in libraries to Apache Module

2009-12-07 Thread Eric Covener
On Mon, Dec 7, 2009 at 7:07 PM, Devin Ceartas de...@nacredata.com wrote: hm. -rpath doesn't seem to be an accepted flag in the apxs included with the latest OpenBSD apxs will pass linker or compiler args down to the respective program with -Wl, or -Wc, ; it doesn't do anything with them

Re: Linking in libraries to Apache Module

2009-12-07 Thread Devin Ceartas
I don't know enough to understand the output yet, but to me it seems to indicate that the library is not missing: # ldd /usr/lib/apache/modules/mod_hello2.so /usr/lib/apache/modules/mod_hello2.so: StartEnd Type Open Ref GrpRef Name 09384000 29388000 dlib 10 0

Re: Linking in libraries to Apache Module

2009-12-07 Thread Nick Kew
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

Re: Linking in libraries to Apache Module

2009-12-07 Thread Devin Ceartas
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