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

Bug 141780

Summary: media-libs/gle-3.1.0 doesn't build on amd64
Product: Gentoo Linux Reporter: Paul Taylor <birder>
Component: [OLD] LibraryAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: amd64, drwook, jlp.bugs, ssuominen
Priority: High Keywords: InVCS
Version: 2006.0   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gle-3.1.0-amd64-skip-example.patch
gle-3.1.0.ebuild

Description Paul Taylor 2006-07-26 04:22:22 UTC
# emerge -u gle
Calculating dependencies... done!

>>> Emerging (1 of 1) media-libs/gle-3.1.0 to /
 * checking ebuild checksums ;-) ...                                    [ ok ]
 * checking auxfile checksums ;-) ...                                   [ ok ]
 * checking miscfile checksums ;-) ...                                  [ ok ]
 * checking gle-3.1.0.tar.gz ;-) ...                                    [ ok ]
>>> Unpacking source...
>>> Unpacking gle-3.1.0.tar.gz to /var/tmp/portage/gle-3.1.0/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/gle-3.1.0/work/gle-3.1.0 ...
[snip]
Making all in examples
make[2]: Entering directory `/var/tmp/portage/gle-3.1.0/work/gle-3.1.0/examples'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..   -I../src     -march=athlon64 -mtune=athlon64 -O3 -pipe -msse -msse2 -mfpmath=sse -fomit-frame-pointer -Wall -c alpha.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..   -I../src     -march=athlon64 -mtune=athlon64 -O3 -pipe -msse -msse2 -mfpmath=sse -fomit-frame-pointer -Wall -c mainjoin.c
/bin/sh ../libtool --mode=link x86_64-pc-linux-gnu-gcc  -march=athlon64 -mtune=athlon64 -O3 -pipe -msse -msse2 -mfpmath=sse -fomit-frame-pointer -Wall  -o alpha  alpha.o mainjoin.o -lgle -lglut -lXi -lXext -lXmu -lGLU -lGL  -L/usr/lib64 -lXt -lX11  -L../src/ -lm
mkdir .libs
x86_64-pc-linux-gnu-gcc -march=athlon64 -mtune=athlon64 -O3 -pipe -msse -msse2 -mfpmath=sse -fomit-frame-pointer -Wall -o alpha alpha.o mainjoin.o  /usr/lib64/libgle.so /usr/lib64/libglut.so -L/usr/lib64 /usr/lib64/libXxf86vm.so /usr/lib/libGLU.so -L/usr/lib /usr/lib64/libXmu.so /usr/lib64/libXi.so -lpthread /usr/lib64/opengl/nvidia/lib/libGL.so /usr/lib64/libXext.so /usr/lib64/libXt.so /usr/lib64/libSM.so /usr/lib64/libICE.so /usr/lib64/libX11.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl -L/var/tmp/portage/gle-3.1.0/work/gle-3.1.0/src -lm -Wl,--rpath -Wl,/usr/lib64 -Wl,--rpath -Wl,/usr/lib64/opengl/nvidia/lib -Wl,--rpath -Wl,/usr/lib64 -Wl,--rpath -Wl,/usr/lib64/opengl/nvidia/lib
alpha.o: In function `DrawStuff':
alpha.c:(.text+0x72): undefined reference to `glePolyCone_c4f'
alpha.c:(.text+0x8c): undefined reference to `glePolyCone_c4f'
collect2: ld returned 1 exit status
make[2]: *** [alpha] Error 1
make[2]: Leaving directory `/var/tmp/portage/gle-3.1.0/work/gle-3.1.0/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gle-3.1.0/work/gle-3.1.0'
make: *** [all-recursive-am] Error 2

!!! ERROR: media-libs/gle-3.1.0 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_compile
  ebuild.sh, line 940:   Called src_compile
  gle-3.1.0.ebuild, line 31:   Called die

!!! emake failed.
!!! If you need support, post the topmost build error, and the call stack if relevant.



# emerge --info
Portage 2.1.1_pre3-r5 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.1
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -mtune=athlon64 -O3 -pipe -msse -msse2 -mfpmath=sse -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -mtune=athlon64 -O3 -pipe -msse -msse2 -mfpmath=sse -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://bower/gentoo ftp://ftp.iinet.com.au/pub/Gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_AU"
LC_ALL="en_AU"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/portage-xgl"
SYNC="rsync://bower/gentoo-portage"
USE="amd64 X a52 aac acpi alsa arts audiofile bash-completion berkdb bitmap-fonts bzip2 bzlib cdparanoia cdr cdrom chroot cli crypt cups curl dlloader dmi dpms dri dts dv dvb dvd dvdr dvdread eds emboss encode exif expat fame fbcon ffmpeg flac foomaticdb fortran gdbm gif gimpprint glitz gpm gps gsl gstreamer gtk gtk2 hal idn imagemagick imap imlib ipv6 isdnlog jack java jpeg jpeg2k junit kde lcms lirc lm_sensors lzo lzw lzw-tiff mad mmap mng mp3 mpeg mpeg4 musepack musicbrainz ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl pam pcre pda pdflib perl pic png ppds pppd python qt qt3 qt4 quicktime readline reflection sdk sdl session slang sndfile speex spell spl sqlite ssl svg symlink tcpd test theora threads tiff truetype truetype-fonts type1-fonts usb userlocales vcd vim vorbis vorbis-psy wmf xcomposite xine xml xml2 xorg xpm xprint xscreensaver xv xvid xvmc yv12 zlib elibc_glibc input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_wacom kernel_linux lirc_devices_livedrive_midi userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Read 2006-07-26 04:23:31 UTC
Also fails with CFLAGS="-march=athlon64 -O2 -pipe" globally on ~amd64

Portage 2.1.1_pre3-r5 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: [Not Present]
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib alsa audiofile avi bitmap-fonts bzip2 ccache cdda cddb cdio cdr cli crypt css dbus dga dhcp dlloader dri dvd dvdr dvdread eds emboss encode ffmpeg firefox flac foomaticdb fortran gdbm gif glut glx gnome gpm gstreamer gtk gtk2 hal imlib isdnlog jack java javascript jikes jpeg kde kdeenablefinal kdehiddenvisibility lame libcaca logrotate lzw lzw-tiff mad mikmod mjpeg mono mp3 mpeg mpeg2 mpeg4 mplayer nas ncurses nls nptl nvidia offensive ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime rar rdesktop readline reflection sdl session sndfile spell spl ssl subtitles subversion svgz tcpd tga theora tiff tk transcode truetype truetype-fonts type1-fonts usb vcd vcdimager videos vorbis wma123 wmf wxgtk1 xml xmms xorg xpm xscreensaver xv xvid xvmc yv12 zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en_GB userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa video_cards_none"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2006-07-26 05:18:20 UTC
It's obviously not compiling with amd64 but works on x86. I'm mailing upstream but unfortunately I don't have hardware to replicate this bug.

I recommend changing ~amd64 to -amd64 or dropping whole keyword from 3.1.0 for time being because this library is old (but latest available) and there haven't been changes in upstream CVS for 2-3 years so getting a fix for this might take a while.

This package is used for OpenGL xscreensavers.
Comment 3 Peter Read 2006-07-26 05:30:35 UTC
I'm happy to test anything.  Might even crack open the code myself but a little tucked up for the next 48hrs or so...
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2006-07-26 05:41:48 UTC
Created attachment 92775 [details, diff]
gle-3.1.0-amd64-skip-example.patch

This patch skips building the example alpha.c it's failing on, it doesn't effect the actual library.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2006-07-26 05:42:33 UTC
Created attachment 92776 [details]
gle-3.1.0.ebuild

ebuild using gle-3.1.0-amd64-skip-example.patch
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2006-07-26 05:43:05 UTC
(In reply to comment #3)
> I'm happy to test anything.  Might even crack open the code myself but a little
> tucked up for the next 48hrs or so...
> 

Want to try above patch w/ ebuild?
Comment 7 Peter Read 2006-07-26 06:00:28 UTC
Yeah, compiles cleanly with that patch/ebuild.  
Comment 8 Paul Taylor 2006-07-26 06:21:49 UTC
(In reply to comment #7)
> Yeah, compiles cleanly with that patch/ebuild.  

Agreed.  xscreensaver-5.00 also built cleanly against it (it was the only package reported by "equery depends gle")  The glsnake screensaver appears to use alpha transparency, so there doesn't appear to be any hidden breakages.
Comment 9 Patrick McLean gentoo-dev 2006-07-26 06:25:38 UTC
Patch added to CVS, thanks.
Comment 10 Paul Taylor 2006-07-26 06:28:08 UTC
(In reply to comment #8)
> The glsnake screensaver appears to use alpha transparency, so there doesn't
> appear to be any hidden breakages.

Actually, that's bunk - the only screensaver using libgle.so is "extrusion".  It work, though.

Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2006-07-26 06:53:33 UTC
Thanks for testing guys.. and commit of course.