Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35827 - imagemagick-5.5.6-r1 failed compile problem
Summary: imagemagick-5.5.6-r1 failed compile problem
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-14 12:59 UTC by roma1390
Modified: 2004-11-07 16:10 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description roma1390 2003-12-14 12:59:39 UTC
emerge imagemagick fails with error message:
!!! ERROR: media-gfx/imagemagick-5.5.6-r1 failed.
!!! Function src_compile, Line 79, Exitcode 2
!!! compile problem

compile output:
if /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I../ -I. -I. -I../magick -I.. -I.. -I../magick  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2  -mcpu=athlon-xp -O3 -pipe -Wall -MT xcf.lo -MD -MP -MF ".deps/xcf.Tpo" \
  -c -o xcf.lo `test -f 'xcf.c' || echo './'`xcf.c; \
then mv ".deps/xcf.Tpo" ".deps/xcf.Plo"; \
else rm -f ".deps/xcf.Tpo"; exit 1; \
fi
if /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I../ -I. -I. -I../magick -I.. -I.. -I../magick  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2  -mcpu=athlon-xp -O3 -pipe -Wall -MT xc.lo -MD -MP -MF ".deps/xc.Tpo" \
  -c -o xc.lo `test -f 'xc.c' || echo './'`xc.c; \
then mv ".deps/xc.Tpo" ".deps/xc.Plo"; \
else rm -f ".deps/xc.Tpo"; exit 1; \
fi
if /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I../ -I. -I. -I../magick -I.. -I.. -I../magick  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2  -mcpu=athlon-xp -O3 -pipe -Wall -MT xbm.lo -MD -MP -MF ".deps/xbm.Tpo" \
  -c -o xbm.lo `test -f 'xbm.c' || echo './'`xbm.c; \
then mv ".deps/xbm.Tpo" ".deps/xbm.Plo"; \
else rm -f ".deps/xbm.Tpo"; exit 1; \
fi
if /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I../ -I. -I. -I../magick -I.. -I.. -I../magick  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2  -mcpu=athlon-xp -O3 -pipe -Wall -MT x.lo -MD -MP -MF ".deps/x.Tpo" \
  -c -o x.lo `test -f 'x.c' || echo './'`x.c; \
then mv ".deps/x.Tpo" ".deps/x.Plo"; \
else rm -f ".deps/x.Tpo"; exit 1; \
fi
if /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I../ -I. -I. -I../magick -I.. -I.. -I../magick  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2  -mcpu=athlon-xp -O3 -pipe -Wall -MT wpg.lo -MD -MP -MF ".deps/wpg.Tpo" \
  -c -o wpg.lo `test -f 'wpg.c' || echo './'`wpg.c; \
then mv ".deps/wpg.Tpo" ".deps/wpg.Plo"; \
else rm -f ".deps/wpg.Tpo"; exit 1; \
fi
if /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I../ -I. -I. -I../magick -I.. -I.. -I../magick  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2  -mcpu=athlon-xp -O3 -pipe -Wall -MT wmf.lo -MD -MP -MF ".deps/wmf.Tpo" \
  -c -o wmf.lo `test -f 'wmf.c' || echo './'`wmf.c; \
