[Python-bugs-list] [ python-Bugs-745320 ] threads broke on FreeBSD current
SourceForge.net
noreply@sourceforge.net
Sat, 28 Jun 2003 00:45:25 -0700
Bugs item #745320, was opened at 2003-05-29 05:46
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=745320&group_id=5470
Category: Build
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Till Plewe (tpx)
Assigned to: Nobody/Anonymous (nobody)
Summary: threads broke on FreeBSD current
Initial Comment:
default configuration builts with the snapshot taken at
05-24-230001 but not with the snapshot from
05-26-230001 (--without-threads builts)
I get the following compiler complaint when trying to
build python_2003-05-26-230001:
c++ -Wl,--export-dynamic -o python Modules/python.o
libpython2.3.a -lutil -
lm
libpython2.3.a(posixmodule.o): In function `posix_tmpnam':
Modules/posixmodule.c:5785: warning: tmpnam() possibly
used unsafely; consider u
sing mkstemp()
libpython2.3.a(posixmodule.o): In function `posix_tempnam':
Modules/posixmodule.c:5738: warning: tempnam() possibly
used unsafely; consider
using mkstemp()
libpython2.3.a(thread.o): In function
`PyThread_start_new_thread':
Python/thread_pthread.h:217: undefined reference to
`pthread_create'
Python/thread_pthread.h:253: undefined reference to
`pthread_detach'
*** Error code 1
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2003-06-28 09:45
Message:
Logged In: YES
user_id=21627
Fixed with patch #758910.
----------------------------------------------------------------------
Comment By: Till Plewe (tpx)
Date: 2003-06-02 04:57
Message:
Logged In: YES
user_id=782552
adding
LIBC=-lkse
to the Makefile seems to do the trick. Python builds without
any
further problems (I didn't use autoconf)
----------------------------------------------------------------------
Comment By: Andrew I MacIntyre (aimacintyre)
Date: 2003-06-01 09:27
Message:
Logged In: YES
user_id=250749
I think what's missing here is the correct library reference.
I don't have a 5.x box at the moment, so can't check, but as
I recall, there are 2 options at the moment:-
- libkse;
- libthr.
Could you check my recollection and try adding the
appropriate library reference to the Makefile to see whether
you get a viable build?
Some autoconf-fu would then be required to make the setting
stick.
As the FreeBSD core team haven't yet designated anything
from the 5.x line as stable, this makes keeping track of the
non-trivial threading changes hard.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=745320&group_id=5470