[mod_python] Dupe: Undefined symbol "PyEval_AcquireLock"

Graham Dumpleton grahamd at dscpl.com.au
Thu Sep 8 21:50:40 EDT 2005


My experience with FreeBSD systems is that threading wasn't builtin to
Python by default. To see if threading is builtin, from the command
line run Python and then do:

   import threading

If it fails, probably indicates Python wasn't built with threading
support in the first place. If this is the case, you will need to
rebuild Python with threading enabled. Note that on FreeBSD I believe
the POSIX thread library functions are in -lc_r, ie., reentrant
version of standard C library. Command line for configure probably
something like:

   LIBS=-lc_r ./configure --with-threads

Graham

On 09/09/2005, at 3:12 AM, Andrew Musselman wrote:

> Hi List, sorry for the dupe; I tried subscribing with another email 
> account but wasn't able to confirm.  Here is my question again:
>
>  I am trying to run mod_python-3.1.4_1 with apache2 on FreeBSD 5.4 
> STABLE.  My python version is python-2.4.1_1.
>
>  Everything is built from ports.
>
>  Here is the error I receive when starting apache:
>  Syntax error on line 281 of /usr/local/etc/apache2/httpd.conf:
>  Cannot load /usr/local/libexec/apache2/mod_python.so into server: 
> /usr/local/libexec/apache2/mod_python.so: Undefined symbol 
> "PyEval_AcquireLock"
>
>  Here is line 281 of httpd.conf:
>  LoadModule python_module      libexec/apache2/mod_python.so
>
>  Has anyone seen this error before, or does anyone have suggestions on 
> how to isolate the problem?
>
>  Thank you for your time.
>
>  Best,
>  Andrew
>
> _______________________________________________
> 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