Date: Sat, 6 Nov 2004 23:42:51 +0100 (CET) From: Michael Nottebrock <michaelnottebrock@gmx.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/73629: gcc ports use outdated specs wrt -pthread Message-ID: <200411062242.iA6MgpX7013840@kiste.my.domain> Resent-Message-ID: <200411062250.iA6MoZur068474@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 73629 >Category: ports >Synopsis: gcc ports use outdated specs wrt -pthread >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 06 22:50:35 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Michael Nottebrock >Release: FreeBSD 5.3-RC2 i386 >Organization: >Environment: System: FreeBSD kiste 5.3-RC2 FreeBSD 5.3-RC2 #0: Thu Nov 4 06:03:13 CET 2004 root@kiste:/usr/obj/usr/src/sys/KISTE-UP i386 >Description: The gcc versions in ports (I suspect all versions are affected, I tested with gcc32 and gcc33), use an outdated freebsd-spec.h, which makes -pthread link to libc_r on FreeBSD 5+, but -pthread must link to -libpthread on 5-STABLE (including 5.3-R) and 6-CURRENT. This breaks many ports, in particular OpenOffice, which set USE_GCC to use ported versions of gcc for compilation/package building. >How-To-Repeat: >Fix: --- gcc/config/freebsd-spec.h.orig Sat Nov 6 23:39:36 2004 +++ gcc/config/freebsd-spec.h Sat Nov 6 23:39:59 2004 @@ -132,8 +132,8 @@ #if FBSD_MAJOR >= 5 #define FBSD_LIB_SPEC " \ %{!shared: \ - %{!pg: %{pthread:-lc_r} -lc} \ - %{pg: %{pthread:-lc_r_p} -lc_p} \ + %{!pg: %{pthread:-lpthread} -lc} \ + %{pg: %{pthread:-lpthread_p} -lc_p} \ }" #else #define FBSD_LIB_SPEC " \ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411062242.iA6MgpX7013840>