Bug 213980 - sci-mathematics/octave-forge-2006.03.17-r1 doesn't compile w/ imagemagick-6.3.9.7
Bug#: 213980 Product:  Gentoo Linux Version: 2007.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: sci-mathematics@gentoo.org Reported By: ed@catmur.co.uk
Component: Applications
URL: 
Summary: sci-mathematics/octave-forge-2006.03.17-r1 doesn't compile w/ imagemagick-6.3.9.7
Keywords:  
Status Whiteboard: 
Opened: 2008-03-20 02:22 0000
Description:   Opened: 2008-03-20 02:22 0000
...
make[1]: Leaving directory
`/var/tmp/portage/sci-mathematics/octave-forge-2006.03.17-r1/work/octave-forge-2006.03.17/main'
Build finished.
main/ not complete.
Some functions failed to compile (search build.log for errors) but many
other functions will still work correctly.  Run 'make check' to see
what works.  Run 'make install' to install what has been built.
make: *** [all] Error 1

Above:

make[1]: Entering directory
`/var/tmp/portage/sci-mathematics/octave-forge-2006.03.17-r1/work/octave-forge-2006.03.17/main/image'
mkoctfile -Doctave_idx_type=int -DHAVE_OCTAVE_21 -v __imagemagick__.cc
-lMagick++ -lMagick
i686-pc-linux-gnu-g++ -c -fPIC -I/usr/include/octave-2.1.73
-I/usr/include/octave-2.1.73/octave -mieee-fp -ggdb -O1 -O2 -O3 -pipe
-march=athlon-xp -mmmx -msse -m3dnow -Doctave_idx_type=int -DHAVE_OCTAVE_21
__imagemagick__.cc -o __imagemagick__.o
__imagemagick__.cc:2: 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:307: error: request for member ‘clear’ in ‘imvec’,
which is of non-class type ‘int’
make[1]: *** [__imagemagick__.oct] Error 1

media-gfx/imagemagick-6.3.9.7 is installed.

------- Comment #1 From Ed Catmur 2008-03-20 02:23:22 0000 -------
Created an attachment (id=146633) [details]
Magick.patch

------- Comment #2 From Markus Dittrich 2008-03-20 17:36:08 0000 -------
Hi Ed,

Thanks much for the note and patch. I just fixed
this in portage cvs.

Best,
Markus