[Python-bugs-list] Compiling python on hpux 11.00 with threads (PR#360)
philipp.jocham@salomon.at
philipp.jocham@salomon.at
Fri, 16 Jun 2000 08:47:08 -0400 (EDT)
Full_Name: Philipp Jocham
Version: 1.5.2
OS: HP-UX 11.00
Submission from: mailhost.salomon.at (192.64.28.5)
There are two missing details in the configure process to make this work
out of the box.
First: The function
pthread_create
isn't found in library libpthread.a but in libcma.a, because
pthread_create is just a macro in sys/pthread.h pointing to
__pthread_create_system
After patching ./configure directly and running
./configure --with-thread
(now detecting the correct library /usr/lib/libpthread.a) I also
added -lcl to Modules/Makefile at
LIBS= -lnet -lnsl -ldld -lpthread -lcl
otherwise importing of modules with threads didn't work
(in this case oci_.sl from DCOracle).
I'm not sure about the correct syntax or wether it's the correct
place and method, but I would suggest a solution like the following
code snippet.
[...]
AC_MSG_CHECKING(for --with-thread)
[...]
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lpthread -lcl"
LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(pthread, __pthread_create_system, [AC_DEFINE(WITH_THREAD)
[...]
I hope this helps to make installation process smoother.
Fell free to contact me, if there are further questions.
Philipp
--
I confirm that, to the best of my knowledge and belief, this
contribution is free of any claims of third parties under
copyright, patent or other rights or interests ("claims"). To
the extent that I have any such claims, I hereby grant to CNRI a
nonexclusive, irrevocable, royalty-free, worldwide license to
reproduce, distribute, perform and/or display publicly, prepare
derivative versions, and otherwise use this contribution as part
of the Python software and its related documentation, or any
derivative versions thereof, at no cost to CNRI or its licensed
users, and to authorize others to do so.
I acknowledge that CNRI may, at its sole discretion, decide
whether or not to incorporate this contribution in the Python
software and its related documentation. I further grant CNRI
permission to use my name and other identifying information
provided to CNRI by me for use in connection with the Python
software and its related documentation.