Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99297 - Mindless 1.6 fails to compile
Summary: Mindless 1.6 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-17 00:43 UTC by Luca
Modified: 2005-07-23 15:02 UTC (History)
2 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 Luca 2005-07-17 00:43:29 UTC
I try to emerge the package but it stop displaying this error:

phasecleanup_image ICONS/phasecleanup.svg \
> _images.c
failed to load "ICONS/lifeset.svg": Couldn't recognize the image file format for
file 'ICONS/lifeset.svg'
make: *** [_images.c] Error 1

!!! ERROR: games-puzzle/mindless-1.6 failed.
!!! Function src_compile, Line 31, Exitcode 2
!!! emake failed


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2005-07-17 01:00:52 UTC
works fine for me

you neglected to provide `emerge info` like the bug report page told you to

re-open when you have and also include the version of GTK+ you have installed
Comment 2 Matt Beswick (Soir) 2005-07-17 21:31:07 UTC
Same bug for me. Posting here to save duplication in advance, and gives
something to compare against when Luca gets back to us. :)

Error is the same:

gdk-pixbuf-csource --raw --build-list \
lifeset_image ICONS/lifeset.svg \
//(...big list of ICONS/*.svg files here, will assume the same error would
happen for them all...)
> _images.c
failed to load "ICONS/lifeset.svg": Couldn't recognize the image file format for
file 'ICONS/lifeset.svg'
make: *** [_images.c] Error 1
make: *** Waiting for unfinished jobs....

Reproducible: Always
Steps to Reproduce:
1. emerge -v mindless
2. wait patiently, but not for very long
3. kaboom

This thing asked to install gnome-libs and nothing else gnome-ish. Don't see
many packages asking to do that, but since I don't use GNOME I'm not going to
complain.
Two flavours of GTK+ on offer, and mindless-1.6 chose gtk2:
gcc -Wall -march=athlon-xp -O2 -fomit-frame-pointer -pipe `pkg-config gtk+-2.0
--cflags` -c mindless.c
More accurately, version 2.6.8.

Am noting my lack of svg USE flag, which may mean mindless-1.6 depends on it?


emerge --info:
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.1
2-gentoo-r4 i686)
=================================================================
System uname: 2.6.12-gentoo-r4 i686 mobile AMD Athlon(tm) XP2500+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X1
1/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict userpriv users
andbox"
GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://
mirrors1.netvisao.pt/gentoo/ ftp://ftp.gentoo-pt.org/pub/gentoo/ "
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
MAKEOPTS="-j2"
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="x86 3dnow 3dnowext X a52 aac aalib acpi aim alsa apm audiofile avi
bash-completion bcmath berkdb bidi bitmap-fonts bmp bzlib canna cdparanoia cdr
cjk crypt curl dga directfb divx4linux dv dvd dvdr dvdread encode fbcon ffmpeg
flac freewnn ftp gd gd-external ggi gif glut gnutls gpm gtk gtk2 iconv icq
ieee1394 imagemagick imap ipv6 java javascript jikes joystick jpeg libcaca
libwww lzo mad matroska mikmod mime ming mmx mmxext mng motif mozilla mp3 mpeg
msn mythtv ncurses nls nptl ogg oggvorbis openal opengl oscar oss pam pcmcia
pcre pdflib perl png python qt quicktime readline recode samba scanner sdl slang
sndfile spell sse ssl tcltk tcpd tetex tga theora tiff truetype truetype-fonts
type1-fonts unicode usb vcd vorbis wifi win32codecs xml xml2 xpm xv xvid yahoo
yim zlib video_cards_ati userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 3 SpanKY gentoo-dev 2005-07-17 23:05:17 UTC
hmm, probably ... i have USE=svg in my system ...

question is, what exactly needs to be re-emerged here ?  gtk+ has no direct
dependency on libsvg ...

if you simply do `emerges libsvg` and then `emerge mindless` does it work ?
Comment 4 Luca 2005-07-18 02:50:48 UTC
Sorry guys, for not posting info.This is what i got:

GTK+

x11-libs/gtk+
     Installed:           1.2.10-r11 2.6.7

EMERGE --INFO

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.
20041102-r1, 2.6.12-gentoo-r4 i686)
=================================================================
System uname: 2.6.12-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -march=pentium3 -mfpmath=sse -msse2
-mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share
/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/shar
e/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer -march=pentium3 -mfpmath=sse -msse
                                                                          2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://f
                                                                         
