------- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca 2006-02-08 18:17 ------- Subject: Re: libgomp needs to link against rt on HPUX
> This problem affects both hppa*-hp-hpux* and ia64-hp-hpux*. It appears that > the required sem_init, sem_wait, sem_post, etc... symbols are defined both in > the -lrt libraries on HPUX and in the -lc_r libraries. The fix is to update > LIB_SPEC, perhaps in the -pthread clause, for HPUX, but I'm not sure if it > requires adding -lrt or changing -lc to -lc_r, or adding -lc_r? I notice that > config/pa/pa-hpux10.h does mention -lc_r, but for use with -threads. I'm not 100% certain but I believe libc_r needs to be used with dce threads, and librt with posix threads. HP-UX 10 doesn't have the latter. We only support posix threads on hppa*-hp-hpux11*. > Should -pthread pull in the required symbols? i.e. is this a libgomp problem > or a target problem? Although it's relatively easy to change LIB_SPEC, I'd like to keep the number of libraries that are linked against to a minimum. Dave -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25936