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/05/17 21:05:07 UTC

Problems with APR under Linux...

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?)

It works under MacOS X :)

    Pier


Re: Problems with APR under Linux...

Posted by rb...@covalent.net.
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
-------------------------------------------------------------------------------


Re: Problems with APR under Linux...

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
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".

> 
> Cheers,
> -g
> 
> --
> Greg Stein, http://www.lyra.org/

Re: Problems with APR under Linux...

Posted by "Pier P. Fumagalli" <pi...@betaversion.org>.
Greg Stein at gstein@lyra.org wrote:
> 
> 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 :-)

You're the man :) :) Thanks a lot, will dig into that tomorrow morning...

    Pier


Re: Problems with APR under Linux...

Posted by "Pier P. Fumagalli" <pi...@betaversion.org>.
Greg Stein at gstein@lyra.org wrote:
> 
> 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 :-)

You're the man :) :) Thanks a lot, will dig into that tomorrow morning...

    Pier


Re: Problems with APR under Linux...

Posted by Greg Stein <gs...@lyra.org>.
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 :-)

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Re: Problems with APR under Linux...

Posted by "Pier P. Fumagalli" <pi...@betaversion.org>.
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?

    Pier


Re: Problems with APR under Linux...

Posted by "Pier P. Fumagalli" <pi...@betaversion.org>.
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


> +++Index: Makefile.in
> ===================================================================
> RCS file:
> /home/cvs/mirror/jakarta-tomcat-4.0/connectors/apache-1.3/Makefile.in,v
> retrieving revision 1.1
> diff -u -r1.1 Makefile.in
> --- Makefile.in 2001/05/10 06:13:29     1.1
> +++ Makefile.in 2001/05/18 13:38:27
> @@ -68,7 +68,7 @@
> 
> mod_webapp.so:
>       @echo Linking Apache 1.3.x module
> -       @$(APXS) -c $(APXSFLAGS) mod_webapp.c
> +       @$(APXS) -c $(APXSFLAGS) -lpthread mod_webapp.c
> 
> clean:
>       @echo Removing object files $(OBJS) $(MODULE)
> +++
> 
> An other solution would be to use an APR without threads. To do so use
> "./configure --enable-threads=no" when configuring APR.
> 
> 
>> 
>> It works under MacOS X :)
>> 
>>     Pier


Re: Problems with APR under Linux...

Posted by "William A. Rowe, Jr." <ad...@rowe-clan.net>.
From: "Pier P. Fumagalli" <pi...@betaversion.org>
Sent: Friday, May 18, 2001 6:51 PM


> kevin seguin at seguin@motive.com wrote:
> 
> > for apache 1.3, i'd think you'd want to use apr without threads.  but i
> > could be wrong...
> > 
> > for what it's worth, a while ago i tried using a multithreaded library
> > in an apache 1.3 module on solaris.  i had to compile the module with
> > -lpthread.  anyway, the short version of the story is, i had all kinds
> > of problems and promptly gave up on the idea.
> 
> You're right, the only environment where Threads are used under Apache 1.3
> is under Windows, but I still have to check that (I just got my hands on a
> RedHat 7.1 box today, so bear with me :)

Add netware, OS2 and TPE to that list :-)


Re: Problems with APR under Linux...

Posted by "Pier P. Fumagalli" <pi...@betaversion.org>.
kevin seguin at seguin@motive.com wrote:

> for apache 1.3, i'd think you'd want to use apr without threads.  but i
> could be wrong...
> 
> for what it's worth, a while ago i tried using a multithreaded library
> in an apache 1.3 module on solaris.  i had to compile the module with
> -lpthread.  anyway, the short version of the story is, i had all kinds
> of problems and promptly gave up on the idea.

You're right, the only environment where Threads are used under Apache 1.3
is under Windows, but I still have to check that (I just got my hands on a
RedHat 7.1 box today, so bear with me :)

    Pier


Re: FW: Problems with APR under Linux...

Posted by kevin seguin <se...@motive.com>.
for apache 1.3, i'd think you'd want to use apr without threads.  but i
could be wrong...  

for what it's worth, a while ago i tried using a multithreaded library
in an apache 1.3 module on solaris.  i had to compile the module with
-lpthread.  anyway, the short version of the story is, i had all kinds
of problems and promptly gave up on the idea.

"Pier P. Fumagalli" wrote:
> 
> This _is_ interesting... For Craig, so that you can try it out under your
> RedHat (you won't believe it, but I can't find a Linux copy in London in any
> store! And downloading it will take a couple of days from BTInternet. Any
> hint?)
> 
>     Pier
> 
> ------ Forwarded Message
> From: jean-frederic clere <jf...@fujitsu-siemens.com>
> Date: Fri, 18 May 2001 16:19:07 +0200
> To: "Pier P. Fumagalli" <pi...@betaversion.org>
> Cc: dev@apr.apache.org
> Subject: Re: Problems with APR under Linux...
> 
> "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:
> +++Index: Makefile.in
> ===================================================================
> RCS file:
> /home/cvs/mirror/jakarta-tomcat-4.0/connectors/apache-1.3/Makefile.in,v
> retrieving revision 1.1
> diff -u -r1.1 Makefile.in
> --- Makefile.in 2001/05/10 06:13:29     1.1
> +++ Makefile.in 2001/05/18 13:38:27
> @@ -68,7 +68,7 @@
> 
>  mod_webapp.so:
>         @echo Linking Apache 1.3.x module
> -       @$(APXS) -c $(APXSFLAGS) mod_webapp.c
> +       @$(APXS) -c $(APXSFLAGS) -lpthread mod_webapp.c
> 
>  clean:
>         @echo Removing object files $(OBJS) $(MODULE)
> +++
> 
> An other solution would be to use an APR without threads. To do so use
> "./configure --enable-threads=no" when configuring APR.
> 
> 
> >
> > It works under MacOS X :)
> >
> >     Pier
> 
> ------ End of Forwarded Message

