[Python-bugs-list] [ python-Bugs-522393 ] Doesn't build on SGI
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 25 Feb 2002 05:24:01 -0800
Bugs item #522393, was opened at 2002-02-25 03:07
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=522393&group_id=5470
Category: None
Group: Python 2.2.1 candidate
Status: Open
Resolution: None
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Michael Hudson (mwh)
Summary: Doesn't build on SGI
Initial Comment:
On the SGI I can't build the current 2.2.1 from CVS.
I get an undefined error on pthread_detach in the link step for python:
ld32: ERROR 33: Unresolved text symbol "pthread_detach" -- 1st referenced by libpython2.2.a(thread.o).
----------------------------------------------------------------------
>Comment By: Jack Jansen (jackjansen)
Date: 2002-02-25 05:24
Message:
Logged In: YES
user_id=45365
Ouch! You are right: the trunk also doesn't build, and probably 2.2 doesn't build either. I've never checked this, because I always build --without-thread on SGI.
I've found the problem: libc contains a partial implementation of pthreads, which does include pthread_create but not pthread_detach. For the full implementation you need to add -lpthread to your link step.
But the autoconf test tests only for pthread_create(), so it thinks no extra link options are needed.
I think we should reassign this to a pthread guru, but I'm not sure who qualifies. Simply adding a pthread_detach() call to the autotest may be worse, if I read thread_pthread.h correctly thread_detach() isn't defined in all flavors of pthreads.
----------------------------------------------------------------------
Comment By: Michael Hudson (mwh)
Date: 2002-02-25 04:35
Message:
Logged In: YES
user_id=6656
OK, this is odd. Does the trunk build? Did 2.2 build? I
can't easily find any branch changes that would account for
this. I haven't looked very hard yet. Will do so later.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=522393&group_id=5470