installation error: version 1.5.2 on Unix
Thomas A. Bryan
tbryan at python.net
Thu Feb 3 05:03:39 CET 2000
Yueqiang Huang wrote:
> The error message is
> gcc python.o \
> ../libpython1.5.a -lsocket -lnsl -ldl -lm -o python
> Undefined first referenced
> symbol in file
> Py_Main python.o
> ld: fatal: Symbol referencing errors. No output written to python
> *** Error code 1
> make: Fatal error: Command failed for target `link'
> Any idea? Thanks in advance!
Was this your first try at running make, or had you already
run make once before? If the Python build proceeds far enough,
it will leave some garbage around that will cause subsequent makes
to fail. The solution in that case is to run 'make clobber' before
building. Note that 'make clean' won't solve the problem. If you
also want to reconfigure, you should use 'make distclean'.
Please tell me if that helps. I wrote a FAQ entry on make clobber
after I wasted nearly a day trying to make Python compile with a
half-built libpython1.5.a lying around that I didn't notice at first.
I had run 'make clean', but that didn't get rid of the faulty library.
More information about the Python-list