[mod_python] mod_python and PIL?

Marilyn Davis marilyn at deliberate.com
Wed Apr 14 18:12:14 EST 2004


This was fixed by moving to Apache 2.

Thanks.

Marilyn

On Wed, 14 Apr 2004, Marilyn Davis wrote:

> Hi,
> 
> I'm trying to put together python2.3 with Imaging-1.1.4 and
> mod_python-2.7.8 and am having trouble.  Can anyone here help me?
> 
> The final result is:
> 
> Cannot load /www/libexec/mod_python.so into server: /www/libexec/mod_python.so: undefined symbol: pthread_sigmask
> 
> I build python-2.3.3 without threads:
> 
> [root at maildance Python-2.3.3]# ./configure --with-threads=no
> 
> and in the end I see things like:
> 
> *** WARNING: renaming "_testcapi" since importing it failed: build/lib.linux-i686-2.3/_testcapi.so: undefined symbol: PyGILState_Ensure
> *** WARNING: renaming "_bsddb" since importing it failed: build/lib.linux-i686-2.3/_bsddb.so: undefined symbol: PyGILState_Ensure
> *** WARNING: renaming "zlib" since importing it failed: build/lib.linux-i686-2.3/zlib.so: undefined symbol: PyThread_acquire_lock
> *** WARNING: renaming "bz2" since importing it failed: build/lib.linux-i686-2.3/bz2.so: undefined symbol: PyThread_acquire_lock
> *** WARNING: renaming "_tkinter" since importing it failed: build/lib.linux-i686-2.3/_tkinter.so: undefined symbol: PyThread_acquire_lock
> running build_scripts
> [root at maildance Python-2.3.3]# 
> 
> So I guess that means that threads aren't happening?
> 
> I notice, though, that when I "python2.3 setup.py build" to make PIL,
> I get lots like this:
> 
> [root at maildance Imaging-1.1.4]# python2.3 setup.py build
> gcc -pthread -shared build/temp.linux-i686-2.3/_imaging.o build/temp.linux-i686-2.3/decode.o build/temp.linux-i686-2.3/encode.o build/temp.linux-i686-2.3/map.o build/temp.linux-i686-2.3/display.o build/temp.linux-i686-2.3/outline.o build/temp.linux-i686-2.3/path.o -LlibImaging -lImaging -ljpeg -lz -o build/lib.linux-i686-2.3/_imaging.so
> building '_imagingtk' extension
> creating build/temp.linux-i686-2.3/Tk
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -IlibImaging -I/usr/local/include/python2.3 -c Tk/tkImaging.c -o build/temp.linux-i686-2.3/Tk/tkImaging.o
> 
> So I see that -pthread and wonder if that's what's causing it and what
> can I do about it?
> 
> Thank you for any help anyone can give.
> 
> Marilyn Davis, Ph.D         marilyn at deliberate.com        -1 650 965-7121
> Author of eVote(R)/Clerk                        http://www.deliberate.com 
> 
> 
> _______________________________________________
> 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