You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dev Zero G Ltd <ma...@devzerog.com> on 2002/07/26 14:43:20 UTC

[pthread_mutex] apache will not load mod_jk.so

Hello and thanks for reading.

We have managed to build mod_jk.so and jk_jnicb.so for Apache 2.0.39 and 
Tomcat 4.0.4, but neither Apache nor Tomcat will successfully use these 
modules:

when launching Apache, we get:

# /usr/local/apache2/bin/apachectl -k start
Syntax error on line 1043 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_jk.so into server: 
/usr/local/apache2/modules/mod_jk.so: Undefined symbol 
"pthread_mutex_unlock"

The strange thing is that apache complains about the 
"pthread_mutex_unlock" call but about the "pthread_mutex_lock" call just 
before!!

Any advice will be appreciated. We have spent 2 weeks not trying to get 
the Tomcat/Apache connector to work to no avail. Have posted numerous 
mails to tomcat-dev@jakarta.apache.org.

Is there _nobody_ else out there trying to get Apache2 and Tomcat4 
connected on FreeBsd 4.x!?

Thanks very much in advance for nay advice!


Re: [pthread_mutex] apache will not load mod_jk.so

Posted by Jeff Trawick <tr...@attglobal.net>.
Dev Zero G Ltd <ma...@devzerog.com> writes:

> Hello and thanks for reading.
> 
> We have managed to build mod_jk.so and jk_jnicb.so for Apache 2.0.39
> and Tomcat 4.0.4, but neither Apache nor Tomcat will successfully use
> these modules:
> 
> when launching Apache, we get:
> 
> # /usr/local/apache2/bin/apachectl -k start
> Syntax error on line 1043 of /usr/local/apache2/conf/httpd.conf:
> Cannot load /usr/local/apache2/modules/mod_jk.so into server:
> /usr/local/apache2/modules/mod_jk.so: Undefined symbol
> "pthread_mutex_unlock"

Apache 2.0 and APR won't normally link to thread libraries on FreeBSD
because (apparently) some problems in the thread libraries on that
platform prevent Apache from working reliably.  I suspect that
mod_jk.so can't find the pthread calls because Apache was not linked
with -lpthread.

Can you build mod_jk in a way that doesn't reference the pthread
calls?  Does it have some configuration mechanism to tell it that it
doesn't need to be multi-thread capable?  I can't see how the pthread
calls are useful on FreeBSD since Apache won't work there using
a threaded model.

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...