Re: Problems with APR under Linux...

Posted by "Pier P. Fumagalli" <pi...@betaversion.org>.
Craig R. McClanahan at craigmcc@apache.org wrote:
> On Fri, 18 May 2001, Pier P. Fumagalli wrote:
> 
>> This _is_ interesting... For Craig, so that you can try it out under your
>> RedHat (you won't believe it, but I can't find a Linux copy in London in any
>> store! And downloading it will take a couple of days from BTInternet. Any
>> hint?)
> 
> I (or actually, some friends of mine) did the download trick and burned
> CDs from the download images.  I haven't actually looked for it (RedHat
> 7.1) in a store yet.

You lucky freaks with fast Internet Access :) Even from Sun Offices in
London I can't get faster than 10kb/sec, darn.... :) :) :)

    Pier


Re: FW: Problems with APR under Linux...

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Fri, 18 May 2001, Pier P. Fumagalli wrote:

> This _is_ interesting... For Craig, so that you can try it out under your
> RedHat (you won't believe it, but I can't find a Linux copy in London in any
> store! And downloading it will take a couple of days from BTInternet. Any
> hint?)
> 

I (or actually, some friends of mine) did the download trick and burned
CDs from the download images.  I haven't actually looked for it (RedHat
7.1) in a store yet.


>     Pier
> 

Craig


> 
> ------ Forwarded Message
> From: jean-frederic clere <jf...@fujitsu-siemens.com>
> Date: Fri, 18 May 2001 16:19:07 +0200
> To: "Pier P. Fumagalli" <pi...@betaversion.org>
> Cc: dev@apr.apache.org
> Subject: Re: Problems with APR under Linux...
> 
> "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:
> +++Index: Makefile.in
> ===================================================================
> RCS file:
> /home/cvs/mirror/jakarta-tomcat-4.0/connectors/apache-1.3/Makefile.in,v
> retrieving revision 1.1
> diff -u -r1.1 Makefile.in
> --- Makefile.in 2001/05/10 06:13:29     1.1
> +++ Makefile.in 2001/05/18 13:38:27
> @@ -68,7 +68,7 @@
>  
>  mod_webapp.so:
>         @echo Linking Apache 1.3.x module
> -       @$(APXS) -c $(APXSFLAGS) mod_webapp.c
> +       @$(APXS) -c $(APXSFLAGS) -lpthread mod_webapp.c
>  
>  clean:
>         @echo Removing object files $(OBJS) $(MODULE)
> +++
> 
> An other solution would be to use an APR without threads. To do so use
> "./configure --enable-threads=no" when configuring APR.
>  
> 
> > 
> > It works under MacOS X :)
> > 
> >     Pier
> 
> ------ End of Forwarded Message
> 
> 


FW: Problems with APR under Linux...

Posted by "Pier P. Fumagalli" <pi...@betaversion.org>.
This _is_ interesting... For Craig, so that you can try it out under your
RedHat (you won't believe it, but I can't find a Linux copy in London in any
store! And downloading it will take a couple of days from BTInternet. Any
hint?)

    Pier


------ Forwarded Message
From: jean-frederic clere <jf...@fujitsu-siemens.com>
Date: Fri, 18 May 2001 16:19:07 +0200
To: "Pier P. Fumagalli" <pi...@betaversion.org>
Cc: dev@apr.apache.org
Subject: Re: Problems with APR under Linux...

"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:
+++Index: Makefile.in
===================================================================
RCS file:
/home/cvs/mirror/jakarta-tomcat-4.0/connectors/apache-1.3/Makefile.in,v
retrieving revision 1.1
diff -u -r1.1 Makefile.in
--- Makefile.in 2001/05/10 06:13:29     1.1
+++ Makefile.in 2001/05/18 13:38:27
@@ -68,7 +68,7 @@
 
 mod_webapp.so:
        @echo Linking Apache 1.3.x module
-       @$(APXS) -c $(APXSFLAGS) mod_webapp.c
+       @$(APXS) -c $(APXSFLAGS) -lpthread mod_webapp.c
 
 clean:
        @echo Removing object files $(OBJS) $(MODULE)
+++

An other solution would be to use an APR without threads. To do so use
"./configure --enable-threads=no" when configuring APR.
 

> 
> It works under MacOS X :)
> 
>     Pier

------ End of Forwarded Message


Re: Problems with APR under Linux...

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
"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:
+++Index: Makefile.in
===================================================================
RCS file:
/home/cvs/mirror/jakarta-tomcat-4.0/connectors/apache-1.3/Makefile.in,v
retrieving revision 1.1
diff -u -r1.1 Makefile.in
--- Makefile.in 2001/05/10 06:13:29     1.1
+++ Makefile.in 2001/05/18 13:38:27
@@ -68,7 +68,7 @@
 
 mod_webapp.so:
        @echo Linking Apache 1.3.x module
-       @$(APXS) -c $(APXSFLAGS) mod_webapp.c
+       @$(APXS) -c $(APXSFLAGS) -lpthread mod_webapp.c
 
 clean:
        @echo Removing object files $(OBJS) $(MODULE)                           
+++

An other solution would be to use an APR without threads. To do so use
"./configure --enable-threads=no" when configuring APR.
 

> 
> It works under MacOS X :)
> 
>     Pier