From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Aberg Newsgroups: gmane.lisp.guile.bugs Subject: Re: GIT version: missing linking flag Date: Thu, 20 Jan 2011 18:03:21 +0100 Message-ID: References: <549A0EE6-81DB-4CE9-87EC-3290EC700EC9@telia.com> <8739onzjnd.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1295543460 3757 80.91.229.12 (20 Jan 2011 17:11:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 Jan 2011 17:11:00 +0000 (UTC) Cc: bug-guile@gnu.org To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Jan 20 18:10:55 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pfy27-00048z-W9 for guile-bugs@m.gmane.org; Thu, 20 Jan 2011 18:10:53 +0100 Original-Received: from localhost ([127.0.0.1]:53161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pfy21-0004rO-8P for guile-bugs@m.gmane.org; Thu, 20 Jan 2011 12:10:45 -0500 Original-Received: from [140.186.70.92] (port=50010 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pfxuy-0000rQ-1n for bug-guile@gnu.org; Thu, 20 Jan 2011 12:03:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pfxuu-0001DE-JO for bug-guile@gnu.org; Thu, 20 Jan 2011 12:03:25 -0500 Original-Received: from smtp-out11.han.skanova.net ([195.67.226.200]:60884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pfxuu-0001D1-8j; Thu, 20 Jan 2011 12:03:24 -0500 Original-Received: from h131n2-fre-d2.ias.bredband.telia.com (78.72.157.131) by smtp-out11.han.skanova.net (8.5.133) (authenticated as u26619196) id 4D0756AC00BFE253; Thu, 20 Jan 2011 18:03:22 +0100 In-Reply-To: <8739onzjnd.fsf@gnu.org> X-Mailer: Apple Mail (2.936) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4987 Archived-At: On 20 Jan 2011, at 16:20, Ludovic Court=E8s wrote: >> In 'guile-config link', the flag '-lgc' is missing; it is needed when >> linking smobs. The function SCM_NEWSMOB calls >> GC_register_finalizer_no_order() in header gc.h > > It shouldn=92t be needed when libguile is a shared library, at least = not > on ELF platforms where the shared library contains =91NEEDED=92 = headers. > > It is needed when libguile is static, but in that case you should use > =91pkg-config guile-2.0 --libs --static=92 (=91guile-config=92 is = deprecated.) The file gc.h says that it is only for Java implementations. But as =20 noted above, it is called by SCM_NEWSMOB, so until it is taken away, -=20= lgc must be used, otherwise the linker will require it. My platform is =20= otherwise Mac OS X; objective code format is Mach-O.