unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: z_axis <z_axis@163.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guile-user@gnu.org
Subject: Re: compile error on FreeBSD 9
Date: Thu, 31 Jan 2013 08:39:32 +0800	[thread overview]
Message-ID: <op.wrq2r7sl1uofcn@redirector.netnames.net> (raw)
In-Reply-To: <87d2wmgy1m.fsf@gnu.org>

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  ***@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL   
i386

Regards!


在 Thu, 31 Jan 2013 05:29:09 +0800,Ludovic Courtès <ludo@gnu.org> 写道:

> Hi,
>
> z_axis <z_axis@163.com> 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	other threads:[~2013-01-31  0:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-29 23:54 compile error on FreeBSD 9 z_axis
2013-01-30  0:20 ` Nala Ginrut
2013-01-30  0:27   ` z_axis
2013-01-30  0:29     ` Noah Lavine
2013-01-30  6:34       ` Mark H Weaver
2013-01-30  0:29     ` Nala Ginrut
2013-01-30  0:47       ` z_axis
2013-01-30 21:29 ` Ludovic Courtès
2013-01-30 21:29 ` Ludovic Courtès
2013-01-31  0:39   ` z_axis [this message]
2013-01-31 12:53     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.wrq2r7sl1uofcn@redirector.netnames.net \
    --to=z_axis@163.com \
    --cc=guile-user@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).