make fails after git pull
This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
make fails after git pull | Patrick Horgan | 21 Sep 06:18 |
make fails after git pull | Danny Robson | 21 Sep 07:18 |
make fails after git pull | Patrick Horgan | 21 Sep 08:45 |
make fails after git pull | Patrick Horgan | 21 Sep 08:46 |
make fails after git pull | Patrick Horgan | 21 Sep 10:46 |
make fails after git pull | Sven Neumann | 22 Sep 23:16 |
make fails after git pull | Patrick Horgan | 23 Sep 01:48 |
make fails after git pull
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:
patrick@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
make fails after git pull
On Mon, 20 Sep 2010 21:18:08 -0700 Patrick Horgan wrote:
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?
configure should be defining an appropriate representation for restrict (through the use of AC_C_RESTRICT in configure.ac).
Can you confirm that config.h contains an appropriately generated define for restrict? Perhaps you need to rerun autogen.sh to rebuild configure?
- Danny
make fails after git pull
On 09/20/2010 10:18 PM, Danny Robson wrote:
On Mon, 20 Sep 2010 21:18:08 -0700 Patrick Horgan wrote:
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?
configure should be defining an appropriate representation for restrict (through the use of AC_C_RESTRICT in configure.ac).
Can you confirm that config.h contains an appropriately generated define for restrict? Perhaps you need to rerun autogen.sh to rebuild configure?
You were right. It was not defined in config.h and running autogen.sh fixed the problem. Thank you, Danny.
Patrick
make fails after git pull
On 09/20/2010 10:18 PM, Danny Robson wrote:
On Mon, 20 Sep 2010 21:18:08 -0700 Patrick Horgan wrote:
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?
configure should be defining an appropriate representation for restrict (through the use of AC_C_RESTRICT in configure.ac).
Can you confirm that config.h contains an appropriately generated define for restrict? Perhaps you need to rerun autogen.sh to rebuild configure?
You were right. It was not defined in config.h and running autogen.sh fixed the problem. Thank you Danny.
Patrick
make fails after git pull
On 09/20/2010 10:18 PM, Danny Robson wrote:
Can you confirm that config.h contains an appropriately generated define for restrict? Perhaps you need to rerun autogen.sh to rebuild configure?
Well, running autogen.sh got me further, but I still have problems:
make[4]: Entering directory `/usr/local/geglbuild/docs/gallery'
--[Updating sample compositions]--
../../../gegl/docs/gallery/clones.xml
** Message: Module '../../operations/external/.libs/ff-load.so' load
error: ../../operations/external/.libs/ff-load.so: undefined symbol:
avcodec_decode_video2
my libavcodec has an avcodec_decode_video, but no avcodec_decode_video2
(lt-gegl:15616): GLib-GObject-WARNING **: Two different plugins tried to
register 'GeglChantover_c'.
../../../gegl/docs/gallery/OpenRaster-00.xml
** Message: Module '../../operations/external/.libs/ff-load.so' load
error: ../../operations/external/.libs/ff-load.so: undefined symbol:
avcodec_decode_video2
(lt-gegl:15649): GLib-GObject-WARNING **: Two different plugins tried to
register 'GeglChantover_c'.
../../../gegl/docs/gallery/OpenRaster-01.xml
** Message: Module '../../operations/external/.libs/ff-load.so' load
error: ../../operations/external/.libs/ff-load.so: undefined symbol:
avcodec_decode_video2
(lt-gegl:15677): GLib-GObject-WARNING **: Two different plugins tried to
register 'GeglChantover_c'.
../../../gegl/docs/gallery/OpenRaster-04.xml
** Message: Module '../../operations/external/.libs/ff-load.so' load
error: ../../operations/external/.libs/ff-load.so: undefined symbol:
avcodec_decode_video2
(lt-gegl:15705): GLib-GObject-WARNING **: Two different plugins tried to
register 'GeglChantover_c'.
make[4]: Leaving directory `/usr/local/geglbuild/docs/gallery'
make[3]: Leaving directory `/usr/local/geglbuild/docs/gallery'
make[3]: Entering directory `/usr/local/geglbuild/docs'
GEGL_SWAP=RAM GEGL_PATH=../operations \
../tools/operation_reference --ops-html > operations.html
** Message: Module '../operations/external/.libs/ff-load.so' load error:
../operations/external/.libs/ff-load.so: undefined symbol:
avcodec_decode_video2
(lt-operation_reference:15797): GLib-GObject-WARNING **: Two different
plugins tried to register 'GeglChantover_c'.
make[3]: *** No rule to make target `../../gegl/gegl/gegl-version.h',
needed by `api.html'. Stop.
make[3]: Leaving directory `/usr/local/geglbuild/docs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/geglbuild/docs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/geglbuild'
make: *** [all] Error 2
make fails after git pull
On Tue, 2010-09-21 at 01:46 -0700, Patrick Horgan wrote:
On 09/20/2010 10:18 PM, Danny Robson wrote:
Can you confirm that config.h contains an appropriately generated define for restrict? Perhaps you need to rerun autogen.sh to rebuild configure?
Well, running autogen.sh got me further, but I still have problems:
make[4]: Entering directory `/usr/local/geglbuild/docs/gallery' --[Updating sample compositions]--
../../../gegl/docs/gallery/clones.xml ** Message: Module '../../operations/external/.libs/ff-load.so' load error: ../../operations/external/.libs/ff-load.so: undefined symbol: avcodec_decode_video2my libavcodec has an avcodec_decode_video, but no avcodec_decode_video2
The ffmpeg library is (in)famous for changing their APIs frequently and releasing seldom. That's why pretty much every distribution ends up using development snapshots, which are incompatible to each other.
Your best bet is to configure gegl with the --without-libavformat option.
Sven
make fails after git pull
On 09/22/2010 02:16 PM, Sven Neumann wrote:
The ffmpeg library is (in)famous for changing their APIs frequently and releasing seldom. That's why pretty much every distribution ends up using development snapshots, which are incompatible to each other.
Your best bet is to configure gegl with the --without-libavformat option.
Sven
Thanks, Sven. That got me past that one, but there still the complaint about two plugins trying to register the same thing:
make[4]: Entering directory `/usr/local/geglbuild/docs/gallery'
--[Updating sample compositions]--
../../../gegl/docs/gallery/clones.xml
(lt-gegl:6412): GLib-GObject-WARNING **: Two different plugins tried to
register 'GeglChantover_c'.
../../../gegl/docs/gallery/OpenRaster-00.xml
(lt-gegl:6445): GLib-GObject-WARNING **: Two different plugins tried to
register 'GeglChantover_c'.
../../../gegl/docs/gallery/OpenRaster-01.xml
(lt-gegl:6473): GLib-GObject-WARNING **: Two different plugins tried to
register 'GeglChantover_c'.
../../../gegl/docs/gallery/OpenRaster-04.xml
(lt-gegl:6501): GLib-GObject-WARNING **: Two different plugins tried to
register 'GeglChantover_c'.
make[4]: Leaving directory `/usr/local/geglbuild/docs/gallery'
make[3]: Leaving directory `/usr/local/geglbuild/docs/gallery'
make[3]: Entering directory `/usr/local/geglbuild/docs'
GEGL_SWAP=RAM GEGL_PATH=../operations \
../tools/operation_reference --ops-html > operations.html
(lt-operation_reference:6593): GLib-GObject-WARNING **: Two different
plugins tried to register 'GeglChantover_c'.
make[3]: *** No rule to make target `../../gegl/gegl/gegl-version.h',
needed by `api.html'. Stop.
make[3]: Leaving directory `/usr/local/geglbuild/docs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/geglbuild/docs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/geglbuild'
make: *** [all] Error 2
And ideas on that?
Patrick