[mod_python] Install error..

Tim Bellefy tbellefy at yahoo.com
Fri Sep 2 04:31:41 EDT 2005


Hi All,

This is officially my first mailing list post. (Just
had to say that)

Anyway, I'm having troubles installing mod_python with
a fresh install of Python and Apache.

OS: FreeBSD 4.7-RELEASE-p28 #40
Python: 2.4.1
Apache: 2.0.54

Apache was installed via:
./configure --enable-mods-shared --enable-threads
make
make install

Apache and Python both work great.

Then I tried to configure mod_python using:
./configure --with-apxs=/usr/local/apache2/bin/apxs

The output found in config.log doesn't make any sense
to me. Below is the snippet from config.log:

Any help would be greatly appreciated!


#################################################
configure:2694: gcc -o conftest -g -O2  
-L/usr/local/lib/python2.4/config conftest.c
-lpython2.4     -lutil   -lm                  -lm  >&5
/usr/local/lib/python2.4/config/libpython2.4.a(posixmodule.o):
In function `posix_tmpnam':
/tim/software/Python-2.4.1/./Modules/posixmodule.c(.text+0x3d43):
warning: tmpnam() possibly used unsafely; consider
using mkstemp()
/usr/local/lib/python2.4/config/libpython2.4.a(posixmodule.o):
In function `posix_tempnam':
/tim/software/Python-2.4.1/./Modules/posixmodule.c(.text+0x3ca6):
warning: tempnam() possibly used unsafely; consider
using mkstemp()
/usr/local/lib/python2.4/config/libpython2.4.a(thread.o):
In function `find_key':
/tim/software/Python-2.4.1/Python/thread.c(.text+0x25):
undefined reference to `pthread_self'
/tim/software/Python-2.4.1/Python/thread.c(.text+0x3d):
undefined reference to `sem_wait'
/tim/software/Python-2.4.1/Python/thread.c(.text+0xc0):
undefined reference to `sem_post'
/usr/local/lib/python2.4/config/libpython2.4.a(thread.o):
In function `PyThread_delete_key':
/tim/software/Python-2.4.1/Python/thread.c(.text+0xfd):
undefined reference to `sem_wait'
/tim/software/Python-2.4.1/Python/thread.c(.text+0x162):
undefined reference to `sem_post'
/usr/local/lib/python2.4/config/libpython2.4.a(thread.o):
In function `PyThread_delete_key_value':
/tim/software/Python-2.4.1/Python/thread.c(.text+0x1a9):
undefined reference to `pthread_self'
/tim/software/Python-2.4.1/Python/thread.c(.text+0x1c1):
undefined reference to `sem_wait'
/tim/software/Python-2.4.1/Python/thread.c(.text+0x220):
undefined reference to `sem_post'
/usr/local/lib/python2.4/config/libpython2.4.a(thread.o):
In function `PyThread_start_new_thread':
/tim/software/Python-2.4.1/Python/thread_pthread.h(.text+0x28b):
undefined reference to `pthread_create'
/tim/software/Python-2.4.1/Python/thread_pthread.h(.text+0x29d):
undefined reference to `pthread_detach'
/usr/local/lib/python2.4/config/libpython2.4.a(thread.o):
In function `PyThread_get_thread_ident':
/tim/software/Python-2.4.1/Python/thread_pthread.h(.text+0x2ef):
undefined reference to `pthread_self'
/usr/local/lib/python2.4/config/libpython2.4.a(thread.o):
In function `PyThread_allocate_lock':
/tim/software/Python-2.4.1/Python/thread_pthread.h(.text+0x33a):
undefined reference to `sem_init'
/usr/local/lib/python2.4/config/libpython2.4.a(thread.o):
In function `PyThread_free_lock':
/tim/software/Python-2.4.1/Python/thread_pthread.h:313:
undefined reference to `sem_destroy'
/usr/local/lib/python2.4/config/libpython2.4.a(thread.o):
In function `PyThread_acquire_lock':
/tim/software/Python-2.4.1/Python/thread_pthread.h:299:
undefined reference to `sem_wait'
/tim/software/Python-2.4.1/Python/thread_pthread.h:298:
undefined reference to `sem_trywait'
/usr/local/lib/python2.4/config/libpython2.4.a(thread.o):
In function `PyThread_release_lock':
/tim/software/Python-2.4.1/Python/thread_pthread.h(.text+0x43d):
undefined reference to `sem_post'
/usr/local/lib/python2.4/config/libpython2.4.a(thread.o):
In function `PyThread_create_key':
/tim/software/Python-2.4.1/Python/thread.c:302:
undefined reference to `sem_init'
configure:2697: $? = 1
configure: failed program was:
#line 2668 "configure"
#include "confdefs.h"





		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


More information about the Mod_python mailing list