Summary: | x11-misc/rss-glx-0.8.1-r4 cannot find imagemagick-6.3.9.8 headers | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Markus Peloquin <markus> |
Component: | New packages | Assignee: | Desktop Misc. Team <desktop-misc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ian, jasontb, l.valerimanera, nshephard, tetromino, voyageur |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 218344 | ||
Attachments: |
transcode-1.0.5_build.log
Patch to use ImageMagick include path |
Description
Markus Peloquin
2008-03-17 00:37:23 UTC
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! |