Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213643 - x11-misc/rss-glx-0.8.1-r4 cannot find imagemagick-6.3.9.8 headers
Summary: x11-misc/rss-glx-0.8.1-r4 cannot find imagemagick-6.3.9.8 headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 218344
  Show dependency tree
 
Reported: 2008-03-17 00:37 UTC by Markus Peloquin
Modified: 2008-04-04 17:20 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
transcode-1.0.5_build.log (transcode-1.0.5_build.log,26.59 KB, text/plain)
2008-03-17 02:52 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
Patch to use ImageMagick include path (rss-glx-0.8.1-ImageMagick-fix.patch,547 bytes, patch)
2008-03-27 16:52 UTC, Ian Abbott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Peloquin 2008-03-17 00:37:23 UTC
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.)

...
Comment 1 Markus Peloquin 2008-03-17 01:48:40 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
...
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2008-03-17 02:52:35 UTC
Created attachment 146367 [details]
transcode-1.0.5_build.log

Same problem with media-video/transcode-1.0.5-r2
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-03-17 07:48:37 UTC
(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).
Comment 4 Leonardo Valeri Manera 2008-03-17 08:00:20 UTC
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
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-03-17 08:07:31 UTC
(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
Comment 6 Matthew Lane 2008-03-20 07:53:40 UTC
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.

Comment 7 Matthew Lane 2008-03-20 08:06:24 UTC
(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.
Comment 8 Jimmy.Jazz 2008-03-21 16:16:33 UTC
(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) \

Comment 9 Jason 2008-03-26 06:23:28 UTC
(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. 
Comment 10 Ian Abbott 2008-03-27 16:47:52 UTC
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.
Comment 11 Ian Abbott 2008-03-27 16:52:47 UTC
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.
Comment 12 Jonathan Heaney 2008-03-28 12:44:54 UTC
(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.
Comment 13 Norberto Bensa 2008-03-30 13:39:19 UTC
Thanks. Patch works.

Regards,
Norberto
Comment 14 Jeffrey Gardner (RETIRED) gentoo-dev 2008-04-04 17:20:30 UTC
I'm going to hook that patch up in cvs.
Thanks!