[Python-bugs-list] [ python-Bugs-741307 ] Configure does NOT set properly *FLAGS for thread support

SourceForge.net noreply@sourceforge.net
Wed, 21 May 2003 20:34:14 -0700


Bugs item #741307, was opened at 2003-05-21 14:53
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=741307&group_id=5470

Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Martin Mokrejs (mmokrejs)
Assigned to: Nobody/Anonymous (nobody)
Summary: Configure does NOT set properly *FLAGS for thread support

Initial Comment:
On Tru64Unix 5.1A(but also older version like Digital
Unix 4.0 for example), there have to be specified
CFLAGS="-pthread" and CXXFLAGS="-pthread", so that
configure can detect working pthread.h.

In case of Python-2.3b1 even when user set those both
variables before running configure, at the link step gets:

cc   -o python \
                Modules/ccpython.o \
                libpython2.3.a -lrt -L/usr/local/lib
-L/software/@sys/usr/lib -L/usr/local/openssl/lib
-L/usr/lib   -lm  
ld:
Unresolved:
__pthread_self
__pthread_create
__pthread_detach
make: *** [python] Error 1
$

This can be easily fixed:

$ cc -pthread -o python Modules/ccpython.o
libpython2.3.a -lrt -L/usr/local/lib
-L/software/@sys/usr/lib -L/usr/local/openssl/lib
-L/usr/lib -lm 
$

I guess in this case LDFLAGS are in effect. So,
configure should make sure -pthread is appended to all,
CFLAGS, CXXFLAGS and LDFLAGS.

----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2003-05-21 23:34

Message:
Logged In: YES 
user_id=33168

Is this only with the Dec/Compaq/HP compiler (cc/cxx)?  Do
you know if python links ok with gcc?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=741307&group_id=5470