473,387 Members | 1,441 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,387 software developers and data experts.

Python 2.3.3 compilation problems an HP-UX

I'm having some problems compiling Python 2.3.3 on HP-UX (B.11.00).
I've tried sevral different options for the configure script (e.g.
enabling/disabling gcc, aCC) but I always get the same problem during
the final linking stage. Several PyThread_* symbols are undefined (for
details see the output below).

In order to get DCOracle2 support working I've also set the LDFLAGS
environment variable to "-lpthread -lcl" (as mentioned in the
README.HP-HX file).

I would really appreciate any advice!

Here's the output of the final stage of my build process:

rm -f libpython2.3.a
ar cr libpython2.3.a Modules/getbuildinfo.o
ar cr libpython2.3.a Parser/acceler.o Parser/grammar1.o
Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o
Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o
Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o
ar cr libpython2.3.a Objects/abstract.o Objects/boolobject.o
Objects/bufferobject.o Objects/cellobject.o Objects/classobject.o
Objects/cobject.o Objects/complexobject.o Objects/descrobject.o
Objects/enumobject.o Objects/fileobject.o Objects/floatobject.o
Objects/frameobject.o Objects/funcobject.o Objects/intobject.o
Objects/iterobject.o Objects/listobject.o Objects/longobject.o
Objects/dictobject.o Objects/methodobject.o Objects/moduleobject.o
Objects/object.o Objects/obmalloc.o Objects/rangeobject.o
Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o
Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o
Objects/unicodeobject.o Objects/unicodectype.o
ar cr libpython2.3.a Python/bltinmodule.o Python/exceptions.o
Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o
Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o
Python/getcompiler.o Python/getcopyright.o Python/getmtime.o
Python/getplatform.o Python/getversion.o Python/graminit.o
Python/import.o Python/importdl.o Python/marshal.o
Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o
Python/pyfpe.o Python/pystate.o Python/pythonrun.o
Python/structmember.o Python/symtable.o Python/sysmodule.o
Python/traceback.o Python/getopt.o Python/dynload_hpux.o
Python/thread.o
ar cr libpython2.3.a Modules/config.o Modules/getpath.o
Modules/main.o Modules/gcmodule.o
ar cr libpython2.3.a Modules/threadmodule.o
Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o
Modules/_sre.o Modules/_codecsmodule.o Modules/zipimport.o
Modules/symtablemodule.o Modules/xxsubtype.o
ranlib libpython2.3.a
c++ -lpthread -lcl -Wl,-E -Wl,+s -o python \
Modules/python.o \
libpython2.3.a -lnsl -lrt -ldld -lm
collect2: ld returned 1 exit status
/usr/ccs/bin/ld: Unsatisfied symbols:
PyThread_acquire_lock (first referenced in libpython2.3.a(main.o))
(code)
PyThread_exit_thread (first referenced in libpython2.3.a(main.o)) (code)
PyThread_allocate_lock (first referenced in libpython2.3.a(main.o))
(code)
PyThread_free_lock (first referenced in libpython2.3.a(main.o)) (code)
PyThread_start_new_thread (first referenced in
libpython2.3.a(main.o)) (code)
PyThread_release_lock (first referenced in libpython2.3.a(main.o))
(code)
PyThread_get_thread_ident (first referenced in
libpython2.3.a(main.o)) (code)
PyThread__init_thread (first referenced in libpython2.3.a(main.o))
(code)
*** Error exit code 1
Thanks,
Olaf
Jul 18 '05 #1
2 2011
In article <aH******************@news2.nokia.com>,
Olaf Meyer <no****@nospam.net> wrote:

I'm having some problems compiling Python 2.3.3 on HP-UX (B.11.00).
I've tried sevral different options for the configure script (e.g.
enabling/disabling gcc, aCC) but I always get the same problem during
the final linking stage. Several PyThread_* symbols are undefined (for
details see the output below).


I'd suggest that you look at the recent threads about compiling for
HP-UX on python-dev. It's starting to look like a SIG might be a good
way to go.
--
Aahz (aa**@pythoncraft.com) <*> http://www.pythoncraft.com/

A: No.
Q: Is top-posting okay?
Jul 18 '05 #2
Aahz wrote:
In article <aH******************@news2.nokia.com>,
Olaf Meyer <no****@nospam.net> wrote:
I'm having some problems compiling Python 2.3.3 on HP-UX (B.11.00).
I've tried sevral different options for the configure script (e.g.
enabling/disabling gcc, aCC) but I always get the same problem during
the final linking stage. Several PyThread_* symbols are undefined (for
details see the output below).

I'd suggest that you look at the recent threads about compiling for
HP-UX on python-dev. It's starting to look like a SIG might be a good
way to go.


Thanks for pointing me there. It seems that there's some clean-up needed
for HP-UX. Luckily compiling 2.2.1 works fine for me, so I think I'll
stick with it until the 2.3 versions compile with HP-UX 'out-of-the-box' ;-)

Olaf
Jul 18 '05 #3

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

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
0
by: Marcin 'Qrczak' Kowalczyk | last post by:
I made a bridge between my language Kogut <http://qrnik.knm.org.pl/~qrczak/kogut/kogut.html> and Python, which gives my language instant access to Python libraries. (I'm only linking to libpython,...
53
by: Stelios Xanthakis | last post by:
Hi. pyvm is a program which can run python 2.4 bytecode (the .pyc files). A demo pre-release is available at: http://students.ceid.upatras.gr/~sxanth/pyvm/ Facts about pyvm: - It's FAST....
17
by: seb.haase | last post by:
Hi, Is it true that that "Python 3000" is dead ? Honestly I think that e.g. changing 5/2 to be 2.5 (instead of 2) would just break to much code :-( On the otherhand I'm using Python as "Matlab...
6
by: Pete | last post by:
I am using xpsp2, and I have two versions of python (2.2 and 2.2.3 - both are listed as 29.3 mb, and listed as rarely used, which means never to me) listed in add/remove programs in the control...
8
by: js | last post by:
HI guys, How do you write Perl's print a ... z, A ... Z, "\n"' in Python In Python?
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 385 open (+21) / 3790 closed (+21) / 4175 total (+42) Bugs : 1029 open (+43) / 6744 closed (+43) / 7773 total (+86) RFE : 262 open...
29
by: Carl Banks | last post by:
Anyone with me here? (I know the deadline for P3 PEPs has passed; this is just talk.) Not many people are bit-fiddling these days. One of the main uses of bit fields is flags, but that's not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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.