Operating System - HP-UX
1752795 Members
5875 Online
108789 Solutions
New Discussion юеВ

Re: /usr/lib/dld.sl: Unresolved symbol: pthread_create (code)

 
gopa haldar
New Member

/usr/lib/dld.sl: Unresolved symbol: pthread_create (code)

My application uses third party library like boost which uses libpthread to create threads.
And this application is working fine with HPUX version 11.23 but following error oocurrs during runtime in HPUX version 11.11.
/usr/lib/dld.sl: Unresolved symbol: pthread_create (code) from /opt/bst/lib/libboost_thread.sl

ABORT instruction (core dumped).

but before call boost API, if I create a dummy thread using pthread_create api then it is working fine for both HPUX version.

Please let me know the solution of this problem.

More info:
bash-2.04# nm libpthread.1 | grep pthread_create
__pthread_create_system| 35316|uext |stub |
__pthread_create_system| 48508|extern|entry |
__pthread_create_system| 48532|extern|code |$CODE$

7 REPLIES 7
Jupinder Bedi
Respected Contributor

Re: /usr/lib/dld.sl: Unresolved symbol: pthread_create (code)

you need to install the updated patch .
All things excellent are as difficult as they are rare
Dennis Handly
Acclaimed Contributor

Re: /usr/lib/dld.sl: Unresolved symbol: pthread_create (code)

dld.sl: Unresolved symbol: pthread_create /opt/bst/lib/libboost_thread.sl
>Please let me know the solution of this problem.

Your libboost_thread.sl has been compiled on 11.23. You can't run this shlib on 11.11. You must recompile your third party library.

There is NO such function as pthread_create on 11.11. It gets mapped to _pthread_create_system by header file magic.
gopa haldar
New Member

Re: /usr/lib/dld.sl: Unresolved symbol: pthread_create (code)

I am using HPUX 11.11 patch version PHCO_30544
gopa haldar
New Member

Re: /usr/lib/dld.sl: Unresolved symbol: pthread_create (code)

Even it is not working with latest PATCH PHCO_38307
Dennis Handly
Acclaimed Contributor

Re: /usr/lib/dld.sl: Unresolved symbol: pthread_create (code)

>Even it is not working with latest PATCH PHCO_38307, libpthread

Or course not. As I said above, what you are doing isn't supported.
Where did you get libboost_thread.sl?

Jupinder's suggestion only works if you don't have __pthread_create_system stub defined in libc.sl.
gopa haldar
New Member

Re: /usr/lib/dld.sl: Unresolved symbol: pthread_create (code)

I have buit the boost library in hpux 11.23 system
Dennis Handly
Acclaimed Contributor

Re: /usr/lib/dld.sl: Unresolved symbol: pthread_create (code)

>I have built the boost library on 11.23 system

As I suspected. Then you know your solution. HP-UX is only forward compatible and if you want to run on 11.11, you must built it there.