GIT version: missing linking flag

2011-01-19 Thread Hans Aberg
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

Re: GIT version: missing linking flag

2011-01-20 Thread Ludovic Courtès
Hi! Hans Aberg writes: > 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’t be needed when libguile is a shared library, at least not on ELF platforms where the shar

Re: GIT version: missing linking flag

2011-01-20 Thread Hans Aberg
On 20 Jan 2011, at 16:20, Ludovic Courtès 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’t be needed when libguile is a shared library, at least not on ELF pla

Re: GIT version: missing linking flag

2011-01-20 Thread Ludovic Courtès
Hello, Hans Aberg writes: > On 20 Jan 2011, at 16:20, Ludovic Courtès 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’t be needed when libguil

Re: GIT version: missing linking flag

2011-01-20 Thread Hans Aberg
On 20 Jan 2011, at 22:01, Ludovic Courtès 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++ Undefined symbols: "_GC_register_finalizer_no_order", referenced

Re: GIT version: missing linking flag

2011-01-21 Thread Ludovic Courtès
Hi, Hans Aberg writes: > On 20 Jan 2011, at 22:01, Ludovic Courtès 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 ma

Re: GIT version: missing linking flag

2011-01-21 Thread Hans Aberg
On 21 Jan 2011, at 17:02, Ludovic Courtès 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, ne

Re: GIT version: missing linking flag

2011-01-26 Thread Andy Wingo
On Fri 21 Jan 2011 18:59, Hans Aberg writes: >>> $ 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 thin

Re: GIT version: missing linking flag

2011-01-26 Thread Andy Wingo
On Thu 20 Jan 2011 18:03, Hans Aberg writes: > The file gc.h says that it is only for Java implementations. Assuming you refer to gc_register_finalizer_no_order, that is not the case; it implements a finalizer with semantics that were needed when Java-style finalizers were added to libgc. It ha

Re: GIT version: missing linking flag

2011-01-26 Thread Hans Aberg
On 26 Jan 2011, at 21:52, Andy Wingo wrote: $ 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

Re: GIT version: missing linking flag

2011-01-26 Thread Hans Aberg
On 26 Jan 2011, at 21:55, Andy Wingo wrote: The file gc.h says that it is only for Java implementations. Assuming you refer to gc_register_finalizer_no_order, that is not the case; it implements a finalizer with semantics that were needed when Java-style finalizers were added to libgc. It hap

Re: GIT version: missing linking flag

2011-01-29 Thread Ludovic Courtès
Hi, l...@gnu.org (Ludovic Courtès) writes: > Hans Aberg writes: [...] >> 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 > >

Re: GIT version: missing linking flag

2011-01-29 Thread Hans Aberg
On 29 Jan 2011, at 22:47, Ludovic Courtès wrote: 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_NEWSMO