2.4.2 on AIX 4.3 make fails on threading

P

Paul Watson

When I try to build 2.4.2 on AIX 4.3, it fails on missing thread
objects. I ran ./configure --without-threads --without-gcc.

Before using --without-threads I had several .pthread* symbols missing.
I do not have to have threading on this build, but it would be helpful
if it is possible. The machine has the IBM C compiler. Can anyone
suggest a configuration or some change that I can make to cause this to
build correctly? Thanks.

$ xlc 2>&1|head -1
VisualAge C++ Professional / C for AIX Compiler, Version 5

./Modules/makexp_aix Modules/python.exp . libpython2.4.a; c++
-Wl,-bE:Modules/python.exp -lld -o python Modules/python.o
libpython2.4.a -ldl -lm
collect2: ld returned 8 exit status
ld: 0711-317 ERROR: Undefined symbol: ._PyGILState_NoteThreadState
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254-004 The error code from the last command is 1.


Stop.
 
N

Neal Norwitz

Paul said:
When I try to build 2.4.2 on AIX 4.3, it fails on missing thread
objects. I ran ./configure --without-threads --without-gcc.

Before using --without-threads I had several .pthread* symbols missing.

Perhaps you need to add -lpthread to the link line. This should be
able to work. What is the link line output from make?
Can anyone
suggest a configuration or some change that I can make to cause this to
build correctly? Thanks.

ld: 0711-317 ERROR: Undefined symbol: ._PyGILState_NoteThreadState

I think that problem has been fixed. Try downloading this file and
replace the one in your build directory:


http://svn.python.org/projects/python/branches/release24-maint/Python/pystate.c

n
 
P

Paul Watson

Neal said:
Perhaps you need to add -lpthread to the link line. This should be
able to work. What is the link line output from make?




I think that problem has been fixed. Try downloading this file and
replace the one in your build directory:


http://svn.python.org/projects/python/branches/release24-maint/Python/pystate.c

Thanks for your help. I think it worked better after I read the
Misc/AIX-NOTES document. Apparently one -must- use --with-threads.

I grabbed a bzlib.h from the net and created ./Modules/bzlib.h since I
do not have root access. I had to change bz2module.c #include to use
quotes rather than <> symbols so that it would find the header file.

Another problem with building _codecs_cn.c I will put in another
subject. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top