[GRASS-dev] [GRASS GIS] #308: Compiler error while building python
swig
GRASS GIS
trac at osgeo.org
Wed Sep 10 17:45:47 EDT 2008
#308: Compiler error while building python swig
---------------------------------+------------------------------------------
Reporter: cgsbob | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: SWIG (all bindings) | Version: svn-develbranch6
Keywords: | Platform: Unspecified
Cpu: Unspecified |
---------------------------------+------------------------------------------
While doing a make in swig/python, I get this error:
{{{
make -C interfaces
make[1]: Entering directory
`/home/bobm/src/gis/grass6_devel/swig/python/interfaces'
echo "/* auto-generate swig typedef file (with some GRASS functions
removed) */" > gisdefs.i
cat ../../../include/gisdefs.h | grep -v
'#\|asprintf\|G_snprintf\|G_debug\|G_fatal_error\|G_warning\|G_verbose\|lzw\|G_done_msg\|G_message\|G_important_message'
>> gisdefs.i
echo "/* auto-generate swig typedef file */" > dig_structs.i
cat ../../../include/vect/dig_structs.h >> dig_structs.i
echo "/* auto-generate swig typedef file */" > vect.i
cat ../../../include/Vect.h | grep -v 'V1_\|V2_' >> vect.i
make[1]: Leaving directory
`/home/bobm/src/gis/grass6_devel/swig/python/interfaces'
/usr/bin/swig -python -shadow python_grass6.i
renames.i:2: Warning(301): class keyword used, but not in C++ mode.
interfaces/gisdefs.i:116: Error: Syntax error in input(1).
make: *** [python_grass6_wrap.c] Error 1
}}}
The syntax error in interfaces/gisdefs.i points to this line:
__attribute__ ((format(printf, 2, 3)));
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/308>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list