PDA

View Full Version : LinuxThreads not present on SLES 10, needed by IBM's Library



bilalfarooq
12-Nov-2010, 19:06
Hi all,

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?


--
bilalfarooq
------------------------------------------------------------------------
bilalfarooq's Profile: http://forums.novell.com/member.php?userid=98600
View this thread: http://forums.novell.com/showthread.php?t=425820

malcolmlewis
12-Nov-2010, 19:32
On Fri, 12 Nov 2010 18:06:07 GMT
bilalfarooq <bilalfarooq@no-mx.forums.novell.com> wrote:

>
> Hi all,
>
> 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?
>
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

--
Cheers Malcolm (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.24-0.2-default
up 2:34, 2 users, load average: 0.04, 0.06, 0.03
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.21

bilalfarooq
13-Nov-2010, 13:36
Hi Malcom,

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'


--
bilalfarooq
------------------------------------------------------------------------
bilalfarooq's Profile: http://forums.novell.com/member.php?userid=98600
View this thread: http://forums.novell.com/showthread.php?t=425820

malcolmlewis
13-Nov-2010, 14:15
On Sat, 13 Nov 2010 12:36:03 GMT
bilalfarooq <bilalfarooq@no-mx.forums.novell.com> wrote:

>
> Hi Malcom,
>
> 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'
>
>
Hi
Try adding in the libteceeifgw C file.


#include <pthread.h>

And then add -lpthread into your CC flags/makefile

--
Cheers Malcolm (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.24-0.2-default
up 21:07, 2 users, load average: 0.19, 0.08, 0.01
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.21

bilalfarooq
14-Nov-2010, 20:36
Hi Malcom,

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.


--
bilalfarooq
------------------------------------------------------------------------
bilalfarooq's Profile: http://forums.novell.com/member.php?userid=98600
View this thread: http://forums.novell.com/showthread.php?t=425820

malcolmlewis
14-Nov-2010, 20:46
On Sun, 14 Nov 2010 19:36:02 GMT
bilalfarooq <bilalfarooq@no-mx.forums.novell.com> wrote:

>
> Hi Malcom,
>
> 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.
>
>
Hi
What it you try compiling using gcc 3.3?

--
Cheers Malcolm (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.24-0.2-default
up 2 days 3:48, 3 users, load average: 0.05, 0.08, 0.08
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.21

bilalfarooq
15-Nov-2010, 07:06
Hi Malcom,

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


--
bilalfarooq
------------------------------------------------------------------------
bilalfarooq's Profile: http://forums.novell.com/member.php?userid=98600
View this thread: http://forums.novell.com/showthread.php?t=425820

malcolmlewis
16-Nov-2010, 16:03
On Mon, 15 Nov 2010 06:06:03 GMT
bilalfarooq <bilalfarooq@no-mx.forums.novell.com> wrote:

>
> Hi Malcom,
>
> 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
>
>
Hi
I'm not really sure, you will just need to try and test :(

You can define the flags via


export CC=/usr/bin/gcc-3.3
export CXX=/usr/bin/g++-3.3


--
Cheers Malcolm (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.24-0.2-default
up 3 days 23:03, 2 users, load average: 0.04, 0.05, 0.01
GPU GeForce 8600 GTS Silent - Driver Version: 260.19.21