Greg Stein wrote: > > On Sat, May 19, 2001 at 01:05:17AM +0100, Pier P. Fumagalli wrote: > > Pier P. Fumagalli at [EMAIL PROTECTED] wrote: > > > > > jean-frederic clere at [EMAIL PROTECTED] 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 > > >>> > > >>> [EMAIL PROTECTED] 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 > > >>> [EMAIL PROTECTED] 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". > > Cheers, > -g > > -- > Greg Stein, http://www.lyra.org/
