Bug 36219 - gthumb 2.2.0 fails to compile
Bug#: 36219 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: graphics@gentoo.org Reported By: tawesley@yahoo.com
Component: Applications
URL: 
Summary: gthumb 2.2.0 fails to compile
Keywords:  
Status Whiteboard: 
Opened: 2003-12-21 01:56 0000
Description:   Opened: 2003-12-21 01:56 0000
When upgrading gthumb the compilation fails with the following output:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DGNOMEDATADIR=\""/usr/share"\"            -pthread -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/libgnome-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libxml2 -I/usr/include/gnome-vfs-module-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2                         -I../../libgthumb    -mcpu=athlon-mp -O3 -pipe -fomit-frame-pointer -c main.c
sed -e "s|\@LIBEXECDIR\@|/usr/libexec|g" \
< ./GNOME_GThumb_CatalogView.server.in.in > temp \
&& mv temp GNOME_GThumb_CatalogView.server.in
sed -e 's?\@ICONSDIR\@?/usr/share/gthumb/icons?g' \
< ./GNOME_GThumb_CatalogView.xml.in > temp \
&& mv temp GNOME_GThumb_CatalogView.xml
mv: cannot stat `temp': No such file or directory
make[3]: *** [GNOME_GThumb_CatalogView.server.in] Error 1
make[3]: *** Waiting for unfinished jobs....
touch nautilus_view_component_idl_stamp
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/gthumb-2.2.0/work/gthumb-2.2.0/components/catalog-view'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gthumb-2.2.0/work/gthumb-2.2.0/components'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gthumb-2.2.0/work/gthumb-2.2.0'
make: *** [all-recursive-am] Error 2
 
!!! ERROR: media-gfx/gthumb-2.2.0 failed.
!!! Function gnome2_src_compile, Line 39, Exitcode 2
!!! compile failure


Reproducible: Always
Steps to Reproduce:




Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031212-r0,
2.6.0-gentoo)
=================================================================
System uname: 2.6.0-gentoo i686 AMD Athlon(tm) MP 2400+
Gentoo Base System version 1.4.3.12
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-mp -O3 -pipe -fomit-frame-pointer"
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/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/env.d"
CXXFLAGS="-mcpu=athlon-mp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo
ftp://ftp.caliu.info/pub/gentoo/ http://gentoo.linux.no/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm avi berkdb bonobo cdr crypt cups dvd encode esd
foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib ipv6 java jpeg ldap
libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls nptl oggvorbis
opengl oss pam pda pdflib perl pic png python quicktime readline ruby sdl slang
spell sse ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib
video_cards_radeon"

------- Comment #1 From Yi Quang (RETIRED) 2003-12-21 09:59:10 0000 -------
gthumb compiled fine here, try lowering optimizations. 

------- Comment #2 From Tom Wesley 2003-12-21 10:20:28 0000 -------
-O3 -pipe should be fine, and is generically supported - or at least I thought
it was...

It seems it was my MAKEOPTS.  Seems a bug in the ebuild in the fact that if it
can't handle it then it should disable it.

Tom

------- Comment #3 From Luca Barbato 2003-12-21 17:15:26 0000 -------
set -j2 and should work

------- Comment #4 From Eddy Mulyono 2004-01-26 00:49:56 0000 -------
I also had the exact same problem. I'm using distcc and ccache.

I then followed Luca Barbato's advice and `export MAKEOPTS="-j2"` before i re-`emerge gthumb`. It works now.

Maybe we need to "strip-flags" in the ebuild?

-Eddy

------- Comment #5 From Luca Barbato 2004-01-26 03:31:06 0000 -------
Fixed, hopefully

------- Comment #6 From foser (RETIRED) 2004-01-26 15:25:45 0000 -------
Hmm i just discovered this, this bug should go to gnome (see metadata) . gfx
second herd fine with me, just add it.

Anyway, lu_zero try to make functional changelog remarks, like what you
actually did (eg. 'capped jobs to fix #xxxxx') so i don't have to look up bugs
unneeded.