I'm using:
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
on:
Linux dell 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010 
i686 GNU/Linux

I was going to rebuild gimp from git and thought it would be smart to do 
a git pull in gegl and rebuild it first.  After doing the git pull and a 
fresh successful configure, the make fails like this:

patr...@dell$ make
make  all-recursive
make[1]: Entering directory `/usr/local/geglbuild'
Making all in gegl
make[2]: Entering directory `/usr/local/geglbuild/gegl'
Making all in buffer
make[3]: Entering directory `/usr/local/geglbuild/gegl/buffer'
   CC     gegl-tile-backend-tiledir.lo
   CC     gegl-buffer.lo
   CC     gegl-buffer-access.lo
   CC     gegl-buffer-share.lo
   CC     gegl-buffer-iterator.lo
   CC     gegl-buffer-linear.lo
   CC     gegl-buffer-save.lo
   CC     gegl-buffer-load.lo
   CC     gegl-cache.lo
   CC     gegl-sampler.lo
   CC     gegl-sampler-cubic.lo
   CC     gegl-sampler-lanczos.lo
   CC     gegl-sampler-linear.lo
../../../gegl/gegl/buffer/gegl-sampler-linear.c:65: error: expected ‘;’, 
‘,’ or ‘)’ before ‘self’
../../../gegl/gegl/buffer/gegl-sampler-linear.c: In function 
‘gegl_sampler_linear_class_init’:
../../../gegl/gegl/buffer/gegl-sampler-linear.c:91: error: 
‘gegl_sampler_linear_get’ undeclared (first use in this function)
../../../gegl/gegl/buffer/gegl-sampler-linear.c:91: error: (Each 
undeclared identifier is reported only once
../../../gegl/gegl/buffer/gegl-sampler-linear.c:91: error: for each 
function it appears in.)
../../../gegl/gegl/buffer/gegl-sampler-linear.c: At top level:
../../../gegl/gegl/buffer/gegl-sampler-linear.c:105: error: expected 
‘;’, ‘,’ or ‘)’ before ‘self’
make[3]: *** [gegl-sampler-linear.lo] Error 1
make[3]: Leaving directory `/usr/local/geglbuild/gegl/buffer'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/geglbuild/gegl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/geglbuild'
make: *** [all] Error 2

The line that fails first (gegl-sampler-linear.c:65 is:
static void gegl_sampler_linear_get (GeglSampler* restrict self,
                                      const gdouble         x,
                                      const gdouble         y,
                                      void*        restrict output);
and it seems that gcc is not recognizing the restrict keyword.  Does 
anyone have a clue of how I can resolve it?

Patrick
_______________________________________________
Gegl-developer mailing list
Gegl-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer

Reply via email to