apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <...@covalent.net>
Subject Re: Problems with APR under Linux...
Date Mon, 21 May 2001 16:24:32 GMT
On Mon, 21 May 2001, jean-frederic clere wrote:

> Greg Stein wrote:
> >
> > On Sat, May 19, 2001 at 01:05:17AM +0100, Pier P. Fumagalli wrote:
> > > Pier P. Fumagalli at pier@betaversion.org wrote:
> > >
> > > > jean-frederic clere at jfrederic.clere@fujitsu-siemens.com wrote:
> > > >
> > > >> "Pier P. Fumagalli" wrote:
> > > >>>
> > > >>> I'm a dork, I sent it only to Bill without including the mailing
list...
> > > >>> Damn lack of a Reply-To header :) :)
> > > >>>
> > > >>>     Pier
> > > >>>
> > > >>> [jreilly@lorien bin]$ ./httpd
> > > >>> Syntax error on line 957 of /usr/local/apache/conf/httpd.conf:
> > > >>> Cannot load /usr/local/apache/libexec/mod_webapp.so into server:
> > > >>> /usr/local/apache/libexec/mod_webapp.so: undefined symbol: pthread_sigmask
> > > >>> [jreilly@lorien bin]$
> > > >>>
> > > >>> That's weird... Do anyone knows where this one could come from?
It seems
> > > >>> that pthread_sigmask is not found when talking about Linux, but
that seems
> > > >>> really strange, since I don't use any threading function per se
in WebApp...
> > > >>> (Might be called from apr_initialize?)
> > > >>
> > > >> I have no found exactly what happends but just add -lpthread in the
> > > >> (tomcat-connectors)/Makefile solves the problem:
> > > >
> > > > Ok, will add that into our autoconf/automake stuff. :) Thanks for the
> > > > hint...
> > > >
> > > >   Pier
> > >
> > > Jean-Federic  told me that the trick works for Linux, but not for other
> > > systems such as Reliant Unix... Is there a way to find out on which
> > > libraries APR relies on?
> >
> > Right. Adding -lpthread manually is absolutely the wrong thing for your app
> > to do. That was poor advice.
> >
> > APR generates a shell script called APRVARS. That should have everything
> > that you need for compiling your app, and for linking your app to APR and
> > its dependent libraries.
> >
> > Note: it is best to compile your app with the flags from APRVARS so that you
> > don't get skewed compile options between APR and your app. Yes, there are
> > well-defined binary interfaces, but heck: APR figured it all out for you, so
> > go ahead and use it :-)
>
> Just a question, is there a HOW about "How to use APR".

When I first wrote APR, I wrote a doc called APRDesign.  That doc is still
in the root of the tree, but it is a bit out of date.  It has the general
ideas, but it doesn't even come close to telling you everything.  :-(

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message