Mateusz Korniak
mateusz at ant.gliwice.pl
Sat Oct 5 15:39:48 EST 2002
On Saturday 05 October 2002 15:10, Jack Diederich wrote: > > NE> It seems, BETA2 of mod_python 3 is not compatible with > > NE> Apache-2.0.42. It builds successfully, but when apache is asked to > > NE> test new configuration it complains about undefined symbol "openpty" > > NE> while trying to load mod_python into the server. > For me (mod_python 2x, linux, Python 2.2.1) I needed to symlink > Modules/Makefile to the root Python Makefile or ./configure would leave out > some libraries in the linker line. I don't remember if libutil was one of > them. > I've run at similar behavior .... I'm totally ignorant about autoconf/automake stuff but I think problem affects python 2.2 bug in configure.in. 2.2 version triggers bad path to Makefile -> python is badly recognaised as linked without libs -> symbols are missing. # set python std library variable AC_MSG_CHECKING(what libraries Python was linked with) AC_SUBST(LIBS) if test -z "$PYTHON_SRC"; then PyLIBP=${PyEXEC_INSTALLDIR}/lib/python${PyVERSION} PyLIBPL=${PyLIBP}/config PyPYTHONLIBS=${PyLIBPL}/libpython${PyVERSION}.a PyLIBS=`grep "^LIB[[SMC]]=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` PyMODLIBS=`grep "^LOCALMODLIBS=" ${PyLIBPL}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` PY_LIBS="${PyPYTHONLIBS} ${PyLIBS} ${PyMODLIBS}" else PyPYTHONLIBS=${PYTHON_SRC}/libpython${PyVERSION}.a if test ${PyVERSION} = "2.1"; then ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ IMHO This test should be possitive for 2.2 too PyLIBS=`grep "^LIB[[SMC]]=" ${PYTHON_SRC}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` PyMODLIBS=`grep "^LOCALMODLIBS=" ${PYTHON_SRC}/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` else PyLIBS=`grep "^LIB[[SMC]]=" ${PYTHON_SRC}/Modules/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` PyMODLIBS=`grep "^LOCALMODLIBS=" ${PYTHON_SRC}/Modules/Makefile | cut -f2 -d= | tr '\011\012\015' ' '` fi PY_LIBS="${PyPYTHONLIBS} ${PyLIBS} ${PyMODLIBS}" fi -- Mateusz Korniak "Black holes are where God divided by zero." - Steven Wright
|