[mod_python] Problems building apache1 with threaded python and mod_python...solved

Mike Klein mikeklein at sbcglobal.net
Mon Oct 20 00:49:33 EST 2003


My bad...I need to follow the docs a little more often...

I have RH9, Apache1.3.27, mod_python-2.7.8.

I first tried with Python 2.2.3. No go. Then I tried with 2.3.2...no go. 
In fact, mod_python even thought it was a nothread build.

Then I actually followed directions and got release 2.1.3, which 
mod_python does state as a prerequisite. It worked. Didn't even get any 
thread symbol wierdness when starting apache or had to patch makefiles 
with -lutil to fix openpty wierdness..

All is well now...I can make SOAPpy invocations. No more thread complaints.

Should mod_python be able to work with latest Python releases with 
threads enabled? I'm not sure what I'm missing in later python releases.


mike

Mike Klein wrote:

> Can this even be done? The docs/faqs seem vague on the subject.
>
> I am building on a RH9 system, with apache1, mod_python, and python 
> w/o threads. This seemed to be the only way I could get mod_python to 
> build. I always get errors regarding pthread symbols not being found. 
> Example:
>
> Cannot load /usr/local/apache/libexec/mod_python.so into server: 
> /usr/local/apache/libexec/mod_python.so: undefined symbol: 
> pthread_sigmask
>
> I recall earlier that I was able to get past a similar error (happened 
> with no threads build I think) by adding "-lutil" to LIBS in 
> src/Makefile, but I cannot get rid of the above problem.
>
> I need a threaded-python/mod_python as I'm trying to run ZSI and 
> SOAPpy applications and they seem to require thread support.
>
> Any ideas would be appreciated...
>
> I know RH9 comes with apache2 and mod_python/mod_perl/mod_everything 
> already built in, but I require apache1 as there are a few modules I 
> want to use which aren't apache2 yet...
>
> mike
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>




More information about the Mod_python mailing list