人生の敗北者でも使えるPythonのお勉強 Part7

このエントリーをはてなブックマークに追加
645645
FreeBSD (4.8-RELEASE)のマシンにPython-2.4を(ソースコードから)インストールし
ようとしています。

/usr/local/Pythonにインストールするため、
 % ./configure --prefix=/usr/local/Python
 % gmake
を実行したのですが、途中で

building '_hotshot' extension
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -pg -fno-strict-aliasing -I. … -c …/Modules/_hotshot.c -o build/temp.freebsd-4.8-RELEASE-i386-2.4/_hotshot.o
gcc -shared -pg build/temp.freebsd-4.8-RELEASE-i386-2.4/_hotshot.o -L/usr/local/lib -o build/lib.freebsd-4.8-RELEASE-i386-2.4/_hotshot.so
*** WARNING: renaming "_hotshot" since importing it failed: build/lib.freebsd-4.8-RELEASE-i386-2.4/_hotshot.so: Undefined symbol "fgetc"

というのが出てきます。一方、

building 'array' extension
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -pg -fno-strict-aliasing -I. … -c /…/Modules/arraymodule.c -o build/temp.freebsd-4.8-RELEASE-i386-2.4/arraymodule.o
gcc -shared -pg build/temp.freebsd-4.8-RELEASE-i386-2.4/arraymodule.o -L/usr/local/lib -o build/lib.freebsd-4.8-RELEASE-i386-2.4/array.so
building 'cmath' extension

の 'array' extension のように、何のエラーも出ないものもあります。