- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: unsatisfied pthread symbols in gcc
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 06:20 AM
тАО09-19-2008 06:20 AM
unsatisfied pthread symbols in gcc
I dowloaded gcc 4.2.4 and 4.3.1 for HP-UX 11.11 (HP-UX hp9000 B.11.11 U 9000/785 2003690492 unlimited-user license
)from itrc and consistently have the following error:
-bash-3.2# /opt/hp-gcc64/bin/gcc hello.c
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol 'pthread_mutex_lock' in load module '/opt/hp-gcc64/bin/gcc'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol 'pthread_mutex_unlock' in load module '/opt/hp-gcc64/bin/gcc'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol 'pthread_attr_setdetachstate' in load module '/opt/hp-gcc64/bin/gcc'.
/usr/lib/pa20_64/dld.sl: Unsatisfied data symbol 'pthread_attr_destroy' in load module '/opt/hp-gcc64/bin/gcc'.
ABORT instruction (core dumped)
it's not that libpthread would be missing, it's where it's supposed to be:
-bash-3.2# find / -name libpthread* -print
/usr/lib/libpthread.1
/usr/lib/pa20_64/libp/libpthread.a
/usr/lib/pa20_64/libpthread.a
/usr/lib/pa20_64/libpthread_tr.a
/usr/lib/pa20_64/libpthread.1
/usr/lib/pa20_64/libpthread.sl
/usr/lib/pa20_64/libpthread_tr.1
/usr/lib/pa20_64/libpthread_tr.sl
/usr/lib/libpthread.sl
/usr/lib/libpthread_tr.1
/usr/lib/libpthread_tr.sl
/usr/lib/libp/libpthread.a
/usr/lib/libpthread.a
/usr/lib/libpthread_tr.a
Anyone seen this before??
I much appreciate any hint, as I never had this issue before!
Thanks
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 12:16 PM
тАО09-19-2008 12:16 PM
Re: unsatisfied pthread symbols in gcc
You also might need to build w/ -l pthread
option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 01:30 PM
тАО09-19-2008 01:30 PM
Re: unsatisfied pthread symbols in gcc
actually I am thinking of rebuilding gcc from source.
I also get this error on ANY program (example above is just HelloWorld.c), so it does not involve any threads at all.
Thanks
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 02:14 PM
тАО09-19-2008 02:14 PM
Re: unsatisfied pthread symbols in gcc
Over and over. You have a lemon libc. gcc expects that you have a newer one that supports the pthread_* stubs, since gcc isn't linked with libpthread, since it doesn't need it.
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1186353
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1023298
>OldSchool: What is in SHLIB_PATH?
>You also might need to build with -lpthread
Actually that's the whole purpose of the pthread_* stubs in libc. So you don't have to do that and so you don't lose performance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2008 08:17 AM
тАО09-20-2008 08:17 AM
Re: unsatisfied pthread symbols in gcc
you're my hero!
Thanks a bunch!
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2008 08:18 AM
тАО09-20-2008 08:18 AM
Re: unsatisfied pthread symbols in gcc
Thank you!!
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2008 01:06 PM
тАО09-20-2008 01:06 PM
Re: unsatisfied pthread symbols in gcc
If you are happy with the answers, please read the following about assigning points and reopening threads:
http://forums.itrc.hp.com/service/forums/helptips.do?#33
http://forums.itrc.hp.com/service/forums/helptips.do?#41