Re: GTS (libgts) version mismatch
On Sun, 2012-06-03 at 12:21 +1000, Drew Parsons wrote:
> Hi Stephane and Ruben,
>
> I'm updating the version of gerris in Debian (using the 2012-04-27
> tarball).
>
> There is a build failure halfway through due to Debian's libgts-dev
> being out of date. The latest version of GTS (2012-04-26) has GTS_OBJ
> added to the GtsTokenType enumeration in /usr/include/gts.h. That
> definition is missing in the current Debian version of GTS (0.7.6
> +darcs110121-1.1). Ruben, are you able to upgrade gts at the moment to
> get this in?
>
> There is a version mismatch here in that both versions are labelled
> 0.7.6, so the dependency on the later version is not caught. Stephane,
> should the GTS version be bumped to 0.7.7 or somesuch?
>
Sorry, I should have given the context, the build error is in src/map.c:
/bin/bash ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../src -I.. -I../../.. -I/usr/include -DG_LOG_DOMAIN=\"Gfs\" -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DGFS_MODULES_DIR=\"/usr/lib/gerris\" -DGFS_DATA_DIR=\"/usr/share/gerris\" -DFTT_2D=1 -g -O2 -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -Wmissing-declarations -pipe -std=c99 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -c -o libgfs2D_la-map.lo `test -f 'map.c' || echo '../../../src/'`map.c
../../../src/map.c: In function 'gfs_map_read':
../../../src/map.c:34:12: warning: variable 'class_changed' set but not used [-Wunused-but-set-variable]
../../../src/map.c: In function 'gfs_map_function_read':
../../../src/map.c:237:6: error: 'GTS_OBJ' undeclared (first use in this function)
../../../src/map.c:237:6: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [libgfs2D_la-map.lo] Error 1
make[1]: Leaving directory `/home/drew/projects/gerris/git/test/gerris/debian/build/src'
make: *** [all] Error 2
Reply to: