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 librar

Re: Linking in libraries to Apache Module

2009-12-07 Thread Ray Morris
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 resul

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 th

Re: Linking in libraries to Apache Module

2009-12-07 Thread Devin Ceartas
OK, these ideas sound useful, thanks. I'll look into DBD and LoadFile. Thanks for your time. 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/

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 platfor

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 Eric Covener
On Mon, Dec 7, 2009 at 7:07 PM, Devin Ceartas 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 directly. -- Eric Coven

Re: Linking in libraries to Apache Module

2009-12-07 Thread Dennis J.
Have you tried "ldd "? 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 -- devin On Dec 7, 2009,

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 fin

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 i

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 die