Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72971 - mjpegtools-1.6.2-r3 failes to compile on my amd64
Summary: mjpegtools-1.6.2-r3 failes to compile on my amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-30 14:53 UTC by Jonny Heggheim
Modified: 2005-02-07 05:30 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 Jonny Heggheim 2004-11-30 14:53:54 UTC
Making install in mplex
make[1]: Entering directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/mplex'
make[2]: Entering directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/mplex'
/bin/sh ../mkinstalldirs /var/tmp/portage/mjpegtools-1.6.2-r3/image//usr/lib
 /bin/sh ../libtool --mode=install /bin/install -c  libmplex2.la /var/tmp/portage/mjpegtools-1.6.2-r3/image//usr/lib/libmplex2.la
libtool: install: warning: relinking `libmplex2.la'
(cd /var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/mplex; /bin/sh ../libtool --mode=relink x86_64-pc-linux-gnu-g++ -march=athlon64 -O2 -pipe -fomit-frame-pointer -o libmplex2.la -rpath /usr/lib -version-info 2:2:2 -release 1.6 -export-dynamic libmplex2_la-ac3strm_in.lo libmplex2_la-audiostrm_out.lo libmplex2_la-bits.lo libmplex2_la-buffer.lo libmplex2_la-dtsstrm_in.lo libmplex2_la-inputstrm.lo libmplex2_la-interact.lo libmplex2_la-lpcmstrm_in.lo libmplex2_la-mpastrm_in.lo libmplex2_la-multiplexor.lo libmplex2_la-padstrm.lo libmplex2_la-stillsstream.lo libmplex2_la-stream_params.lo libmplex2_la-systems.lo libmplex2_la-vector.lo libmplex2_la-videostrm_in.lo libmplex2_la-videostrm_out.lo ../utils/libmjpegutils.la -inst-prefix-dir /var/tmp/portage/mjpegtools-1.6.2-r3/image/)
x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../crti.o /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/crtbeginS.o  .libs/libmplex2_la-ac3strm_in.o .libs/libmplex2_la-audiostrm_out.o .libs/libmplex2_la-bits.o .libs/libmplex2_la-buffer.o .libs/libmplex2_la-dtsstrm_in.o .libs/libmplex2_la-inputstrm.o .libs/libmplex2_la-interact.o .libs/libmplex2_la-lpcmstrm_in.o .libs/libmplex2_la-mpastrm_in.o .libs/libmplex2_la-multiplexor.o .libs/libmplex2_la-padstrm.o .libs/libmplex2_la-stillsstream.o .libs/libmplex2_la-stream_params.o .libs/libmplex2_la-systems.o .libs/libmplex2_la-vector.o .libs/libmplex2_la-videostrm_in.o .libs/libmplex2_la-videostrm_out.o  -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4 -L/usr/x86_64-pc-linux-gnu/lib -L/usr/x86_64-pc-linux-gnu/bin -L/var/tmp/portage/mjpegtools-1.6.2-r3/image//usr/lib -L/usr/lib -lmjpegutils -L/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4 -L/usr/lib/gcc/x86_64-pc-linux-gnu/3.3.4 -L/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../.. -L/var/tmp/portage/mjpegtools-1.6.2-r3/image//usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/crtendS.o /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../crtn.o  -march=athlon64 -Wl,-soname -Wl,libmplex2-1.6.0 -o .libs/libmplex2-1.6.0.2.2
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/mjpegtools-1.6.2-r3/image//usr/lib/libmjpegutils.a(mjpeg_logging.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/var/tmp/portage/mjpegtools-1.6.2-r3/image//usr/lib/libmjpegutils.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
libtool: install: error: relink `libmplex2.la' with the above command before installing it
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/mplex'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.2-r3/work/mjpegtools-1.6.2/mplex'
make: *** [install-recursive] Error 1


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




Portage 2.0.51-r3 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20041102-r0, 
2.6.9-gentoo-r6 x86_64) 
================================================================= 
System uname: 2.6.9-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 2800+ 
Gentoo Base System version 1.6.6 
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/linux26-headers-2.6.8.1-r1 
Libtools: sys-devel/libtool-1.5.10 
ACCEPT_KEYWORDS="amd64 ~amd64" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer" 
CHOST="x86_64-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/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=athlon64 -O2 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs candy ccache distlocks" 
GENTOO_MIRRORS="http://mirror.gentoo.no/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.gentoo.no/gentoo-portage" 
USE="X Xaw3d aalib acpi alsa amd64 apache2 apm arts audiofile avi berkdb bidi 
bitmap-fonts bzlib cdparanoia crypt cups curl db2 dbase dga directfb 
divx4linux doc dvd dvdread encode esd f77 faad flac flash foomaticdb fortran 
ftp gdbm gif gnokii gnome gphoto2 gpm gps gstreamer gtk gtk2 guile imap imlib 
innodb interbase ipv6 jabber jack java jpeg jpeg2k junit kde kerbos krb64 l2 
libcaca libg++ libwww lzo mad mikmod mime ming mng motif mozilla mpeg mpeg4 
msn mysql mysqli ncurses network nls nocd nogcj nptl nvidia oci8oggvorbis 
opengl oracle oracle7 oss pam pdflib perl php pic png pnp postgres povray 
python qt quicktime readline samba sapdb sdl slang sockets socks5 speex spell 
spl ssl svg szip tcltk tcpd tetex tga theora tiff truetype trusted unicode usb 
videos wmf xanim xine xinerama xml xml2 xmms xmxs xosd xpm xscreensaver xv 
xvid xvmc zlib"
Comment 1 Joerg Plate 2004-12-05 11:32:44 UTC
This just happened to me, too.
Comment 2 Joerg Plate 2004-12-07 02:35:11 UTC
Adding "-fPIC" to CFLAGS in /etc/make.conf helps in installing it,
but i haven't tested if it works afterwards...
Comment 3 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-19 13:44:50 UTC
there is an fPIC patch in the tree for 1.6.2, is this bug still valid ?
Comment 4 Jan Brinkmann (RETIRED) gentoo-dev 2005-02-07 05:30:42 UTC
closing since the ebuild applies an fPIC patch, feel free to reopen this one if this is still an problem. it works fine for me, though (i'm on amd64, too)