Operating System - HP-UX
1833704 Members
2394 Online
110062 Solutions
New Discussion

Problem with pthread when installing hdf5

 
Bill Calver
Advisor

Problem with pthread when installing hdf5

Hi all,
I'm trying to install hdf5-1.8.0-alpha on HPUX 11.11 using --with-pthread=/usr/lib.

In /usr/lib I have libpthread.sl and libpthread.a, among others.

The install complains with:
checking for pthread_create in -lpthread... no
checking for thread safe support... configure: error: needed pthread library not available

I see pthread_create in libpthread.a but in libpthread.sl I see only pthread_create_system.

Why is configure not picking up libpthread.a and how can I force it to??

Thanks!!
Bill
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Problem with pthread when installing hdf5

Until you get to 11.23, there is no such extern function in libpthread. If you look at the pthread.h header, there is a static function pthread_create that does some mapping.

You need to change configure to make sure it includes in its test case.