FreeBSD and --with-threads, something stupid

Arek Dreyer arek at arekdreyer.com
Thu Oct 12 03:28:37 EDT 2000


Hi.  I'm trying to try Zope on a FreeBSD box.
But before I do that, I need python with thread support.
But I'm running into problems.
I feel like I'm missing something simple; has anyone
done this successfully?
Thanks!
-Arek

[FreeBSD 4.0, gcc 2.95.2, what else?]
[Python-1.5.2]

# configure --with-threads
[it configures happily]

# make
[it makes lots of stuff, but then it has problems with the following:]

cd Modules;  make OPT="-g -O2" VERSION="1.5"  prefix="/usr/local" exec_prefix="/
usr/local"  LIBRARY=../libpython1.5.a link
gcc   python.o  ../libpython1.5.a   -lc_r -lm  -o python
/usr/lib/libc.so: warning: tmpnam() possibly used unsafely; consider
using mkste
mp()
/usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider
using mkst
emp()
/usr/lib/libc.so: warning: this program uses gets(), which is unsafe.
/usr/lib/libc.so: WARNING!  setkey(3) not present in the system!
/usr/lib/libc.so: WARNING!  des_setkey(3) not present in the system!
/usr/lib/libc.so: WARNING!  encrypt(3) not present in the system!
/usr/lib/libc.so: WARNING!  des_cipher(3) not present in the system!
/usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider
using mkste
mp()
/usr/lib/libc.so: warning: this program uses f_prealloc(), which is stupid.
../libpython1.5.a(threadmodule.o): In function `t_bootstrap':
/usr/local/src/Python-1.5.2/Modules/./threadmodule.c(.text+0x229):
undefined ref
erence to `PyEval_AcquireThread'
/usr/local/src/Python-1.5.2/Modules/./threadmodule.c(.text+0x309):
undefined ref
erence to `PyEval_ReleaseThread'
../libpython1.5.a(threadmodule.o): In function `thread_PyThread_start_new_thread
':
/usr/local/src/Python-1.5.2/Modules/./threadmodule.c:281: undefined
reference to
 `PyEval_InitThreads'
*** Error code 1

Stop in /usr/local/src/Python-1.5.2/Modules.
*** Error code 1

Stop in /usr/local/src/Python-1.5.2.



More information about the Python-list mailing list