then mv ".deps/wmf.Tpo" ".deps/wmf.Plo"; \
else rm -f ".deps/wmf.Tpo"; exit 1; \
fi
In file included from wmf.c:80:
/usr/include/libwmf/types.h:198: parse error before "FT_Encoding"
wmf.c:2076: elements of array `SubFontMap' have incomplete type
wmf.c:2077: warning: excess elements in struct initializer
wmf.c:2077: warning: (near initialization for `SubFontMap[0]')
wmf.c:2077: warning: excess elements in struct initializer
wmf.c:2077: warning: (near initialization for `SubFontMap[0]')
wmf.c:2078: warning: excess elements in struct initializer
wmf.c:2078: warning: (near initialization for `SubFontMap[1]')
wmf.c:2078: warning: excess elements in struct initializer
wmf.c:2078: warning: (near initialization for `SubFontMap[1]')
wmf.c:2079: warning: excess elements in struct initializer
wmf.c:2079: warning: (near initialization for `SubFontMap[2]')
wmf.c:2079: warning: excess elements in struct initializer
wmf.c:2079: warning: (near initialization for `SubFontMap[2]')
wmf.c:2080: warning: excess elements in struct initializer
wmf.c:2080: warning: (near initialization for `SubFontMap[3]')
wmf.c:2080: warning: excess elements in struct initializer
wmf.c:2080: warning: (near initialization for `SubFontMap[3]')
wmf.c:2081: warning: excess elements in struct initializer
wmf.c:2081: warning: (near initialization for `SubFontMap[4]')
wmf.c:2081: warning: excess elements in struct initializer
wmf.c:2081: warning: (near initialization for `SubFontMap[4]')
wmf.c:2082: warning: excess elements in struct initializer
wmf.c:2082: warning: (near initialization for `SubFontMap[5]')
wmf.c:2082: warning: excess elements in struct initializer
wmf.c:2082: warning: (near initialization for `SubFontMap[5]')
wmf.c:2083: warning: excess elements in struct initializer
wmf.c:2083: warning: (near initialization for `SubFontMap[6]')
wmf.c:2083: warning: excess elements in struct initializer
wmf.c:2083: warning: (near initialization for `SubFontMap[6]')
wmf.c:2084: warning: excess elements in struct initializer
wmf.c:2084: warning: (near initialization for `SubFontMap[7]')
wmf.c:2084: warning: excess elements in struct initializer
wmf.c:2084: warning: (near initialization for `SubFontMap[7]')
wmf.c:2085: warning: excess elements in struct initializer
wmf.c:2085: warning: (near initialization for `SubFontMap[8]')
wmf.c:2085: warning: excess elements in struct initializer
wmf.c:2085: warning: (near initialization for `SubFontMap[8]')
wmf.c:2086: warning: excess elements in struct initializer
wmf.c:2086: warning: (near initialization for `SubFontMap[9]')
wmf.c:2086: warning: excess elements in struct initializer
wmf.c:2086: warning: (near initialization for `SubFontMap[9]')
wmf.c: In function `lite_font_map':
wmf.c:2212: invalid use of undefined type `struct _wmfMapping'
wmf.c:2214: invalid use of undefined type `struct _wmfMapping'
wmf.c:2216: invalid use of undefined type `struct _wmfMapping'
make[1]: *** [wmf.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/imagemagick-5.5.6-r1/work/ImageMagick-5.5.6/coders'
make: *** [all-recursive] Error 1

!!! ERROR: media-gfx/imagemagick-5.5.6-r1 failed.
!!! Function src_compile, Line 79, Exitcode 2
!!! compile problem

-----------------------
# emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.23)
=================================================================
System uname: 2.4.23 i686 mobile AMD Athlon(tm) XP 1600+ 
Gentoo Base System version 1.4.3.10p1
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -O3 -pipe -Wno-deprecated"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox userpriv userandbox ccache"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j16 -l4"
PKGDIR="/usr/portage/packages/marsas"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="foomaticdb mad directfb gdbm slang ggi -3dfx 3dnow aalib -acl acpi -afs -alsa -apache2 apm -arts -atlas avi berkdb -bonobo -canna cdr -cjk crypt -cups dga directf -doc dvd encode esd -etherial -evo -ev6 fbcon flash -freewnn -gb gif -gnome -gphoto2 gpm -gps gtk gtk2 -gtkhtml -guile -icc -icc-pgo -imap imlib innodb ipv6 -java -jikes jpeg -junit -kde -kerberos lcms -ldap -leim -libg++ -libgda libwww -matrox -maildir mbox mikmod mmx motif mozilla mpeg -mule mysql nas ncurses -nls -oav -oci8 -odbc oggvorbis opengl -oss pam pcmcia pdflib perl pic plotutils png -postgres python qt qtmt quicktime readline -ruby samba sasl -scanner sdl slan -slp -snmp -socks5 -spell sse ssl svga tcltk tcpd -tetex tiff -truetype usb -voodoo3 -wavelan wmf X xface xml xml2 xmms xv -zeo zlib x86"
# emerge -p imagemagick

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] media-gfx/imagemagick-5.5.6-r1  

# head /usr/include/libwmf/types.h -n $[198+5] | tail -n 17
        wmfD_Coord BR;
};

struct _wmfMapping
{       char* name;
        char* mapping;

        /* I had been hoping to keep FT out of this file, but
         * it seems easier just to use the FT encoding defs
         * rather than create some kind of wrapper...
         */
        FT_Encoding encoding;
};

struct _wmfFontMap
{       char* name;       /* wmf font name */

# epm -qf /usr/include/libwmf/types.h
libwmf-0.2.8

# emerge -p libwmf

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] media-libs/libwmf-0.2.8.2 [0.2.8] 




Reproducible: Always
Steps to Reproduce:
1.emerge imagemagick

Actual Results:  
!!! ERROR: media-gfx/imagemagick-5.5.6-r1 failed.
!!! Function src_compile, Line 79, Exitcode 2
!!! compile problem


Expected Results:  
emerge imagemagick successfull complete

won't paste info from emerge info.
Comment 1 Jon Portnoy (RETIRED) gentoo-dev 2004-04-19 13:57:46 UTC
Do newer imagemagick + libwmf combinations work okay for you? I can't reproduce this.

Reopen the bug if it still breaks for you.
Comment 2 roma1390 2004-04-20 11:50:50 UTC
root # emerge -p libwmf

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] media-libs/libwmf-0.2.8.2 [0.2.8] 

root # emerge -p imagemagick

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] media-gfx/imagemagick-5.5.7.15  

root # emerge imagemagick
Calculating dependencies ...done!
>>> emerge (1 of 1) media-gfx/imagemagick-5.5.7.15 to /
>>> md5 src_uri ;-) ImageMagick-5.5.7-15.tar.bz2
>>> Unpacking source...
>>> Unpacking ImageMagick-5.5.7-15.tar.bz2 to /var/tmp/portage/imagemagick-5.5.7.15/work

...

wpg.c: In function `ReadWPGImage':
wpg.c:987: warning: dereferencing type-punned pointer will break strict-aliasing rules
if /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I../ -I. -I. -I../magick -I.. -I.. -I../magick  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6/include/X11 -I/usr/include/libxml2  -mcpu=athlon-xp -O3 -pipe -Wall -MT wmf.lo -MD -MP -MF ".deps/wmf.Tpo" \
  -c -o wmf.lo `test -f 'wmf.c' || echo './'`wmf.c; \
then mv -f ".deps/wmf.Tpo" ".deps/wmf.Plo"; \
else rm -f ".deps/wmf.Tpo"; exit 1; \
fi
In file included from wmf.c:81:
/usr/include/libwmf/types.h:198: error: syntax error before "FT_Encoding"
wmf.c:2077: error: elements of array `SubFontMap' have incomplete type
wmf.c:2078: warning: excess elements in struct initializer
wmf.c:2078: warning: (near initialization for `SubFontMap[0]')
wmf.c:2078: warning: excess elements in struct initializer
wmf.c:2078: warning: (near initialization for `SubFontMap[0]')
wmf.c:2079: warning: excess elements in struct initializer
wmf.c:2079: warning: (near initialization for `SubFontMap[1]')
wmf.c:2079: warning: excess elements in struct initializer

...

wmf.c:2087: warning: (near initialization for `SubFontMap[9]')
wmf.c:2087: warning: excess elements in struct initializer
wmf.c:2087: warning: (near initialization for `SubFontMap[9]')
wmf.c: In function `lite_font_map':
wmf.c:2213: error: invalid use of undefined type `struct _wmfMapping'
wmf.c:2215: error: invalid use of undefined type `struct _wmfMapping'
wmf.c:2217: error: invalid use of undefined type `struct _wmfMapping'
make[1]: *** [wmf.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/imagemagick-5.5.7.15/work/ImageMagick-5.5.7/coders'
make: *** [all-recursive] Error 1

!!! ERROR: media-gfx/imagemagick-5.5.7.15 failed.
!!! Function src_compile, Line 78, Exitcode 2
!!! compile problem

Comment 3 Karol Wojtaszek (RETIRED) gentoo-dev 2004-11-07 16:10:24 UTC
imagemagick-5.5.6-r1 is no longer in portage. Please use newer versions.