Re: [Gc]: Problem compiling gc 7.2a2

Ivan Maidanski ivmai at
Sun Nov 1 23:52:19 PST 2009

Pierre <pierre42d at> wrote:
> # make
> make[1]: Entering directory `/tmp/gc-7.2alpha2'
> depbase=`echo os_dep.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
> if /bin/sh ./libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"gc\" 
> ...
> os_dep.c:484: error: 'brk' redeclared as different kind of symbol
> /usr/include/unistd.h:866: error: previous declaration of 'brk' was here

Thanks. Just fixed.

> os_dep.c: In function `GC_get_main_stack_base':
> os_dep.c:859: error: `STACKBOTTOM' undeclared (first use in this function)
> os_dep.c:859: error: (Each undeclared identifier is reported only once
> os_dep.c:859: error: for each function it appears in.)
> make[1]: *** [os_dep.lo] Error 1
> make[1]: Leaving directory `/tmp/gc-7.2alpha2'
> make: *** [all-recursive] Error 1

Unfortunately, you said nothing about the target platform, so:
1. could you try the latest CVS version of GC (the building scripts have been improved since v7.2a2);
2. identify the target platform.


More information about the Gc mailing list