From owner-freebsd-openoffice@FreeBSD.ORG Sun Jan 29 19:20:13 2006 Return-Path: X-Original-To: openoffice@hub.freebsd.org Delivered-To: freebsd-openoffice@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E53A216A420 for ; Sun, 29 Jan 2006 19:20:13 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A201F43D49 for ; Sun, 29 Jan 2006 19:20:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0TJK7mE032257 for ; Sun, 29 Jan 2006 19:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0TJK6CF032256; Sun, 29 Jan 2006 19:20:07 GMT (envelope-from gnats) Date: Sun, 29 Jan 2006 19:20:07 GMT Message-Id: <200601291920.k0TJK6CF032256@freefall.freebsd.org> To: openoffice@FreeBSD.org From: Mike Durian Cc: Subject: Re: ports/92218: openoffice.org-2.0 build fails with shlibsign core dump X-BeenThere: freebsd-openoffice@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mike Durian List-Id: Porting OpenOffice to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jan 2006 19:20:14 -0000 The following reply was made to PR ports/92218; it has been noted by GNATS. From: Mike Durian To: bug-followup@freebsd.org Cc: Subject: Re: ports/92218: openoffice.org-2.0 build fails with shlibsign core dump Date: Sun, 29 Jan 2006 12:16:48 -0700 I've done a bit of digging. It looks like the work/OOA680_m1/moz/unxfbsd.pro/misc/build/mozilla/configure script is failing to detect that -lpthread contains the pthread_create() function. It then finds -lc_r and uses it instead. The config.log file shows: configure:8578: checking for pthread_create in -lpthread gcc-ooo -o dummy dummy.c -I/usr/X11R6/include -I/usr/X11R6/include -lpthread -lm /usr/lib/libpthread.so: undefined reference to `__usleep' collect2: ld returned 1 exit status configure:8600: checking for pthread_create in -lc_r gcc-ooo -o dummy dummy.c -I/usr/X11R6/include -I/usr/X11R6/include -lc_r -lm I created the dummy.c file by hand and tried compiling it. It compiles just fine (without the missing __usleep reference) if I use the system cc. It fails when I try gcc-ooo. > cc -o dummy dummy.c -I/usr/X11R6/include -I/usr/X11R6/include -lpthread -lm > gcc-ooo -o dummy dummy.c -I/usr/X11R6/include -I/usr/X11R6/include -lpthread -lm /usr/lib/libpthread.so: undefined reference to `__usleep' collect2: ld returned 1 exit status My gcc-ooo appears to be relatively old: > ls -l /usr/local/bin/gcc-ooo -r-xr-xr-x 3 root wheel 77216 May 10 2005 /usr/local/bin/gcc-ooo It also looks like it is not a required dependancy: > pkg_info -W /usr/local/bin/gcc-ooo /usr/local/bin/gcc-ooo was installed by package gcc-ooo-3.4.1_2 > pkg_info -R gcc-ooo-3.4.1_2 Information for gcc-ooo-3.4.1_2: I'm going to un-install lang/gcc-ooo and see if that fixes my problem. If gcc-ooo is required by openoffice.org-2.0, then it will get rebuilt. Assuming a stale gcc-ooo is my problem, I'm not sure what a real fix is. Others might experience this same problem. I'm thinking the gcc-ooo port revision needed a bump due to a change in a system library or header file so time ago. mike