Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80581 - imagemagick-6.1.8.8 fails to compile
Summary: imagemagick-6.1.8.8 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-03 07:06 UTC by Vincent van de Camp
Modified: 2005-09-29 19:36 UTC (History)
3 users (show)

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 Vincent van de Camp 2005-02-03 07:06:06 UTC
for some reason, imagemagick is a dependency for amsn, but upon compiling I run into this error message:

ders/.deps/coders_ept_la-ept.Tpo"; exit 1; fi
In file included from coders/png.c:81:
/usr/X11R6/include/zlib.h:42:1: warning: "ZLIB_VERSION" redefined
In file included from /usr/include/png.h:359,
                 from coders/png.c:80:
/usr/include/zlib.h:40:1: warning: this is the location of the previous definition
In file included from /usr/X11R6/include/zlib.h:40,
                 from coders/png.c:81:
/usr/X11R6/include/zconf.h:167: warning: redefinition of `Byte'
/usr/include/zconf.h:255: warning: `Byte' previously declared here
/usr/X11R6/include/zconf.h:168: warning: redefinition of `uInt'
/usr/include/zconf.h:257: warning: `uInt' previously declared here
/usr/X11R6/include/zconf.h:169: warning: redefinition of `uLong'
/usr/include/zconf.h:258: warning: `uLong' previously declared here
/usr/X11R6/include/zconf.h:175: warning: redefinition of `Bytef'
/usr/include/zconf.h:264: warning: `Bytef' previously declared here
/usr/X11R6/include/zconf.h:177: warning: redefinition of `charf'
/usr/include/zconf.h:266: warning: `charf' previously declared here
/usr/X11R6/include/zconf.h:178: warning: redefinition of `intf'
/usr/include/zconf.h:267: warning: `intf' previously declared here
/usr/X11R6/include/zconf.h:179: warning: redefinition of `uIntf'
/usr/include/zconf.h:268: warning: `uIntf' previously declared here
/usr/X11R6/include/zconf.h:180: warning: redefinition of `uLongf'
/usr/include/zconf.h:269: warning: `uLongf' previously declared here
/usr/X11R6/include/zconf.h:183: warning: redefinition of `voidpf'
/usr/include/zconf.h:273: warning: `voidpf' previously declared here
/usr/X11R6/include/zconf.h:184: warning: redefinition of `voidp'
/usr/include/zconf.h:274: warning: `voidp' previously declared here
In file included from coders/png.c:81:
/usr/X11R6/include/zlib.h:65: warning: redefinition of `alloc_func'
/usr/include/zlib.h:77: warning: `alloc_func' previously declared here
/usr/X11R6/include/zlib.h:66: warning: redefinition of `free_func'
/usr/include/zlib.h:78: warning: `free_func' previously declared here
/usr/X11R6/include/zlib.h:70: error: redefinition of `struct z_stream_s'
/usr/X11R6/include/zlib.h:89: warning: redefinition of `z_stream'
/usr/include/zlib.h:101: warning: `z_stream' previously declared here
/usr/X11R6/include/zlib.h:91: warning: redefinition of `z_streamp'
/usr/include/zlib.h:103: warning: `z_streamp' previously declared here
/usr/X11R6/include/zlib.h:653: warning: redefinition of `gzFile'
/usr/include/zlib.h:933: warning: `gzFile' previously declared here
/usr/X11R6/include/zlib.h:700: error: conflicting types for `gzwrite'
/usr/include/zlib.h:981: error: previous declaration of `gzwrite'
/usr/X11R6/include/zlib.h:859: error: redefinition of `struct internal_state'
make[1]: *** [coders/coders_png_la-png.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/imagemagick-6.1.8.8/work/ImageMagick-6.1.8'
make: *** [all] Error 2

!!! ERROR: media-gfx/imagemagick-6.1.8.8 failed.
!!! Function src_compile, Line 76, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.



Reproducible: Always
Steps to Reproduce:
1. emerge imagemagick



Expected Results:  
imagemagick-6.1.8.8 should compile normally

emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.10 i686)
=================================================================
System uname: 2.6.10 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4,dev-lang/python-2.2.3-r5 [2.3.4 (#1,
Oct 18 2004, 20:13:11)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4, 2.2.3-r5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.7.9-r1, 1.5, 1.4_p6, 1.9.4, 1.6.3, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -mmmx -msse -fomit-frame-pointer -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -mmmx -msse -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms
userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm avi berkdb bidi bitmap-fonts bonobo cdr crypt cups dvd
encode esd f77 faad fam flac font-server foomaticdb fortran gdbm gif gnome gpm
gstreamer gtk gtk2 gtkhtml guile imlib ipv6 jpeg kerberos ldap libg++ libwww mad
matroska mikmod motif mozilla mpeg ncurses nls nptl oggvorbis opengl oss pam
pdflib perl png python quicktime readline samba sdl slang spell sse ssl svga
tcltk tcpd tiff truetype truetype-fonts type1-fonts wxwindows xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY


I have dumbed my CFLAGS down to only "-march=pentium3 -pipe", but this didn't
fix the problem.
Comment 1 Lorenzo 2005-02-12 09:17:11 UTC
Here is another problem with that package.
ImageMagick 6.1.8.8 failed to compile after updating gcc from 3.3.4 to 3.3.5.
(Gcc installation worked fine, i've recompiled libtool too).

libtool was looking for that file: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la

I've symlinked /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5 to /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4, and then ImageMagick successfully compiled.
Comment 2 Karol Wojtaszek (RETIRED) gentoo-dev 2005-02-23 07:07:25 UTC
Next time use /sbin/fix_libtool_files.sh script
Comment 3 Karol Wojtaszek (RETIRED) gentoo-dev 2005-03-11 02:49:15 UTC
Do you've same problems with 6.2.0.2 or 6.2.0.6?
Comment 4 Karol Wojtaszek (RETIRED) gentoo-dev 2005-03-11 02:49:39 UTC
Sorry, reopened
Comment 5 Vincent van de Camp 2005-03-15 07:04:19 UTC
Haven't been able to try this for a while, but just now I was able to compile imagemagick-6.2.0.4 without a problem, although there were a lot of
libtool: link: warning: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la' seems to be moved
warnings.
Comment 6 Peter Buxton 2005-03-27 10:09:03 UTC
For imagemagick-6.2.0.6:

I also had a problem with an upgrade from gcc 3.4.3 to 3.4.3-20050110. fix_libtool_files.sh solved that, though, without any problems. Is this a gcc ebuild problem, where an upgrade fails to run the script, or is it a user problem? (PEBCAK, heh.)

I did get the "file libstdc++.la seems to have moved" error when I was fiddling around, looking for the reason for the error. If you use symlink '3.4.3' to point  to '/usr/lib/gcc/i586-pc-linux-gnu/3.4.3-20050110' you get that error. Please note that fix_libtool_files.sh expects the OLD version of the compiler and CHOST value, and that the '--help' option doesn't, it doesn't have a man page, and run the script with no arguments for a help splash.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-08-04 06:06:43 UTC
Seems like newer versions work, 6.1.8.8 should be probably removed and this bug
closed. 

comment #5, comment #6: This is not a bug, do not symlink anything, run
'fix_libtool_files.sh <old-gcc-version-here>' is the correct way.
Comment 8 SpanKY gentoo-dev 2005-09-29 19:36:32 UTC
newer stable versions work