Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36843 - media-video/mjpegtools-1.6.1.91 doesn't emerge on amd64, possibly needs -fPIC ?
Summary: media-video/mjpegtools-1.6.1.91 doesn't emerge on amd64, possibly needs -fPIC ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 All
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-30 13:55 UTC by Danny van Dyk (RETIRED)
Modified: 2004-01-04 13:47 UTC (History)
1 user (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 Danny van Dyk (RETIRED) gentoo-dev 2003-12-30 13:55:39 UTC
Ok, there are several things:

1. mjpegtools has a USE-Flag "mmx". When set, this flag will lead to a dependancy of jpeg-mmx, which doen't emerge on amd64 as well (I will post this as well).
Thus I emerged mjpegtools with USE="-mmx" emerge mjpegtools. It configures without problems.

2. compiling mjpegtools fails with error:
g++ -shared -nostdlib /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.2/../../../crti.o /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.2/crtbeginS.o  .libs/conform.o .libs/elemstrmwriter.o .libs/encoderparams.o .libs/macroblock.o .libs/motionest.o .libs/mpeg2coder.o .libs/mpeg2encoptions.o .libs/mpeg2encoder.o .libs/picture.o .libs/picturereader.o .libs/predict.o .libs/putpic.o .libs/putseq.o .libs/quantize.o .libs/ratectl.o .libs/stats.o .libs/synchrolib.o .libs/tables.o .libs/transfrm.o .libs/writepic.o .libs/fdctref.o .libs/idct.o .libs/predict_ref.o .libs/quantize_ref.o .libs/transfrm_ref.o  -Wl,--rpath -Wl,/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.2 -Wl,--rpath -Wl,/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.2 -L/usr/x86_64-pc-linux-gnu/lib -L/usr/x86_64-pc-linux-gnu/bin ../utils/libcpuaccel.a ../utils/libmjpegutils.a ../utils/libmotion.a -L/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.2 -L/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.2/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.2/../../.. /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.2/libstdc++.so -lm -lc -lgcc_s /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.2/crtendS.o /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.2/../../../crtn.o  -mno-sse2 -Wl,-soname -Wl,libmpeg2encpp-1.6.so.0 -o .libs/libmpeg2encpp-1.6.so.0.1.1
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: ../utils/libcpuaccel.a(cpu_accel.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
../utils/libcpuaccel.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
Comment 1 Olivier Crete (RETIRED) gentoo-dev 2004-01-01 06:40:11 UTC
The mmx flag should be masked on amd64...  Does it build with CFLAGS="... -fPIC" emerge mjpegtools-... ?
Comment 2 Daniel Ahlberg (RETIRED) gentoo-dev 2004-01-02 12:55:59 UTC
In CVS, thanks!
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2004-01-04 13:47:46 UTC
thx guys, works for me now *G