Marina, It looks like the instructions suggest to build thread safe HDF5 library ("--enable-threadsafe" configure flag). We do not support this configuration on Mac.
On Linux one has to specify "--enable-threadsafe --with-pthread" flags to configure and build thread safe HDF5. The error you are getting indicates that you are missing pthread library. You may try to use both flags to build (unsupported) thread safe HDF5 library or remove the "--enable-threadsafe" flag. I used just a shared HDF5 library when I built H5Py on my Mac. Hope this helps. Elena ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Elena Pourmal The HDF Group http://hdfgroup.org 1800 So. Oak St., Suite 203, Champaign IL 61820 217.531.6112 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ On Jul 1, 2012, at 4:22 PM, bukashka wrote: > Hello, > > I followed those instructions for the installation > (http://cdx.jpl.nasa.gov/documents/technical-design/accessing-hdf-data-from-python-on-mac-os-x/) > with this: > > H5TS.c:35: error: 'PTHREAD_ONCE_INIT' undeclared here (not in a function) > H5TS.c: In function 'H5TS_pthread_first_thread_init': > H5TS.c:137: warning: implicit declaration of function 'pthread_mutex_init' > H5TS.c:137: warning: nested extern declaration of 'pthread_mutex_init' > H5TS.c:138: warning: implicit declaration of function 'pthread_cond_init' > H5TS.c:138: warning: nested extern declaration of 'pthread_cond_init' > H5TS.c:142: warning: implicit declaration of function 'pthread_key_create' > H5TS.c:142: warning: nested extern declaration of 'pthread_key_create' > H5TS.c: In function 'H5TS_mutex_lock': > H5TS.c:184: warning: implicit declaration of function 'pthread_mutex_lock' > H5TS.c:184: warning: nested extern declaration of 'pthread_mutex_lock' > H5TS.c:189: warning: implicit declaration of function 'pthread_equal' > H5TS.c:189: warning: nested extern declaration of 'pthread_equal' > H5TS.c:189: warning: implicit declaration of function 'pthread_self' > H5TS.c:189: warning: nested extern declaration of 'pthread_self' > H5TS.c:195: warning: implicit declaration of function 'pthread_cond_wait' > H5TS.c:195: warning: nested extern declaration of 'pthread_cond_wait' > H5TS.c:198: warning: assignment makes pointer from integer without a cast > H5TS.c:202: warning: implicit declaration of function 'pthread_mutex_unlock' > H5TS.c:202: warning: nested extern declaration of 'pthread_mutex_unlock' > H5TS.c: In function 'H5TS_mutex_unlock': > H5TS.c:252: warning: implicit declaration of function 'pthread_cond_signal' > H5TS.c:252: warning: nested extern declaration of 'pthread_cond_signal' > H5TS.c: In function 'H5TS_cancel_count_inc': > H5TS.c:301: warning: implicit declaration of function 'pthread_getspecific' > H5TS.c:301: warning: nested extern declaration of 'pthread_getspecific' > H5TS.c:301: warning: cast from function call of type 'int' to non-matching > type 'struct H5TS_cancel_t *' > H5TS.c:301: warning: cast to pointer from integer of different size > H5TS.c:316: warning: implicit declaration of function 'pthread_setspecific' > H5TS.c:316: warning: nested extern declaration of 'pthread_setspecific' > H5TS.c:322: warning: implicit declaration of function > 'pthread_setcancelstate' > H5TS.c:322: warning: nested extern declaration of 'pthread_setcancelstate' > H5TS.c:322: error: 'PTHREAD_CANCEL_DISABLE' undeclared (first use in this > function) > H5TS.c:322: error: (Each undeclared identifier is reported only once > H5TS.c:322: error: for each function it appears in.) > H5TS.c: In function 'H5TS_cancel_count_dec': > H5TS.c:368: warning: cast from function call of type 'int' to non-matching > type 'struct H5TS_cancel_t *' > H5TS.c:368: warning: cast to pointer from integer of different size > H5TS.c: In function 'H5TS_create_thread': > H5TS.c:415: warning: implicit declaration of function 'pthread_create' > H5TS.c:415: warning: nested extern declaration of 'pthread_create' > H5TS.c:415: warning: ISO C forbids conversion of object pointer to function > pointer type > make[2]: *** [H5TS.lo] Error 1 > make[1]: *** [all] Error 2 > make: *** [all-recursive] Error 1 > > as result. > > Could you, please help me with the installation. > > Thanks, > Bukashka. > > -- > View this message in context: > http://hdf-forum.184993.n3.nabble.com/hdf5-1-8-9-installation-on-the-mac-os-x-10-6-8-tp4025207.html > Sent from the hdf-forum mailing list archive at Nabble.com. > > _______________________________________________ > Hdf-forum is for HDF software users discussion. > Hdf-forum@hdfgroup.org > http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
_______________________________________________ Hdf-forum is for HDF software users discussion. Hdf-forum@hdfgroup.org http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org