You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "Pier P. Fumagalli" <pi...@betaversion.org> on 2001/08/05 21:00:50 UTC
FW: [Bug 2991] New: - -lsendfile not used when building
mod_webapp.so on Solaris 8 7/01
bugzilla@apache.org at bugzilla@apache.org 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...
Pier
Re: [Bug 2991] New: - -lsendfile not used when building
mod_webapp.so on Solaris 8 7/01
Posted by "Pier P. Fumagalli" <pi...@betaversion.org>.
Roy T. Fielding at fielding@ebuilt.com wrote:
>> Oh, apxs doesn't know about this file. Yuck. I think that apache-1.3
>
> As I've mentioned maybe a dozen times over the past six months, apxs does
> not work in 2.0. It needs to be taught how to use config_vars.mk or,
> at the very least, all of its current symbols need to be replaced with
> those used by the 2.0 makefiles.
>
> I should have just committed an exit to the code to force people to fix it
> or delete apxs. I didn't fix it myself because I've never used it and there
> are a dozen pieces of functionality within it that I would rather delete
> than update to 2.0.
Nope Roy, it was my fault. When I was linking with APXS for Apache 1.3, I
simply forgot to link against the EXTRA_LIBS found in APRVARS... My bad :(
Pier
Re: FW: [Bug 2991] New: - -lsendfile not used when building mod_webapp.so on Solaris 8 7/01
Posted by "Roy T. Fielding" <fi...@ebuilt.com>.
> Oh, apxs doesn't know about this file. Yuck. I think that apache-1.3
As I've mentioned maybe a dozen times over the past six months, apxs does
not work in 2.0. It needs to be taught how to use config_vars.mk or,
at the very least, all of its current symbols need to be replaced with
those used by the 2.0 makefiles.
I should have just committed an exit to the code to force people to fix it
or delete apxs. I didn't fix it myself because I've never used it and there
are a dozen pieces of functionality within it that I would rather delete
than update to 2.0.
....Roy
Re: FW: [Bug 2991] New: - -lsendfile not used when building mod_webapp.so on Solaris 8 7/01
Posted by Justin Erenkrantz <je...@ebuilt.com>.
On Sun, Aug 05, 2001 at 08:00:50PM +0100, Pier P. Fumagalli wrote:
> bugzilla@apache.org at bugzilla@apache.org 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