Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224853 - media-gfx/gimp-2.4.6 with USE="python" fails with "syntax error in VERSION script"
Summary: media-gfx/gimp-2.4.6 with USE="python" fails with "syntax error in VERSION sc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-04 08:35 UTC by Peter Alfredsen (RETIRED)
Modified: 2008-06-16 20:06 UTC (History)
1 user (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 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-04 08:35:04 UTC
With USE="-python", it compiles cleanly.

libtool: link: /usr/bin/nm -B  .libs/gimpmodule.o .libs/pygimp-display.o .libs/pygimp-drawable.o .libs/pygimp-image.o .libs/pygimp-parasite.o .libs/pygimp-pdb.o .libs/pygimp-tile.o .libs/pygimp-vectors.o   | sed -n -e 's/^.*[   ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][      ]*\([_A-Za-z][_A-Za-z0-9]*\)$/  /p' | /bin/sed 's/.* //' | sort | uniq > .libs/gimp.exp
libtool: link: /bin/grep -E -e "initgimp" ".libs/gimp.exp" > ".libs/gimp.expT"
libtool: link: mv -f ".libs/gimp.expT" ".libs/gimp.exp"
libtool: link: echo "{ global:" > .libs/gimp.ver
libtool: link:  cat .libs/gimp.exp | sed -e "s/\(.*\)/;/" >> .libs/gimp.ver
libtool: link:  echo "local: *; };" >> .libs/gimp.ver
libtool: link:  i686-pc-linux-gnu-gcc -shared  .libs/gimpmodule.o .libs/pygimp-display.o .libs/pygimp-drawable.o .libs/pygimp-image.o .libs/pygimp-parasite.o .libs/pygimp-pdb.o .libs/pygimp-tile.o .libs/pygimp-vectors.o   -Wl,-rpath -Wl,/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimp/.libs -Wl,-rpath -Wl,/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimpconfig/.libs -Wl,-rpath -Wl,/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimpmath/.libs -Wl,-rpath -Wl,/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimpcolor/.libs -Wl,-rpath -Wl,/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimpbase/.libs -L/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimpconfig/.libs -L/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimpmath/.libs -L/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimpcolor/.libs -L/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimpbase/.libs ../../libgimp/.libs/libgimp-2.0.so -L/usr/lib /var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimpconfig/.libs/libgimpconfig-2.0.so /var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimpmath/.libs/libgimpmath-2.0.so /var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimpcolor/.libs/libgimpcolor-2.0.so /var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/libgimpbase/.libs/libgimpbase-2.0.so ../../libgimpcolor/.libs/libgimpcolor-2.0.so -lm ../../libgimpbase/.libs/libgimpbase-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libgthread-2.0.so -lpthread -lrt /usr/lib/libglib-2.0.so  -march=i686 -mtune=athlon-xp -msse -mmmx -Wl,--as-needed -pthread   -pthread -Wl,-soname -Wl,gimp.so -Wl,-version-script -Wl,.libs/gimp.ver -o .libs/gimp.so
/usr/lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../i686-pc-linux-gnu/bin/ld:.libs/gimp.ver:2: syntax error in VERSION script
collect2: ld returned 1 exit status
make[4]: *** [gimp.la] Error 1
make[4]: *** Waiting for unfinished jobs....
gimpui.c:7284: warning: no previous prototype for ‘gimpui_add_constants’
gimpui.c:7302: warning: no previous prototype for ‘gimpui_register_classes’
mv -f .deps/gimpui.Tpo .deps/gimpui.Plo
make[4]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/plug-ins/pygimp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/plug-ins/pygimp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.5/work/gimp-2.4.5'
make: *** [all] Error 2

Use flags:
[ebuild  N    ] media-gfx/gimp-2.4.6  USE="alsa curl dbus hal mmx pdf png python sse svg tiff wmf -aalib (-altivec) -debug -doc -exif -gnome -gtkhtml -lcms -mng -smp" 0 kB

Portage 2.1.5.3 (default/linux/x86/2008.0, gcc-4.3.0, glibc-2.7-r2, 2.6.23.12-hrt5 i686)
=================================================================
System uname: 2.6.23.12-hrt5 i686 AMD Sempron(tm)
Timestamp of tree: Tue, 03 Jun 2008 05:36:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     9999
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks installsources parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.gentoo.no/ http://gentoo.osuosl.org/ http://gentoo.oregonstate.edu"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en da"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/misc /usr/local/portage/powertop /usr/local/portage/fonts /usr/local/portage/font-rework"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi aim alsa authdaemond bash-completion berkdb bzip2 cairo cdr cgi cjk cli cpudetection cracklib crypt css cups curl dbus djbfft dri dts dvd dvdr dvdread evdev fam fastcgi ffmpeg firefox flac fortran g15 gadu gif glitz gnutls gpm hal hbci iconv icq icu idea imap isdnlog jabber java javascript jpeg kde kdeenablefinal lcd lm_sensors logitech-mouse logrotate lzo mad matroska mbox metric midi mikmod mime mmx mmxext mono moznopango mp3 mp4 mpeg mplayer msn mudflap musepack ncurses network-cron nls nocd nptl nptlonly offensive ogg openal opengl openmp oscar pam pcre pdf perl php png pop ppds pppd python qt3 qt4 quicktime readline real reflection sasl sdl sensord session shorten slang smime sms speex spell spl sse ssl svg svga tcpd texteffect theora threads tiff translator truetype unicode usb vcd vorbis win32codecs wmf wxwindows x264 x86 xanim xcb xface xine xml xmlrpc xorg xscreensaver xv xvid yahoo zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="g15" LINGUAS="en da" USERLAND="GNU" VIDEO_CARDS="vesa radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andreas Stangl 2008-06-14 17:44:18 UTC
my gimp refuses to compile now for quiet a long time because of the same issue

$ emerge --info
Portage 2.1.5.4 (default/linux/amd64/2008.0/desktop, gcc-4.2.4, glibc-2.7-r2, 2.6.24-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r8 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz
Timestamp of tree: Tue, 10 Jun 2008 21:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/X11/xorg.conf /etc/conf.d/apache2 /etc/conf.d/hdparm /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-q"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS=""
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acl aiglx alsa amarok amd64 apache2 audiofile berkdb bluetooth bogofilter branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cli cpudetection cracklib crypt css cups curl dbus dga directfb divx dri dts dvd dvdr dvdread emboss encode evo exif extrafilters fam fame fbcon ffmpeg firefox flac fortran ftp gdbm gif glitz gpm gtk hal hbci httpd iconv idn imagemagick ipv6 irmc java jpeg kde lame libnotify libsamplerate live lm_sensors lzo mad midi mikmod mjpeg mmx mp2 mp3 mp4 mpeg mplayer mudflap multilib musepack mysql ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp openssl pam pcre pdf perl php png ppds python qt3 qt3support qt4 quicktime rar rdesktop readline reflection samba session skins sndfile sox spell spl sqlite sse sse2 ssl startup-notification stream subversion svg syslog taglib tcpd tga theora tidy tiff truetype unicode usb userlocales vcd vhosts vim-pager vim-syntax vim-with-x visualization vorbis wavpack xcomposite xft xine xinetd xml xorg xpm xscreensaver xv xvid xvmc zip" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fglrx radeon ati vesa vga"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

----------------------------------------------------------------------

$ python --version
Python 2.5.2

a couple of interesting lines from the output of emerge gimp :
------------------------------------------------------
libtool: link: /usr/bin/nm -B  .libs/gimpenumsmodule.o   | sed -n -e 's/^.*[     ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[         ][      ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /bin/sed 's/.* //' | sort | uniq > .libs/_gimpenums.exp
/usr/bin/nm: .libs/gimpenumsmodule.o: File format not recognized
/usr/bin/nm: .libs/pygimp-image.o: File format not recognized
/usr/bin/nm: .libs/pygimp-parasite.o: File format not recognized
/usr/bin/nm: .libs/pygimp-pdb.o: File format not recognized
/usr/bin/nm: .libs/pygimp-tile.o: File format not recognized
/usr/bin/nm: .libs/pygimp-vectors.o: File format not recognized

[...]

/.libs -Wl,-rpath -Wl,/var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6/libgimpbase/.libs -L/var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6/libgimpconfig/.libs -L/var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6/libgimpmath/.libs -L/var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6/libgimpcolor/.libs -L/var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6/libgimpbase/.libs ../../libgimp/.libs/libgimp-2.0.so -L/usr/lib64 /var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6/libgimpconfig/.libs/libgimpconfig-2.0.so /var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6/libgimpmath/.libs/libgimpmath-2.0.so /var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6/libgimpcolor/.libs/libgimpcolor-2.0.so /var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6/libgimpbase/.libs/libgimpbase-2.0.so ../../libgimpcolor/.libs/libgimpcolor-2.0.so -lm ../../libgimpbase/.libs/libgimpbase-2.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libgthread-2.0.so -lpthread -lrt /usr/lib64/libglib-2.0.so  -march=nocona -pthread   -pthread -Wl,-soname -Wl,gimp.so -Wl,-version-script -Wl,.libs/gimp.ver -o .libs/gimp.so
/.usr/lib/libs/pygimp-image.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-pc-linux-gnu/bin/ld:.libs/_gimpenums.ver:2: syntax error in VERSION script
collect2: ld returned 1 exit status
make[4]: *** [gimp.la] Fehler 1
make[4]: *** Warte auf noch nicht beendete Prozesse...
make[4]: *** [_gimpenums.la] Fehler 1
make[4]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6/plug-ins/pygimp'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6/plug-ins/pygimp'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6/plug-ins'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/gimp-2.4.6/work/gimp-2.4.6'
make: *** [all] Fehler 2
 *
 * ERROR: media-gfx/gimp-2.4.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3186:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
Comment 2 Hanno Böck gentoo-dev 2008-06-16 15:00:43 UTC
I can't reproduce this on any machine. So I'm out of ideas what to do.
Comment 3 Andreas Stangl 2008-06-16 17:06:33 UTC
my problem is solved, I found some broken dependencies including graphviz and imagemagick. I just compiled gimp successfully :-))
Comment 4 Hanno Böck gentoo-dev 2008-06-16 20:06:35 UTC
I assumed something like this, hope this is fixed for everyone, else look out if your system is sane (emerge -uDN world; revdep-rebuild)