ports/73629: gcc ports use outdated specs wrt -pthread

Michael Nottebrock michaelnottebrock at gmx.net
Sat Nov 6 22:50:35 UTC 2004


>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 at 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:



More information about the freebsd-ports-bugs mailing list