473,396 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

2.4.2 on AIX 4.3 make fails on threading

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.
Nov 22 '05 #1
2 1104
Paul Watson wrote:
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/pytho...thon/pystate.c

n

Nov 23 '05 #2
Neal Norwitz wrote:
Paul Watson wrote:
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/pytho...thon/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.
Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ron | last post by:
All, I have a weird problem, I have a Native DLL that CoCreates a COM object. If I call this DLL from a native MFC app, everything goes just fine; If I call it from an managed application...
33
by: n00m | last post by:
import socket, thread host, port = '192.168.0.3', 1434 s1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s2 = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s2.connect((host, 1433))...
0
by: TT (Tom Tempelaere) | last post by:
Hi there The following is a description to reproduce the problem. I do not know if this is a bug in the .NET environment/framework (I suspect it is), or if there is something that I am doing...
8
by: Henry | last post by:
Hi, in a Windows form VB.Net project I use localization for all texts. In App.Config I added: <appSettings> <add key="locale" value="de"/> </appSettings> In the project I have ressource...
2
by: Lorenzo | last post by:
I have a .net webservice (located in a different machine) that is called twice from a windows form .net application. The ws works fine if I called only one call, but failed if I called them...
8
by: Rick Lederman | last post by:
I am using a PrintDocument and PrintDialog to print. The first time that I print it works, but when I try to print a second time without exiting the entire program I get an...
0
by: angshuman.agarwal | last post by:
Hi, I have a owner drawn combo box (using .Net 2.0 Framework). I have written the Nunit test for the same. I am setting the AutoCompleteSource Property (AutoCompleteSource.CustomSource) and...
4
by: Anbu | last post by:
Hi All, I'm using the Cassini component in my desktop application to create a web site to host the web services. The application works fine in normal scenario. If the system is kept idle for...
3
by: teddysnips | last post by:
SCENARIO: Application originally developed in Access 97 several years ago. Worked with no problem until recent change from Novell to Active Directory. PROBLEM: Application was converted...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.