[Python-Dev] build problems large and small on FreeBSD
Jeremy Hylton
jeremy@beopen.com
Fri, 13 Oct 2000 19:05:02 -0400 (EDT)
I just built the latest CVS sources on a FreeBSD machine (4.1-RELEASE
FreeBSD). There are a number of compiler warnings, all having to do
with redefinitions, plus some linker warnings and a test failure.
I don't have time to investigate further, but thought I'd let people
know in case someone else has time to take a look.
test_math failed -- overflowing exp() didn't trigger OverflowError
Python 2.0c1 (#2, Oct 13 2000, 15:50:26)
[GCC 2.95.2 19991024 (release)] on freebsd4
Type "copyright", "credits" or "license" for more information.
>>> import math
>>> math.exp(1200)
Inf
The warnings from the linker seem harmless enough. I don't know why
it is complaining about setkey and des_setkey.
/usr/lib/libc.so: WARNING! setkey(3) not present in the system!
/usr/lib/libc.so: warning: this program uses gets(), which is unsafe.
/usr/lib/libc.so: warning: mktemp() possibly used unsafely; consider using mkstemp()
/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: tmpnam() possibly used unsafely; consider using mkstemp()
/usr/lib/libc.so: warning: this program uses f_prealloc(), which is stupid.
/usr/lib/libc.so: WARNING! des_cipher(3) not present in the system!
/usr/lib/libc.so: warning: tempnam() possibly used unsafely; consider using mkstemp()
The compiler-time warnings look like they are caused by a configure
problem. If so, I don't know how to fix it :-).
gcc -O3 -I../../Python/../Include -I.. -DHAVE_CONFIG_H -c ../../Python/thread.c
In file included from /usr/include/unistd.h:42,
from ../../Python/thread.c:28:
/usr/include/sys/unistd.h:71: warning: `_POSIX_THREADS' redefined
../config.h:136: warning: this is the location of the previous definition
In file included from ../../Python/thread.c:118:
../../Python/thread_pthread.h:59: warning: `pthread_attr_default' redefined
/usr/include/pthread.h:158: warning: this is the location of the previous definition
../../Python/thread_pthread.h:60: warning: `pthread_mutexattr_default' redefined
/usr/include/pthread.h:157: warning: this is the location of the previous definition
../../Python/thread_pthread.h:61: warning: `pthread_condattr_default' redefined
/usr/include/pthread.h:156: warning: this is the location of the previous definition
Jeremy