rss-glx is including ImageMagick headers by including <magick/api.h>, but the header is located in /usr/include/ImageMagick/magick/api.h. Reproducible: Always Steps to Reproduce: I updated from imagemagick-6.3.8.1-r1 to -6.3.9.8. revdep-rebuild then indicated that rss-glx was broken so I tried remerging it. Making all in other_src make[2]: Entering directory `/var/tmp/portage/x11-misc/rss-glx-0.8.1-r4/work/rss-glx_0.8.1/other_src' if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../src -O2 -march=pentium-m -pipe -Wall -MT driver.o -MD -MP -MF ".deps/driver.Tpo" -c -o driver.o driver.c; \ then mv -f ".deps/driver.Tpo" ".deps/driver.Po"; else rm -f ".deps/driver.Tpo"; exit 1; fi if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../src -O2 -march=pentium-m -pipe -Wall -MT biof.o -MD -MP -MF ".deps/biof.Tpo" -c -o biof.o biof.c; \ then mv -f ".deps/biof.Tpo" ".deps/biof.Po"; else rm -f ".deps/biof.Tpo"; exit 1; fi if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../src -O2 -march=pentium-m -pipe -Wall -MT busyspheres.o -MD -MP -MF ".deps/busyspheres.Tpo" -c -o busyspheres.o busyspheres.c; \ then mv -f ".deps/busyspheres.Tpo" ".deps/busyspheres.Po"; else rm -f ".deps/busyspheres.Tpo"; exit 1; fi if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../src -O2 -march=pentium-m -pipe -Wall -MT matrixview.o -MD -MP -MF ".deps/matrixview.Tpo" -c -o matrixview.o matrixview.c; \ then mv -f ".deps/matrixview.Tpo" ".deps/matrixview.Po"; else rm -f ".deps/matrixview.Tpo"; exit 1; fi matrixview.c:83:24: error: magick/api.h: No such file or directory matrixview.c:84:30: error: wand/magick-wand.h: No such file or directory matrixview.c: In function 'loadNextImageFromDisk': matrixview.c:97: error: 'MagickWand' undeclared (first use in this function) matrixview.c:97: error: (Each undeclared identifier is reported only once matrixview.c:97: error: for each function it appears in.) ...
Alse affects sci-mathematics/octave-forge-2006.03.17-r1. From it's build.log file: i686-pc-linux-gnu-g++ -c -fPIC -I/usr/include/octave-2.1.73 -I/usr/include/octave-2.1.73/octave -mieee-fp -O2 -march=pentium-m -pipe -Doctave_idx_type=int -DHAVE_OCTAVE_21 __imagemagick__.cc -o __imagemagick__.o __imagemagick__.cc:2:22: error: Magick++.h: No such file or directory __imagemagick__.cc:5: error: 'Magick' is not a namespace-name __imagemagick__.cc:5: error: expected namespace-name before ';' token __imagemagick__.cc:7: error: 'Image' was not declared in this scope __imagemagick__.cc:7: error: template argument 1 is invalid ...
Created attachment 146367 [details] transcode-1.0.5_build.log Same problem with media-video/transcode-1.0.5-r2
(In reply to comment #1) > Alse affects sci-mathematics/octave-forge-2006.03.17-r1. Please take this to a new bug; one bug -> one issue (plus sci-mathematics/octave-forge is missing any imagemagick dependency whatsoever in the first place).
At least here, and with rss-glx only, going back one step on ImageMagick to 6.3.8.3-r1 fixes things. So it would seem to be something entirely new with imagemagick-6.3.9.8
(In reply to comment #4) > At least here, and with rss-glx only, going back one step on ImageMagick to > 6.3.8.3-r1 fixes things. > So it would seem to be something entirely new with imagemagick-6.3.9.8 It's documented in the ChangeLog ;) 2008-02-03 6.3.8-5 Cristy <quetzlzacatenango@image...> * New Unix/Linux refactoring (should be transparent since changes are reflected in Magick-config and ImageMagick.pc pkg-config files): /usr/local/include => /usr/local/include/ImageMagick libMagick => libMagickCore libWand => libMagickWand Magick-config (deprecated) => MagickCore-config Wand-config (deprecated) => MagickWand-config Add Magick++-config, MagickCore.pc, MagickWand.pc, Magick++.pc
Same story here. x11-misc/rss-glx-0.8.1-r4 came up as broken in revdep rebuild. matrixview.c:83:24: error: magick/api.h: No such file or directory matrixview.c:84:30: error: wand/magick-wand.h: No such file or directory It goes downhill from there.
(In reply to comment #6) > Same story here. x11-misc/rss-glx-0.8.1-r4 came up as broken in revdep > rebuild. > > matrixview.c:83:24: error: magick/api.h: No such file or directory > matrixview.c:84:30: error: wand/magick-wand.h: No such file or directory > > It goes downhill from there. > I'm actually using media-gfx/imagemagick-6.3.9.7.
(In reply to comment #0) > rss-glx is including ImageMagick headers by including <magick/api.h>, but the > header is located in /usr/include/ImageMagick/magick/api.h. > Hello, make does not know about the include file location when dealing with media-gfx/imagemagick-6.3.9.7. You need to set CPPFLAGS for that. --- /usr/portage/x11-misc/rss-glx/rss-glx-0.8.1-r4.ebuild 2008-01-07 05:12:14.000000000 +0100 +++ /usr/portage/local/overlay/x11-misc/rss-glx/rss-glx-0.8.1-r4.ebuild 2008-03-21 16:53:24.000000000 +0100 @@ -20,7 +20,6 @@ media-libs/glew >=media-gfx/imagemagick-5.5.7 kde? ( || ( kde-base/kdeartwork-kscreensaver kde-base/kdeartwork ) ) - !kde? ( >=x11-misc/xscreensaver-5 ) xscreensaver? ( >=x11-misc/xscreensaver-5 ) openal? ( media-libs/openal )" DEPEND="${RDEPEND} @@ -64,7 +63,7 @@ myconf="${myconf} --with-kdessconfigdir=/usr/share/applications/" fi - econf \ + CPPFLAGS="-I/usr/include/ImageMagick" econf \ $(use_enable openal sound) \ $(use_enable sse) \ $(use_enable 3dnow) \
(In reply to comment #8) > (In reply to comment #0) > > rss-glx is including ImageMagick headers by including <magick/api.h>, but the > > header is located in /usr/include/ImageMagick/magick/api.h. > > > > Hello, > > make does not know about the include file location when dealing with > media-gfx/imagemagick-6.3.9.7. You need to set CPPFLAGS for that. > > --- /usr/portage/x11-misc/rss-glx/rss-glx-0.8.1-r4.ebuild 2008-01-07 > 05:12:14.000000000 +0100 > +++ /usr/portage/local/overlay/x11-misc/rss-glx/rss-glx-0.8.1-r4.ebuild > 2008-03-21 16:53:24.000000000 +0100 > @@ -20,7 +20,6 @@ > media-libs/glew > >=media-gfx/imagemagick-5.5.7 > kde? ( || ( kde-base/kdeartwork-kscreensaver kde-base/kdeartwork ) ) > - !kde? ( >=x11-misc/xscreensaver-5 ) > xscreensaver? ( >=x11-misc/xscreensaver-5 ) > openal? ( media-libs/openal )" > DEPEND="${RDEPEND} > @@ -64,7 +63,7 @@ > myconf="${myconf} > --with-kdessconfigdir=/usr/share/applications/" > fi > > - econf \ > + CPPFLAGS="-I/usr/include/ImageMagick" econf \ > $(use_enable openal sound) \ > $(use_enable sse) \ > $(use_enable 3dnow) \ > This worked for me. Also I'm on AMD64. New to the whole bug reporting thing so if you want me to post a new bug for the other architecture I can.
I notice that the configure script goes to the trouble of setting some Makefile variables 'Wand_CFLAGS' and 'Wand_LIBS' (see the generated 'config.log' and the various 'Makefile' files generated from the 'Makefile.in' files) but the Makefiles actually make no use of them when compiling or linking! I'll attach a one-line patch to fix it.
Created attachment 147453 [details, diff] Patch to use ImageMagick include path Allows rss-glx to compile using the latest ImageMagick builds that put the include files under /usr/include/ImageMagick. Uses the 'Wand_CFLAGS' macro that is already set by the configure script.
(In reply to comment #11) > Created an attachment (id=147453) [edit] > Patch to use ImageMagick include path > > Allows rss-glx to compile using the latest ImageMagick builds that put the > include files under /usr/include/ImageMagick. Uses the 'Wand_CFLAGS' macro > that is already set by the configure script. > Thanks Ian that patch works fine here.
Thanks. Patch works. Regards, Norberto
I'm going to hook that patch up in cvs. Thanks!