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: Fri, 21 Jan 2011 18:59:16 +0100 Message-ID: <8FD7CA8C-946F-45FD-B78E-589D010B9273@telia.com> References: <549A0EE6-81DB-4CE9-87EC-3290EC700EC9@telia.com> <8739onzjnd.fsf@gnu.org> <87y66fe1bw.fsf@gnu.org> <92164B15-45D1-4D76-9AF6-8E1E098C04BD@telia.com> <87aaiu8ct6.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 1295632879 14183 80.91.229.12 (21 Jan 2011 18:01:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Jan 2011 18:01:19 +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 Fri Jan 21 19:01:14 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 1PgLIM-0004E1-20 for guile-bugs@m.gmane.org; Fri, 21 Jan 2011 19:01:10 +0100 Original-Received: from localhost ([127.0.0.1]:49896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgLIL-00063s-6y for guile-bugs@m.gmane.org; Fri, 21 Jan 2011 13:01:09 -0500 Original-Received: from [140.186.70.92] (port=58071 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgLGb-0005BP-TD for bug-guile@gnu.org; Fri, 21 Jan 2011 12:59:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgLGa-0004hR-LW for bug-guile@gnu.org; Fri, 21 Jan 2011 12:59:21 -0500 Original-Received: from smtp-out12.han.skanova.net ([195.67.226.212]:40893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgLGa-0004h1-9l; Fri, 21 Jan 2011 12:59:20 -0500 Original-Received: from h131n2-fre-d2.ias.bredband.telia.com (78.72.157.131) by smtp-out12.han.skanova.net (8.5.133) (authenticated as u26619196) id 4D065C29009E25E8; Fri, 21 Jan 2011 18:59:18 +0100 In-Reply-To: <87aaiu8ct6.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:5003 Archived-At: On 21 Jan 2011, at 17:02, Ludovic Court=E8s 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). By your mailer, I would think: when I send it to myself, it comes out =20= right. > Furthermore, if you=92re linking C++ code, then you should link with = g+=20 > +, > not gcc, and omit -lstdc++. I do not think it matters: the linker typically supplied by the =20 platform, is a C linker on UNIX, and gcc mangles the names of C++ into =20= it C. By contrast, g++ compiles also C files as C++. >> 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. Right. > I=92ll 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. If it is needed at all, by the comment in gc/gc.h something that it is =20= for Java code.