Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 49222

Summary: gimp-2.0.0 fails to compile under gcc-3.4
Product: Gentoo Linux Reporter: Andrew Sayman <lorien420>
Component: [OLD] GCC PortingAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 48528    
Attachments: Fix for compiler error

Description Andrew Sayman 2004-04-27 17:14:49 UTC
gimp-2.0.0 fails to compile with gcc-3.4 giving the output below: 

Making all in app
make[2]: Entering directory `/mnt/hda1/portage/tmp/portage/gimp-2.0.0/work/gimp-2.0.0/app'
Making all in paint-funcs
make[3]: Entering directory `/mnt/hda1/portage/tmp/portage/gimp-2.0.0/work/gimp-2.0.0/app/paint-funcs'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../app -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include -DG_LOG_DOMAIN=\"Gimp-Paint-Funcs\"  -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -O2 -march=athlon-xp -pipe -Wall -MT paint-funcs.o -MD -MP -MF ".deps/paint-funcs.Tpo" \
  -c -o paint-funcs.o `test -f 'paint-funcs.c' || echo './'`paint-funcs.c; \
then mv -f ".deps/paint-funcs.Tpo" ".deps/paint-funcs.Po"; \
else rm -f ".deps/paint-funcs.Tpo"; exit 1; \
fi
paint-funcs.c:4484: error: conflicting types for 'initial_region'
paint-funcs.h:359: error: previous declaration of 'initial_region' was here
paint-funcs.c:4484: error: conflicting types for 'initial_region'
paint-funcs.h:359: error: previous declaration of 'initial_region' was here
make[3]: *** [paint-funcs.o] Error 1
make[3]: Leaving directory `/mnt/hda1/portage/tmp/portage/gimp-2.0.0/work/gimp-2.0.0/app/paint-funcs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/hda1/portage/tmp/portage/gimp-2.0.0/work/gimp-2.0.0/app'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/hda1/portage/tmp/portage/gimp-2.0.0/work/gimp-2.0.0'
make: *** [all] Error 2

!!! ERROR: media-gfx/gimp-2.0.0 failed.
!!! Function src_compile, Line 89, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. emerge =gimp-2.0.0 with gcc-3.4
Actual Results:  
gimp fails to emerge

Expected Results:  
gimp should have merged

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.4.0, glibc-2.3.3_pre20040207-r0, 2.6.4)
=================================================================
System uname: 2.6.4 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.9
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/mnt/hda1/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://adelie.polymtl.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/hda1/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://128.61.75.81/gentoo-portage"
USE="3dnow X aalib acpi alsa avi berkdb bonobo cdr crypt cups dedicated doc dvd
encode esd foomaticdb gdbm gif gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml
guile imlib java jfs jikes jpeg junit ldap libg++ libwww mad mikmod mmx mng
motif mozilla mpeg mysql nas ncurses nls ogg oggvorbis openal opengl oss pam
pdflib perl png python qt quicktime readline reiserfs ruby samba sdl slang spell
sse ssl svga tcltk tcpd tetex tiff truetype usb x86 xml xml2 xmms xosd xv zlib"
Comment 1 Andrew Sayman 2004-04-27 17:47:43 UTC
Created attachment 30203 [details, diff]
Fix for compiler error

This patch fixes the compilation error that made this emerge fail.
Comment 2 Travis Tilley (RETIRED) gentoo-dev 2004-04-28 19:43:59 UTC
fixed using a different patch... give it some time to reach rsync