ports/141713: Programs linked against boehm-gc fail on sparc64

Michael Moll kvedulv at kvedulv.de
Thu Dec 17 14:00:14 UTC 2009


>Number:         141713
>Category:       ports
>Synopsis:       Programs linked against boehm-gc fail on sparc64
>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:   Thu Dec 17 14:00:14 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Michael Moll
>Release:        8.0-RELEASE
>Organization:
>Environment:
FreeBSD darkthrone.kvedulv.de 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Fri Nov 20 23:27:16 CET 2009     mmoll at darkthrone.kvedulv.de:/usr/obj/usr/src/sys/DARKTHRONE  sparc64
>Description:
While trying to install www/w3m, the configure script failed, a look into config.log releaved a problem with boehm-gc, which was installed before as dependency:
/usr/local/lib/libgc.so: undefined reference to `GC_save_regs_in_stack'
>How-To-Repeat:
Build a programm that uses boehm-gc
>Fix:
Pull in SPARC-specific code also on FreeBSD (see attached patch)

Patch attached with submission follows:

diff -burN gc-7.1.orig/configure gc-7.1.patched/configure
--- gc-7.1.orig/configure	2008-05-04 02:52:50.000000000 +0200
+++ gc-7.1.patched/configure	2009-12-17 13:29:48.000000000 +0100
@@ -6161,6 +6161,9 @@
  sparc-*-netbsd*)
     machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
     ;;
+ sparc64-*-freebsd*)
+    machdep="mach_dep.lo sparc_mach_dep.lo"
+    ;;
  sparc-sun-solaris2.3)
     machdep="mach_dep.lo sparc_mach_dep.lo"
     cat >>confdefs.h <<\_ACEOF
diff -burN gc-7.1.orig/configure.ac gc-7.1.patched/configure.ac
--- gc-7.1.orig/configure.ac	2008-05-04 02:52:06.000000000 +0200
+++ gc-7.1.patched/configure.ac	2009-12-17 13:29:41.000000000 +0100
@@ -405,6 +405,9 @@
  sparc-*-netbsd*)
     machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
     ;;
+ sparc64-*-freebsd*)
+    machdep="mach_dep.lo sparc_mach_dep.lo"
+    ;;
  sparc-sun-solaris2.3)
     machdep="mach_dep.lo sparc_mach_dep.lo"
     AC_DEFINE(SUNOS53_SHARED_LIB)


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list