09-19-2008 06:20 AM
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
Anyone seen this before??
I much appreciate any hint, as I never had this issue before!
09-19-2008 01:30 PM
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.
09-19-2008 02:14 PM
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.
>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.
09-20-2008 01:06 PM
If you are happy with the answers, please read the following about assigning points and reopening threads: