From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: Re: GIT version: missing linking flag Date: Fri, 21 Jan 2011 17:02:45 +0100 Message-ID: <87aaiu8ct6.fsf@gnu.org> References: <549A0EE6-81DB-4CE9-87EC-3290EC700EC9@telia.com> <8739onzjnd.fsf@gnu.org> <87y66fe1bw.fsf@gnu.org> <92164B15-45D1-4D76-9AF6-8E1E098C04BD@telia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1295625782 7055 80.91.229.12 (21 Jan 2011 16:03:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Jan 2011 16:03:02 +0000 (UTC) Cc: bug-guile@gnu.org To: Hans Aberg Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Jan 21 17:02:57 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 1PgJRw-0001VO-8W for guile-bugs@m.gmane.org; Fri, 21 Jan 2011 17:02:56 +0100 Original-Received: from localhost ([127.0.0.1]:35441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgJRv-0001JB-6c for guile-bugs@m.gmane.org; Fri, 21 Jan 2011 11:02:55 -0500 Original-Received: from [140.186.70.92] (port=33324 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgJRp-0001HA-9d for bug-guile@gnu.org; Fri, 21 Jan 2011 11:02:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgJRo-0000WO-23 for bug-guile@gnu.org; Fri, 21 Jan 2011 11:02:49 -0500 Original-Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:26238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgJRn-0000Vt-SK for bug-guile@gnu.org; Fri, 21 Jan 2011 11:02:48 -0500 X-IronPort-AV: E=Sophos;i="4.60,358,1291590000"; d="scan'208";a="96204003" Original-Received: from unknown (HELO nixey) ([193.50.110.208]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 21 Jan 2011 17:02:46 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 =?iso-8859-1?Q?Pluvi=F4se?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <92164B15-45D1-4D76-9AF6-8E1E098C04BD@telia.com> (Hans Aberg's message of "Thu, 20 Jan 2011 22:13:12 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) 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:5001 Archived-At: Hi, Hans Aberg writes: > On 20 Jan 2011, at 22:01, Ludovic Court=C3=A8s wrote: > >> Can you post the exact link command line and error message? > > > $ make > gcc parser.o lexer.o driver.o guile++.o guile.o exception.o tuple.o > guile-config link` -lstdc++ -o guile++ This line was mangled by your mailer, I think (missing backquote, newline inserted). Furthermore, if you=E2=80=99re linking C++ code, then you should link with = g++, not gcc, and omit -lstdc++. > Undefined symbols: > "_GC_register_finalizer_no_order", referenced from: > _make_c_exception in exception.o > _make_exception in exception.o > _make_tuple in tuple.o > ld: symbol(s) not found Oooh, I finally got your point about SCM_NEWSMOB. It introduces a direct dependency from your app on libgc, which can require -lgc, depending on the linker. I=E2=80=99ll look into it. I think the GC_REGISTER_FINALIZER_NO_ORDER call should be buried in a function akin to scm_i_new_smob_with_mark_proc. Thanks, Ludo=E2=80=99.