tp.tu-clausthal.de/pub/linux/gentoo/"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apm atm avi berkdb bitmap-fonts cdr crypt cups curl dvd emboss
                                                                          
encode esd fam fftw foomaticdb fortran gdbm gif gpm grass gtk gtk2 imagemagick i
                                                                          mlib
ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mp3 mpeg ncurses     
                                                                      nls ogg
oggvorbis opengl oss pam pdflib perl png postgres proj python qt quickti       
                                                                   me readline
scanner sdl spell ssl tcltk tcpd tiff truetype truetype-fonts type1-           
                                                               fonts usb vorbis
x86 xine xml xml2 xmms xv zlib linguas_it userland_GNU kernel_l                
                                                          inux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 5 Matt Beswick (Soir) 2005-07-18 07:17:13 UTC
On `emerge libsvg` followed by `emerge mindless`:
No dice, produces same error.

`USE="svg" emerge -uDNpv world` doesn't actually reference gtk+ at all. Then
again, it also doesn't reference libsvg, at least on this system. Instead, it
calls for 'gnome-base/librsvg', which is a gnome-* library and seems to make
more sense here.

With that in mind I tried `emerge librsvg` followed by `emerge mindless` and
this does cause mindless to compile properly. DEPEND issue, methinks.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2005-07-18 08:05:30 UTC
this seems like a gnome-team bug to me.  /usr/bin/gdk-pixbuf-csource is part of
gtk+ and it would be nice to know ahead of time if it can support svg files or not.
Comment 7 SpanKY gentoo-dev 2005-07-18 08:21:50 UTC
which package was it that referenced librsvg once you enabled USE=svg ?  we can
update mindless to check that said package has svg support enabled ...
Comment 8 John N. Laliberte (RETIRED) gentoo-dev 2005-07-18 08:42:11 UTC
first: whats in your /etc/gtk-2.0/gdk-pixbuf.loaders file? ( attach if necessary )

I bet there is no reference to SVG files like:
"/usr/lib/gtk-2.0/2.4.0/loaders/svg_loader.so"
"svg" 2 "gtk20" "Scalable Vector Graphics"

Do you have gnome-base/librsvg installed? ( notice the 'r' )

Does the file /usr/lib/gtk-2.0/2.4.0/loaders/svg_loader.so exist?

Merging librsvg will most likely solve your issue. 
( as pointed out by comment #5 )

if you don't have one of these packages installed:
http://gentoo-portage.com/gnome-base/librsvg/rdep
you wouldn't have the librsvg package installed.

Thanks!
Comment 9 Matt Beswick (Soir) 2005-07-18 08:47:42 UTC
On gdk-pixbuf-csource:
/usr/bin/gdk-pixbuf-csource appears to support svg if the system has the right
rendering libraries for it (librsvg). The compile worked with this library
added, I'm not sure it goes any deeper than that. But this is probably the fault
of GNOME anyway, in some latent way. :)

On librsvg referencing:
Huh. When I did `USE="svg" emerge -uDNpv world` it poked GIMP (gimp-2.2.8-r1)
and VLC (vlc-0.8.2-r1) into the pretence of requiring svg support, and they both
requested librsvg. But neither of these have anything to do with mindless-1.6,
other than the shared need for librsvg, which is a GNOME staple. So we shouldn't
start checking them for svg support. mindless just needs to check for librsvg, I
think.

Basically, saying the same as comment #8. Mid-air collision. ;P
Comment 10 SpanKY gentoo-dev 2005-07-18 17:10:57 UTC
then i guess we dont have much choice other than dropping librsvg into the
mindless ebuild DEPEND

thanks all
Comment 11 foser (RETIRED) gentoo-dev 2005-07-23 09:45:22 UTC
I'm just reopening this bug for a sec, because there are a few somewhat related
issues with the ebuild. mindless 1.6 now deps on gtk+-2 & gdk-pixbuf. gtk+-2
already contains gdk-pixbuf, the seperate package is for gtk+-1 and is not
needed here.

Also, only pkgconfig is a buildtime dep, librsvg are both buildtime & runtime
deps then (assuming svg icons are used).
Comment 12 Mr. Bones. (RETIRED) gentoo-dev 2005-07-23 15:02:38 UTC
removed the gdk-pixbuf dep.  librsvg is only used at build time.