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

Bug 79097

Summary: xawtv doesn't compile because of "error: PIC register `%ebx' clobbered in `asm'"
Product: Gentoo Linux Reporter: Thomas Schweikle <tps>
Component: Current packagesAssignee: Television related Applications in Gentoo's Portage <media-tv>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Schweikle 2005-01-22 08:11:15 UTC
libng/contrib-plugins/linear-blend.c: In function `frame':
libng/contrib-plugins/linear-blend.c:43: error: PIC register `%ebx' clobbered in `asm'
make: *** [libng/contrib-plugins/linear-blend.o] Error 1

Reproducible: Always
Steps to Reproduce:
1. emerge media-tv/xawtv
Actual Results:  
Compile fails.

Expected Results:  
Compile and install xawtv

Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20040808-r1,
2.4.28-gentoo-r5 i686)
=================================================================
System uname: 2.4.28-gentoo-r5 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/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="-march=pentium2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages notitles sandbox
sfperms"
GENTOO_MIRRORS="http://hazel.tps/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/tps/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups encode
esd f77 fam flac font-server foomaticdb fortran gdbm gif gpm gtk gtk2
imagemagick imlib ipv6 java jpeg junit kde libg++ libwww mad mikmod motif
mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline sdl slang snmp speex spell ssl svga tcltk tcpd tetex tiff
truetype truetype-fonts type1-fonts xml xml2 xmms xv zlib linguas_de linguas_en
linguas_fr"
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2005-01-23 22:40:57 UTC
what version of xawtv? Granted I personally don't use this program. So we'll see how much help I can be. This looks like an upstream issue for sure.
Comment 2 Thomas Schweikle 2005-01-25 01:56:59 UTC
media-tv/xawtv-3.86-r2
Comment 3 Thomas Schweikle 2005-01-25 01:59:37 UTC
For me it doesn't look like an upstream problem. After recompiling everything with the new gcc 3.4.x the error changed:
console/fs.o(.text+0x692): In function `fs_connect':
: undefined reference to `FSOpenServer'
console/fs.o(.text+0x6c5): In function `fs_connect':
: undefined reference to `FSServerName'
console/fs.o(.text+0x700): In function `fs_connect':
: undefined reference to `FSServerName'
console/fs.o(.text+0x7a2): In function `fs_open':
: undefined reference to `FSListFonts'
console/fs.o(.text+0x818): In function `fs_open':
: undefined reference to `FSOpenBitmapFont'
console/fs.o(.text+0x825): In function `fs_open':
: undefined reference to `FSFreeFontNames'
console/fs.o(.text+0x88f): In function `fs_open':
: undefined reference to `FSQueryXInfo'
console/fs.o(.text+0x8c5): In function `fs_open':
: undefined reference to `FSQueryXExtents16'
console/fs.o(.text+0x900): In function `fs_open':
: undefined reference to `FSQueryXBitmaps16'
collect2: ld returned 1 exit status
make: *** [console/fbtv] Error 1

It seems to be related to some incorrect setup within gentoo.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2005-01-25 06:24:52 UTC
Include the ld & gcc lines that preceed this error. That newest error is caused by the Makefile not having the proper -L and -l settings.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2005-01-25 07:17:10 UTC

*** This bug has been marked as a duplicate of 75251 ***