We are building a program on SLES 10. SLES 10 only supports the new
implementation of posix threads called NPTL.
Our program links to an IBM Tivoli Library that depends on
LinuxThreads. So we cannot build our program on SLES 10.
If we build our program on SLES 9 (beause SLES 9 has LinuxThreads),
will it run on SLES 10? Or will it crash?
We are building a program on SLES 10. SLES 10 only supports the new
implementation of posix threads called NPTL.
Our program links to an IBM Tivoli Library that depends on
LinuxThreads. So we cannot build our program on SLES 10.
If we build our program on SLES 9 (beause SLES 9 has LinuxThreads),
will it run on SLES 10? Or will it crash?
[/color]
Hi
Have a read here, looks like some patching of your code required. http://www-01.ibm.com/support/docview.wss?rs=2030&uid=swg21245005
Thanks for your reply. We are already aware of the above link from IBM.
However, our specific issue is different and uptil now, we have not
found it on the web/IBM sites. We are getting the following Linking
error:
…/…/Tivoli/libteceeifgw.a(ed_threads.o): In function threadInit': ed_threads.c:(.text+0x27): undefined reference to __pthread_initialize’
Thanks for your reply. We are already aware of the above link from
IBM. However, our specific issue is different and uptil now, we have
not found it on the web/IBM sites. We are getting the following
Linking error:
./…/Tivoli/libteceeifgw.a(ed_threads.o): In function threadInit': ed_threads.c:(.text+0x27): undefined reference to __pthread_initialize’
[/color]
Hi
Try adding in the libteceeifgw C file.
#include <pthread.h>
And then add -lpthread into your CC flags/makefile
I forgot to mention… we do not have the source code for the IBM
Tivoli Library → “libteceeifgw.a”
Our software links to “libteceeifgw.a”, we are using some methods from
this library in our program.
I forgot to mention… we do not have the source code for the IBM
Tivoli Library → “libteceeifgw.a”
Our software links to “libteceeifgw.a”, we are using some methods from
this library in our program.
[/color]
Hi
What it you try compiling using gcc 3.3?
I will go ahead and try that, however, I am not an expert when it comes
to gcc versions, glibc and related library versions (e.g., LinuxThreads
or NPTL)
So, a question here:
If we install gcc 3.3 on our SLES 10 and build our program with it,
will it run fine on any other SLES 10 system?
I ask because SLES 10 only supports the newer implementation of Posix
Threads → Native Posix Threads Library.
I will go ahead and try that, however, I am not an expert when it
comes to gcc versions, glibc and related library versions (e.g.,
LinuxThreads or NPTL)
So, a question here:
If we install gcc 3.3 on our SLES 10 and build our program with it,
will it run fine on any other SLES 10 system?
I ask because SLES 10 only supports the newer implementation of Posix
Threads → Native Posix Threads Library.
Many thanks,
Bilal
[/color]
Hi
I’m not really sure, you will just need to try and test