From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3134 invoked by alias); 8 Feb 2006 17:46:35 -0000 Received: (qmail 3009 invoked by uid 48); 8 Feb 2006 17:46:26 -0000 Date: Wed, 08 Feb 2006 17:46:00 -0000 Message-ID: <20060208174626.3008.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: "roger at eyesopen dot com" 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/msg00799.txt.bz2 List-Id: ------- Comment #4 from roger at eyesopen dot com 2006-02-08 17:46 ------- 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. Should -pthread pull in the required symbols? i.e. is this a libgomp problem or a target problem? -- roger at eyesopen dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roger at eyesopen dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25936