From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3018 invoked by alias); 8 Feb 2006 18:17:57 -0000 Received: (qmail 3001 invoked by alias); 8 Feb 2006 18:17:55 -0000 Date: Wed, 08 Feb 2006 18:17:00 -0000 Message-ID: <20060208181755.3000.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgomp/25936] libgomp needs to link against rt on HPUX In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dave at hiauly1 dot hia dot nrc dot ca" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-02/txt/msg00806.txt.bz2 List-Id: ------- 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