guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compile error on FreeBSD 9


From: z_axis
Subject: Re: compile error on FreeBSD 9
Date: Thu, 31 Jan 2013 08:39:32 +0800
User-agent: Opera Mail/11.62 (FreeBSD)

i have installed threaded libgc:
$pkg_info | grep boehm-gc
boehm-gc-7.1 Garbage collection and memory leak detection for C and C++ boehm-gc-threaded-7.1_1 Garbage collection and memory leak detection for C and C++

ls -l /usr/local/lib/libgc[.-]*
lrwxr-xr-x 1 root wheel 19 1 31 07:54 /usr/local/lib/libgc-threaded.so@ -> libgc-threaded.so.1 -r--r--r-- 1 root wheel 152513 1 31 07:54 /usr/local/lib/libgc-threaded.so.1 lrwxr-xr-x 1 root wheel 10 1 31 07:54 /usr/local/lib/libgc.so@ -> libgc.so.1
-rwxr-xr-x  1 root  wheel  132311  1 31 07:54 /usr/local/lib/libgc.so.1*

$./configure --prefix=/home/***/guile --with-threads LDFLAGS='-L/usr/local/lib'
$gmake
...
0x281d4ef4 is not a GC visible pointer location
GC_is_visible test failed
Abort trap
gmake[3]: *** [guile-procedures.texi] Error 1

$cat meta/guile-2.0.pc | grep libdir
libdir=${exec_prefix}/lib
Libs: -L${libdir} -lguile-2.0 -L/usr/local/lib -lgc

$uname -a
FreeBSD mybsd.zsoft.com 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Fri Jul 6 11:09:08 CST 2012 address@hidden:/usr/obj/usr/src/sys/MYKERNEL i386

Regards!


在 Thu, 31 Jan 2013 05:29:09 +0800,Ludovic Courtès <address@hidden> 写道:

Hi,

z_axis <address@hidden> skribis:

./.libs/libguile-2.0.so: undefined reference to `GC_unregister_my_thread'
./.libs/libguile-2.0.so: undefined reference to `GC_pthread_create'
./.libs/libguile-2.0.so: undefined reference to `GC_register_my_thread'
./.libs/libguile-2.0.so: undefined reference to `GC_pthread_detach'
*** Error code 1

You need either a libgc built with --enable-threads (though as Mark
noted that seems to be buggy on the Guile side), or Guile built with
--without-threads.

HTH,
Ludo’.


--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]