Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107648 - net-misc/yate trying to use gsm as shared lib when it is static
Summary: net-misc/yate trying to use gsm as shared lib when it is static
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 187359 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-29 14:59 UTC by Wayne
Modified: 2007-08-01 11:02 UTC (History)
3 users (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 Wayne 2005-09-29 14:59:01 UTC
Yate fails on the amd64 because -fPIC cflag is not envoked. I suggest it gets
added to ensure cross platform compatability.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.


Expected Results:  
Compile
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-29 15:01:35 UTC
So what ebuild are you talking about; yate or gsm?
Comment 2 Wayne 2005-09-30 01:04:30 UTC
gsm
Comment 3 Wayne 2005-10-04 00:44:23 UTC
The change is applicable to the gsm ebuild
Comment 4 Simon Stelling (RETIRED) gentoo-dev 2005-10-04 03:50:02 UTC
which version are you talking about? gsm-1.0.10 works fine here. also, please
post your emerge --info
Comment 5 Wayne 2005-10-04 06:45:46 UTC
I assume its for all versions. gsm works fine without -fPIC but cannot be linked
against from an x86_64 system.



sudo emerge --info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2
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.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk
ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://gentoo.mirror.icd.hu/
ftp://gentoo.blueyonder.co.uk/mirrors/gentoo http://gentoo.seren.com/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa apache2 avi bash-completion berkdb bitmap-fonts
browserplugin bzip2 bzlib calendar cdb cdda cddb cdparanoia cdr clamav clamd
cpudetection crypt css cups curl dbase directfb doc dvd dvdr dvdread eds emboss
encode esd examples exif fam firefox flac flash foomaticdb fortran gd gdbm gif
gimpprint gkrellm gnome gphoto2 gpm gps gsm gstreamer gtk gtk2 httpd imagemagick
imlib ipv6 java javacomm jpeg jpeg2k junit kde kerberos ldap libwww lm_sensors
lzw lzw-tiff mad maildir mime motif mozilla mp3 mpeg mpeg4 mpi mplayer msn mysql
ncurses nls nptl nvidia oav odbc offensive ogg oggvorbis opengl pam pdflib perl
png posix ppds python qt quicktime readline real reiserfs samba scanner sdl sftp
speex spell sqlite ssl tcltk tcpd tetex threads tiff transcode truetype
truetype-fonts type1-fonts usb userlocales utf8 videos vorbis xgetdefault xine
xml xml2 xmlrpc xmms xpm xprint xscreensaver xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 6 Wayne 2005-10-04 08:33:53 UTC
Check out the following link for more info...
http://dev.gentoo.org/~plasmaroo/devmanual//archs/amd64/
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-04 08:44:34 UTC
Considering that Simon wrote that part, I think he knows it. 
 
Can you paste the error log? 
 
Comment 8 Simon Stelling (RETIRED) gentoo-dev 2005-10-04 12:36:57 UTC
(In reply to comment #5)
> I assume its for all versions. gsm works fine without -fPIC but cannot be linked
> against from an x86_64 system.

right, now i got what you wanted to say

(In reply to comment #7)
> Considering that Simon wrote that part, I think he knows it. 

One should think so, but who knows? ;)
Comment 9 Danny van Dyk (RETIRED) gentoo-dev 2005-11-06 07:25:05 UTC
Wayne: Please tell us which application does not link against gsm. Libraries w/o
-fPIC are totally fine as long as they are static (which is true for
media-sound/gsm), so in this case the application you're trying to compile is
bogus.

NEEDINFO
Comment 10 Wayne 2005-11-06 09:14:23 UTC
As previously stated I'm trying to compile Yate 0.9.0. The following are the
errors that I receive. 

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld:
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/libgsm.a(code.o):
relocation R_X86_64_32S against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../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....
make -C ./test all

These errors are fixed by recompiling gsm with -FPIC.
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-04 23:39:19 UTC
I've tried to fix gsm in the past, but there's no way to do so. AMD64, please check if yate needs gsmlib and fails for PIC, it should be -amd64 instead.
gsm is dead upstream.
Comment 12 Simon Stelling (RETIRED) gentoo-dev 2007-01-14 04:57:50 UTC
use flag is masked now, consider this fixed
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2007-08-01 11:02:29 UTC
*** Bug 187359 has been marked as a duplicate of this bug. ***