Link errors on Solaris 7 - Python 2.0

Andrew Kuchling akuchlin at mems-exchange.org
Fri Oct 20 13:35:06 EDT 2000


"Mr. Xyzzy" <mrxyzzyNOSPAM at xyzzyNOSPAM.com> writes:
> gcc   python.o \
>           ../libpython2.0.a -ldb  -lpthread -lsocket -lnsl -ldl
> -lthread -lm  -o python
> Undefined                       first referenced
>  symbol                             in file
> dbopen                              ../libpython2.0.a(bsddbmodule.o)

Try adding the --without-libdb switch to your configure invocation.
2.0's configure script tries to figure out if the BerkeleyDB library
is installed and automatically compile the bsddbmodule if it is.
Perhaps Solaris 7 has some libdb.a library of its own that's fooling
the script, so the switch should disable the attempt to autodetect this.

--amk




More information about the Python-list mailing list