Subject: pkg/26588: boehm-gc-6.3nb1 is built incorrectly on Darwin 7.4.0 (MacOS X 10.3.4)
To: None <gnats-bugs@gnats.netbsd.org>
From: Masahiro =Rhythm Drive= Ishiyama <masahiro@wide.ad.jp>
List: pkgsrc-bugs
Date: 08/08/2004 03:59:53
>Number: 26588
>Category: pkg
>Synopsis: boehm-gc-6.3nb1 is built incorrectly on Darwin 7.4.0 (MacOS X 10.3.4)
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Aug 07 19:27:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:
>Release: Darwin 7.4.0
>Organization:
>Environment:
System: Darwin grayswandir.local 7.4.0 Darwin Kernel Version 7.4.0: Wed May 12 16:58:24 PDT 2004; root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC Power Macintosh powerpc
Architecture: powerpc
Machine: Power Macintosh
>Description:
I built boehm-gc-6.3nb1 on Darwin 7.4.0 (MacOS X 10.3.4). The
compilation runs fine, but when I tried 'make do-test', I got
the error as follows:
masahiro@grayswandir[boehm-gc] bmake do-test
gcc -DPACKAGE_NAME=\"gc\" -DPACKAGE_TARNAME=\"gc\" -DPACKAGE_VERSION=\"6.3\" -DPACKAGE_STRING=\"gc\ 6.3\" -DPACKAGE_BUGREPORT=\"Hans.Boehm@hp.com\" -DGC_VERSION_MAJOR=6 -DGC_VERSION_MINOR=3 -DPACKAGE=\"gc\" -DVERSION=\"6.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DSILENT=1 -DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I. -I. -I./include -no-cpp-precomp -fexceptions -O2 -c ./tests/test.c
/bin/sh ./libtool --mode=link gcc -fexceptions -O2 -o gctest test.o ./libgc.la
gcc -fexceptions -O2 -o .libs/gctest test.o ./.libs/libgc.dylib -L/UFS/pkgsrc/devel/boehm-gc/work/.buildlink/lib
ld: Undefined symbols:
_GC_darwin_register_mach_handler_thread
gnumake: *** [gctest] Error 1
*** Error code 2
Stop.
bmake: stopped in /usr/pkgsrc/devel/boehm-gc
>How-To-Repeat:
Bmake; bmake do-test;
>Fix:
I'm not sure that this is an appropriate way, but removing
'--disable-thread' from Makefile works as a workaround for me.
? Work
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/boehm-gc/Makefile,v
retrieving revision 1.41
diff -u -r1.41 Makefile
--- Makefile 13 Jul 2004 14:22:27 -0000 1.41
+++ Makefile 7 Aug 2004 18:39:36 -0000
@@ -18,7 +18,15 @@
USE_GNU_TOOLS+= make
USE_LIBTOOL= YES
GNU_CONFIGURE= YES
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin"
+CONFIGURE_ARGS+= --enable-cplusplus
+.else
CONFIGURE_ARGS+= --enable-cplusplus --disable-threads
+.endif
+
USE_LANGUAGES= c c++
INSTALLATION_DIRS= man/man3
@@ -26,8 +34,6 @@
#TEST_TARGET= check
-.include "../../mk/bsd.prefs.mk"
-
.if defined(EXTRACT_USING_PAX)
EXTRACT_ELEMENTS= -u
.endif
>Release-Note:
>Audit-Trail:
>Unformatted: