# LinuxThreads not present on SLES 10, needed by IBM's Library

**URL:** <https://forums.suse.com/t/linuxthreads-not-present-on-sles-10-needed-by-ibms-library/21752>\
**Category:** SLE Software Developer Kit (SDK)\
**Created:** [November 12, 2010, 8:06pm UTC](https://forums.suse.com/t/linuxthreads-not-present-on-sles-10-needed-by-ibms-library/21752 "2010-11-12T20:06:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [November 12, 2010, 8:06pm UTC](https://forums.suse.com/t/linuxthreads-not-present-on-sles-10-needed-by-ibms-library/21752/1 "2010-11-12T20:06:07Z")

</div>

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](http://forums.novell.com/member.php?userid=98600)  
View this thread: [http://forums.novell.com/showthread.php?t=425820](http://forums.novell.com/showthread.php?t=425820)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 12, 2010, 8:32pm UTC](https://forums.suse.com/t/linuxthreads-not-present-on-sles-10-needed-by-ibms-library/21752/2 "2010-11-12T20:32:38Z")

</div>

On Fri, 12 Nov 2010 18:06:07 GMT  
bilalfarooq [bilalfarooq@no-mx.forums.novell.com](mailto:bilalfarooq@no-mx.forums.novell.com) wrote:  
[color=blue]

> 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?  
> [/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](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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 13, 2010, 2:36pm UTC](https://forums.suse.com/t/linuxthreads-not-present-on-sles-10-needed-by-ibms-library/21752/3 "2010-11-13T14:36:03Z")

</div>

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](http://forums.novell.com/member.php?userid=98600)  
View this thread: [http://forums.novell.com/showthread.php?t=425820](http://forums.novell.com/showthread.php?t=425820)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 13, 2010, 3:15pm UTC](https://forums.suse.com/t/linuxthreads-not-present-on-sles-10-needed-by-ibms-library/21752/4 "2010-11-13T15:15:07Z")

</div>

On Sat, 13 Nov 2010 12:36:03 GMT  
bilalfarooq [bilalfarooq@no-mx.forums.novell.com](mailto:bilalfarooq@no-mx.forums.novell.com) wrote:  
[color=blue]

> 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’
> 
> [/color]  
> Hi  
> Try adding in the libteceeifgw C file.

```auto
#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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 14, 2010, 9:36pm UTC](https://forums.suse.com/t/linuxthreads-not-present-on-sles-10-needed-by-ibms-library/21752/5 "2010-11-14T21:36:02Z")

</div>

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](http://forums.novell.com/member.php?userid=98600)  
View this thread: [http://forums.novell.com/showthread.php?t=425820](http://forums.novell.com/showthread.php?t=425820)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 14, 2010, 9:46pm UTC](https://forums.suse.com/t/linuxthreads-not-present-on-sles-10-needed-by-ibms-library/21752/6 "2010-11-14T21:46:25Z")

</div>

On Sun, 14 Nov 2010 19:36:02 GMT  
bilalfarooq [bilalfarooq@no-mx.forums.novell.com](mailto:bilalfarooq@no-mx.forums.novell.com) wrote:  
[color=blue]

> 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.
> 
> [/color]  
> 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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 15, 2010, 8:06am UTC](https://forums.suse.com/t/linuxthreads-not-present-on-sles-10-needed-by-ibms-library/21752/7 "2010-11-15T08:06:03Z")

</div>

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](http://forums.novell.com/member.php?userid=98600)  
View this thread: [http://forums.novell.com/showthread.php?t=425820](http://forums.novell.com/showthread.php?t=425820)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [November 16, 2010, 5:03pm UTC](https://forums.suse.com/t/linuxthreads-not-present-on-sles-10-needed-by-ibms-library/21752/8 "2010-11-16T17:03:37Z")

</div>

On Mon, 15 Nov 2010 06:06:03 GMT  
bilalfarooq [bilalfarooq@no-mx.forums.novell.com](mailto:bilalfarooq@no-mx.forums.novell.com) wrote:  
[color=blue]

> 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
> 
> [/color]  
> Hi  
> I’m not really sure, you will just need to try and test ☹

You can define the flags via

```auto
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
