473,503 Members | 338 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linking problems under irix6 with embedded Python2.4

I have a problem with linking my CPP Code under a irix6 machine (sgi,
UNIX). In my CPP code I use some Functions which are written in
Python. So its a kind of CPP wrapper for my Python functions In my
Python Code I use threads to communicate over the network and stuff
like this. Compilation and linking are working very well under Windows
and Linux with the same code. Under the sgi, UNIX machine some errors
occur and I don't no why. Following version are used:
Python2.4
gcc version 3.0.4

For linking I'am using following statement:
g++ -v -lm -lpthread -lsocket -lnsl -ldl -DNDEBUG -g -O3 -Wall
-fno-strict-aliasing -fPIC -Xlinker
-I/work/efs/rohrache/python24/Python2.4/local/lib/python2.4/lib-dynload
DynArray.o Interface.o sim_calc.o -o simcalc
/work/efs/rohrache/python24/Python-2.4/libpython2.4.a

The linking options, I take from the makefile which Python produces
during the installation process. Following output occur.

=> ...
Reading specs from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/specs
Configured with: ../configure --prefix=/usr/freeware
--enable-version-spec
ific-runtime-libs --disable-shared --enable-threads --enable-haifa
Thread model: single
gcc version 3.0.4
/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0.4/collect2
-call_shared -n
o_unresolved -init __do_global_ctors -fini __do_global_dtors
-_SYSTYPE_SVR
4 -woff 131 -n32 -o simcalc /usr/lib32/mips3/crt1.o
/usr/freeware/lib/gcc-
lib/mips-sgi-irix6.5/3.0.4/crtbegin.o
-L/usr/freeware/lib/gcc-lib/mips-sgi
-irix6.5/3.0.4 -L/usr/bin
-L/usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.0
..4/../../.. -lpthread -lsocket -lnsl -ldl
-I/work/efs/rohrache/python24/Py
thon2.4/local/lib/python2.4/lib-dynload DynArray.o Interface.o
sim_calc.o
/work/efs/rohrache/python24/Python-2.4/libpython2.4.a -lstdc++ -lm
-dont_w
arn_unused -lgcc -warn_unused -L/usr/lib32/mips3 -L/usr/lib32
-dont_warn_u
nused -lc -warn_unused -dont_warn_unused -lgcc -warn_unused
/usr/freeware/
lib/gcc-lib/mips-sgi-irix6.5/3.0.4/crtend.o /usr/lib32/mips3/crtn.o
(null): WARNING 1 : Unknown option:
I/work/efs/rohrache/python24/Python2.
4/local/lib/python2.4/lib-dynload (ignored).
ld32: WARNING 84 : /usr/lib32/libpthread.so is not used for resolving
any
symbol.
ld32: WARNING 84 : /usr/lib32/libsocket.so is not used for resolving
any s
ymbol.
ld32: WARNING 84 : /usr/lib32/libnsl.so is not used for resolving any
symb
ol.
ld32: WARNING 84 : /usr/lib32/libdl.so is not used for resolving any
symbo
l.
ld32: ERROR 33 : Unresolved text symbol "pthread_detach" -- 1st
referenc
ed by /work/efs/rohrache/python24/Python-2.4/libpython2.4.a(thread.o).
Use linker option -v to see when and which objects, archives
and d
sos are loaded.
ld32: INFO 152: Output file removed because of error.
collect2: ld returned 2 exit status

The warnings are no problem to eliminate, but the error message is
very strange.
I don't know how i can handle this problem. I tried alot of additional
link options but I can find no realy solution. Are there some ideas.

thank's alot.
Wolfgang
Jul 18 '05 #1
0 1701

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

Similar topics

2
3483
by: Rick Olson | last post by:
I'm trying to add a Tkinter interface to an existing C program with embedded python, but seem to have trouble importing Tkinter (or accessing it). I tried a simple program that would run the...
0
1234
by: Jeffrey Holle | last post by:
I am working on a Linux system using gcc v3.3 and python v2.3.2 I have a problem linking a cpp program to a shared library that uses the Python C API. With just referencing this shared library, I...
1
2577
by: Jeff Hagelberg | last post by:
I'm trying to create a python module which can be used by a python interpreter embedded inside a fortran program I have. To do this, I first created python wrappers for all the functions in my...
0
2005
by: Richard Taylor | last post by:
User-Agent: OSXnews 2.07 Xref: number1.nntp.dca.giganews.com comp.lang.python:437315 Hi I am trying to use py2app (http://undefined.org/python/) to package a gnome-python application...
0
880
by: Xiao Jianfeng | last post by:
Hello, I am trying to install python2.4.2 on a SGI origin3200 machine running IRIX6.5. The native c compiler was used to compile python. "./configure --prefix=/my/path/to/install" runs ok,...
0
1124
by: Xiao Jianfeng | last post by:
Hello, I am trying to install python2.4.2 on IRIX6.5, but test_fpformat and test_locale failed when I ran "smake test". The following is the detailed error message: ...
1
3165
by: jmalone | last post by:
I have a python script that I need to freeze on AIX 5.1 (customer has AIX and does not want to install Python). The python script is pretty simple (the only things it imports are sys and socket)....
0
1025
by: Lane Brooks | last post by:
When I run a particular python script from an embedded interpreter, I get the following ImportError: File "di.py", line 14, in load from xml.dom.ext.reader import Sax2 File...
4
2473
by: Markus Dahlbokum | last post by:
Hello, I'm trying to link python statically with qt and pyqt. I've tried this in several ways but never succeeded. At the moment the final make runs without errors but I get import errors when...
0
7281
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
7334
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...
1
6993
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...
0
5579
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.