On Sun, Aug 05, 2001 at 08:00:50PM +0100, Pier P. Fumagalli wrote: > [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: > > > > <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2991> > > > > apr finds and uses the new sendfile interface on Solaris 8 7/01. When > > building mod_webapp.so, it doesn't link with -lsendfile. When apache loads > > the module, it comes up with an unresolved symbol when loading the module. > > As > > a temporary fix, I modified my local copy of the Makefile in the apache-1.3 > > directory to link the shared library with -lsendfile. > > Hmmm... I'm linking against what's exported by APR_VARS, but yesterday on > Solaris 8/SPARC the whole thinghie built and ran correctly... Just a FYI, > will try to rebuild with APR fresh off CVS later tonight...
The key here is Solaris 8 7/01 - this is a brand new version. I'll try and get a hold of it soon - BTW, if anyone can get me an EA copy of Solaris 9, I'd be grateful (someone told me it is or will be entering EA soon). I bet you don't have the required libraries to enable this - it is a series of special patches to the stock Solaris 8. Solaris 8 7/01 is the first to have it bundled in. Is mod_webapp calling apr_sendfile? If so, then that is probably why you are getting the error. But, my EXTRA_LIBS is saying (I'll probably commit the fix to remove the duplicates in a few minutes - I'm ticked off about that): EXTRA_LIBS="-lsendfile -lm -lsocket -lnsl -lsocket -lnsl -ldl" Oh, apxs doesn't know about this file. Yuck. I think that apache-1.3 needs to link against the library - not mod_webapp.so. If you had the static library version of sendfile, you could tell mod_webapp to include it and it'd be okay, but the patches I have for Solaris 8 don't include a static library. Furthermore, Solaris defaults to shared libraries when faced with both shared and static libraries. So, the EXTRA_LIBS definition with mod_webapp isn't very helpful. The Apache 1.3 Makefile needs to know about it. -- justin