Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187359 - [fPIC] net-voip/yate-1.2.0 compile fails
Summary: [fPIC] net-voip/yate-1.2.0 compile fails
Status: RESOLVED DUPLICATE of bug 107648
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-08-01 10:57 UTC by Maciej Zielenkiewicz
Modified: 2007-08-01 11:02 UTC (History)
0 users

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

Patch for gsm-1.0 (gsm-1.0-pl10.patch,452 bytes, patch)
2007-08-01 10:58 UTC, Maciej Zielenkiewicz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Zielenkiewicz 2007-08-01 10:57:33 UTC
Problem description:
Freshly compiled media-sound/gsm won't link, giving error message which suggest to recompile libgsm.a with -fPIC. After emerging media-sound/gsm with LDFLAGS=-fPIC and CFLAGS=-fPIC avaerything works.

Emerge output:
# emerge -av yate

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] media-sound/gsm-1.0.10  0 kB 
[ebuild   R   ] net-voip/yate-1.2.0  USE="gsm gtk h323 -doc -ilbc-postgres -zaptel" 0 kB 


x86_64-pc-linux-gnu-g++ -Wall   -I../.. -I../.. -I./../yxml -I. -O2 -fno-check-new  -fno-exceptions -fPIC -DHAVE_GCC_FORMAT_CHECK  -c session.cpp
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libgsm.a(gsm_destroy.o): 
relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libgsm.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [gsmcodec.yate] Error 1
make[1]: *** Waiting for unfinished jobs....
ar rcs libyatejingle.a xmlparser.o xmpputils.o jbstream.o jbengine.o session.o jgengine.o
make[1]: Leaving directory `/var/tmp/portage/net-voip/yate-1.2.0/work/yate/contrib/yjingle'
make[1]: Entering directory `/var/tmp/portage/net-voip/yate-1.2.0/work/yate/contrib/ypbx'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/net-voip/yate-1.2.0/work/yate/contrib/ypbx'
make[1]: Entering directory `/var/tmp/portage/net-voip/yate-1.2.0/work/yate/contrib/yrtp'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/net-voip/yate-1.2.0/work/yate/contrib/yrtp'
make[1]: Entering directory `/var/tmp/portage/net-voip/yate-1.2.0/work/yate/contrib/ysip'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/net-voip/yate-1.2.0/work/yate/contrib/ysip'
make[1]: Entering directory `/var/tmp/portage/net-voip/yate-1.2.0/work/yate/contrib/yxml'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/net-voip/yate-1.2.0/work/yate/contrib/yxml'
make[1]: Leaving directory `/var/tmp/portage/net-voip/yate-1.2.0/work/yate/modules'
make: *** [modules] Error 2

!!! ERROR: net-voip/yate-1.2.0 failed.

Steps to reproduce:
USE=gsm emerge -av yate

Reproducible: always.

LDFLAGS=-fPIC CFLAGS=-fPIC emerge media-sound/gsm

Proposed solution:
Attached patch to Makefile which turns on -fPIC.
Comment 1 Maciej Zielenkiewicz 2007-08-01 10:58:17 UTC
Created attachment 126589 [details, diff]
Patch for gsm-1.0
Comment 2 Maciej Zielenkiewicz 2007-08-01 10:59:29 UTC
emerge --info

Portage (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.20-gentoo-r8 x86_64)
System uname: 2.6.20-gentoo-r8 x86_64 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 31 Jul 2007 21:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
CFLAGS="-O2 -pipe"
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 /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
FEATURES="collision-protect confcache distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userfetch"
LINGUAS="en pl de es ru"
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 --filter=H_**/files/digest-*"
USE="7zip X a52 aac aalib acl acpi aio alsa amd amd64 ao apache2 asf automount bash-completion berkdb binfilter bitmap-fonts bl bzip2 caps cdparanoia cdr chipcard chipcard2 chroot cli cracklib crypt cscope css csv cups dga directfb dri dts dv dvd dvdnav dvdr dvdread encode escreen examples exif expat fbcon ffmpeg fftw finger firefox flac foomaticdb fortran ft ftp gcj gd gdbm ggi gif gimp gimpprint gnome gnuplot gnutls gpm gs gtalk gtk gtk2 gzip h323 iconv idn ieee1394 ilbc image imagemagick imlib iproute2 ipv6 isdnlog jabber java javascript jbig jce jpeg jpeg2k kdeenablefinal libg++ linuxkeys live logrotate lzo math md5sum midi mjpeg mmap moznocompose moznoirc moznomail mozsvg mp3 mp4 mpeg mplayer mudflap multiuser ncurses nethack nls nntp nptl nptlonly nsplugin ntfs nvidia objc objc++ objc-gc ocaml ogg openexr opengl openmp opensslcrypt pam parse-clocks passfile passwordsave pcre pdf perl png postgres ppds pppd python quicktime quotas readline reflection rtc ruby samba sdl session silc slang smartcard smp sndfile speex spl sqlite sse-filters ssl svg sysfs syslog t1lib tcl tcltk tcpd tga theora threads tiff tk truetype truetype-fonts type1-fonts unicode unzip usb v4l v4l2 vim vim-pager vim-syntax vim-with-x vorbis wmf x264 xanim xfs xgetdefault xml xorg xpm xprint xv xvid xvmc zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl de es ru" USERLAND="GNU" VIDEO_CARDS="fbdev vesa i128 i810"

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-01 11:02:29 UTC

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