Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77439 - openh323 doesn't compile... -fpic problem
Summary: openh323 doesn't compile... -fpic problem
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 83369
  Show dependency tree
 
Reported: 2005-01-10 15:42 UTC by Georges Toth
Modified: 2005-06-11 17:11 UTC (History)
0 users

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 Georges Toth 2005-01-10 15:42:36 UTC
When i try to emerge openh323... the process stops with a weird error. i then ran a manual compile, and got an -fpic error.
See below for details:

......
3-1.13.2-r1/work/openh323/lib/obj_linux_x86_64_r/p64encoder.o  /var/tmp/portage/openh323-1.13.2-r1/work/openh323/lib/obj_linux_x86_64_r/transmitter.o  /var/tmp/portage/openh323-1.13.2-r1/work/openh323/lib/obj_linux_x86_64_r/vid_coder.o  /var/tmp/portage/openh323-1.13.2-r1/work/openh323/lib/obj_linux_x86_64_r/ffh263codec.o  /var/tmp/portage/openh323-1.13.2-r1/work/openh323/lib/obj_linux_x86_64_r/h235.o -lpt_linux_x86_64_r -lavcodec   -lpthread -lldap -lldap_r -llber -lssl -lcrypto -lexpat -lSDL -lresolv -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/openh323-1.13.2-r1/work/openh323/lib/obj_linux_x86_64_r/code.o: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
/var/tmp/portage/openh323-1.13.2-r1/work/openh323/lib/obj_linux_x86_64_r/code.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/openh323-1.13.2-r1/work/openh323/lib/libh323_linux_x86_64_r.so.1.13.2] Error 1
make[2]: Leaving directory `/var/tmp/portage/openh323-1.13.2-r1/work/openh323/src'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/var/tmp/portage/openh323-1.13.2-r1/work/openh323'
make: *** [optshared] Error 2


What i saw as well during the compile process, is that -Os was using at some places....

hope this helps?

Reproducible: Always
Steps to Reproduce:
1. merge openh323 on a amd64 platform

Actual Results:  
got some errors while compiling
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-11 10:50:10 UTC
please provide the output of 'emerge info' , would be a great help. thank you.
Comment 2 Georges Toth 2005-01-11 11:38:23 UTC
Here's my emerge info output:
-----------------------------

Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3500+
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.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r2
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-mtune=k8 -march=athlon64 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/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/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=k8 -march=athlon64 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache digest distlocks sandbox userpriv"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://mirror.switch.ch/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aalib acpi alsa arts artswrappersuid berkdb bitmap-fonts cdr crypt cups dvd esd f77 fam flac fortran gif gphoto2 gpm gtk imagemagick imlib ipv6 jp2 jpeg kde ldap lzw lzw-tiff motif multilib mysql ncurses network nls nptl nvidia oggvorbis opengl oss pam pcmcia pdflib perl png python qt readline samba sdl ssl tcpd tiff truetype truetype-fontstype1-fonts usb userlocales xml xml2 xmms xpm xrandr xv zlib"
Comment 3 Joshua Hoblitt 2005-05-22 03:15:07 UTC
openh323-1.13.2-r2 and openh323-1.15.3 compile fine for me amd64 (2005.0).  Does
this error still occur with 1.13.2-r2?
Comment 4 Danny van Dyk (RETIRED) gentoo-dev 2005-06-11 17:11:04 UTC
phi portage # genlop openh323
 * net-libs/openh323

     Tue Mar 23 20:45:47 2004 >>> net-libs/openh323-1.13.2-r1
     Thu Mar 25 02:45:04 2004 >>> net-libs/openh323-1.13.2-r1
     Sat Aug 14 00:01:28 2004 >>> net-libs/openh323-1.13.2-r1
     Sat Aug 14 00:13:11 2004 >>> net-libs/openh323-1.13.5

WORKSFORME