Build Problems
Cameron S. Watters
cameron at toolhouse.com
Fri Jan 31 19:43:51 EST 2003
Hello All,
I'll try this again without the entire make output...
If I should be looking elsewhere for an answer to this question, please
don't flame, just point me in the right direction. For the record, I've
read the README and the FAQ and searched this list and the web (using
Google) for some insight, and found nothing that helped much.
I'm attempting to build Python 2.2.2 and I'm getting the following
message when I try to 'make':
<snip>
/home/opt/src/work/Python-2.2.2/./Modules/posixmodule.c:4455: the use
of `tempnam' is dangerous, better use `mkstemp'
case $MAKEFLAGS in \
*-s*) CC='gcc' LDSHARED='ld' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*) CC='gcc' LDSHARED='ld' OPT='-DNDEBUG -g -O3 -Wall
-Wstrict-prototypes' ./python -E ./setup.py build;; \
esac
running build
running build_ext
building 'struct' extension
creating build
creating build/temp.linux-i686-2.2
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I.
-I/home/opt/src/work/Python-2.2.2/./Include -I/usr/local/include
-I/home/opt/src/work/Python-2.2.2/Include
-I/home/opt/src/work/Python-2.2.2 -c
/home/opt/src/work/Python-2.2.2/Modules/structmodule.c -o
build/temp.linux-i686-2.2/structmodule.o
creating build/lib.linux-i686-2.2
ld build/temp.linux-i686-2.2/structmodule.o -L/usr/local/lib -o
build/lib.linux-i686-2.2/struct.so
ld: warning: cannot find entry symbol _start; defaulting to 08048074
build/temp.linux-i686-2.2/structmodule.o: In function `get_pylong':
/home/opt/src/work/Python-2.2.2/Modules/structmodule.c:90: undefined
reference to `PyInt_Type'
/home/opt/src/work/Python-2.2.2/Modules/structmodule.c:90: undefined
reference to `PyInt_Type'
/home/opt/src/work/Python-2.2.2/Modules/structmodule.c:90: undefined
reference to `PyType_IsSubtype'
/home/opt/src/work/Python-2.2.2/Modules/structmodule.c:92: undefined
reference to `PyLong_Type'
/home/opt/src/work/Python-2.2.2/Modules/structmodule.c:92: undefined
reference to `PyLong_Type'
/home/opt/src/work/Python-2.2.2/Modules/structmodule.c:92: undefined
reference to `PyType_IsSubtype'
</snip>
The part I'm concerned about are the lines immediately preceding and
following the line beginning with "ld:warning:cannot..."
Complete config log and/or make output are available, but are pretty
big (about 650 KB). I should also point out that I'm attempting to
build this on a machine running a tweaked RedHat of which I am not the
admin.
Any help would be much appreciated.
More information about the Python-list
mailing list