Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68567 - a52dec compile: BAD GLOBAL SYMBOLS
Summary: a52dec compile: BAD GLOBAL SYMBOLS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-22 09:53 UTC by Todd Walton
Modified: 2006-02-13 13:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch removing -fPIC (a52dec-0.7.4.ebuild.patch,312 bytes, patch)
2004-10-23 18:07 UTC, Brant Gurganus
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Todd Walton 2004-10-22 09:53:53 UTC
!!! ERROR: media-libs/a52dec-0.7.4 failed.
!!! Function src_test, Line 520, Exitcode 0

When I try to emerge a52dec I get the below error message.  It won't compile because of "bad global symbols".

Reproducible: Always
Steps to Reproduce:
1. 'emerge a52dec'

Actual Results:  
BAD GLOBAL SYMBOLS:
__i686.get_pc_thunk.bx
__i686.get_pc_thunk.bx
__i686.get_pc_thunk.bx
__i686.get_pc_thunk.cx
__i686.get_pc_thunk.bx
__i686.get_pc_thunk.bx
FAIL: globals
===================
1 of 1 tests failed
===================


Expected Results:  
Compiled, of course.

Portage 2.0.51-r2 (default-x86-2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.7-ck1 i686)
=================================================================
System uname: 2.6.7-ck1 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /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=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs candy ccache distlocks maketest sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X aalib aavm acpi acpi4linux alsa apache2 apm arts avi
bitmap-fonts bzlib cddb cdr chroot crypt cups dba dga directfb divx4linux doc
encode esd evo f77 fbcon fbdev flac foomaticdb freetype gcj gd gdbm ggi gif gimp
gimpprint ginac gnome gnuplot gpm gtk gtk2 icc imagemagick imlib jabber java
javascript jbig jce jikes jp2 jpeg kde libcaca libedit libg++ libwww live mad
maildir mikmod mmx mmx2 mng monkey motif mozilla moznomail mozsvg mozxmlterm mp3
mpeg mpeg4mplayer mysql nas ncurses network nocd ntlm oggvorbis opengl operanom2
oss pam pdflib perl pic pie plotutils png ppds python qt quicktime rtc ruby sdl
skey slang spell sse sse2 ssl static stencil-buffer svg svga tcpd tetex theora
truetype type1 unicode v4l v4l2 videos wmf x86 xml xml2 xmms xosd xprint xv xvid
xvmc zlib"
Comment 1 Brant Gurganus 2004-10-23 17:59:07 UTC
This test failed for me as well.  I traced the failure to the "-fPIC" flag that the ebuild adds.  Once that flag is removed the ebuild builds successfully.  That flag was added to the ebuild by vapier@gentoo.org for HPPA support according to CVS.

http://www.gentoo.org/cgi-bin/viewcvs.cgi/media-libs/a52dec/a52dec-0.7.4.ebuild?annotate=1.11
Comment 2 Brant Gurganus 2004-10-23 18:07:15 UTC
Created attachment 42467 [details, diff]
Patch removing -fPIC

This patch works on x86 to allow the test to pass.  I do not have other
platforms, specifically HPPA to try it on.
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-23 21:23:32 UTC
-fPIC is required for the shared library to be built correctly... This looks like it's going to need Makefile fudgery...
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-11-05 01:17:28 UTC
-r3 fixes compilation.
Comment 5 Michal Suchanek 2006-02-13 13:09:30 UTC
-r5 breaks it again

Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.6-r2, 2.6.15-gentoo-src i686)
=================================================================
System uname: 2.6.15-gentoo-src i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
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.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -mfpmath=sse -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /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 -mfpmath=sse -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks maketest nostrip sandbox sfperms strict test"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac acpi aim alsa apache2 audiofile avi bcmath berkdb bitmap-fonts bzip2 caps cdb cdparanoia cdr cpdflib crypt cscope ctype cups curl dbus dbx debug dedicated dga dio dlloader doc dri dts dv dvb dvd dvdr dvdread emboss encode erandom esd ethereal examples exif expat fam fbcon ffmpeg flac flash flatfile fontconfig foomaticdb fortran ftp gb gcj gd gdbm ggi gif ginac glibc-omitfp glut gmp gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal hardened howl iconv icq idn ieee1394 imagemagick imap imlib inifile ipv6 jabber javascript jpeg kdexdeltas kerberos lcms ldap libg++ libwww linuxthreads-tls live lm_sensors lua lzo mad maildir matroska matrox mbox mikmod mime ming mmap mmx mmxext mng motif mozilla mp3 mpeg msn multislot nas ncurses nls nptl nptlonly nsplugin offensive ogg oggvorbis openal opengl osc oscar oss pam pcntl pcre pdflib perl png ppds python quicktime readline real recode rtc ruby samba sasl sdl session sharedmem shorten skey slp sndfile snmp sockets sox speex spell sqlite sse ssl svg sysvipc tcltk tcpd test tetex theora threads tidy tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l vcd videos vorbis wifi win32codecs wmf xanim xface xml xml2 xmms xosd xpm xprint xv xvid xvmc yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY