[mythtv] Re: Mythtv CVS on AMD64 wants -fPIC

Doug Goldstein cardoe at gmail.com
Sat Nov 27 14:00:53 UTC 2004


AFAIK, AMD64 pretty much across the board requires you to inject -fPIC
into every compilation. Probably wouldn't be a bad thing to add to the
build system.


On Sat, 27 Nov 2004 10:34:36 +0100, Axel Thimm <axel.thimm at atrpms.net> wrote:
> On Fri, Nov 26, 2004 at 11:43:11AM +0100, Rutger Hendriks wrote:
> > current CVS of mythtv fails to compile the libavcodec directory
> > it complains about:
> > postprocess.o: relocation R_X86_64_32S against `a local symbol' can not be
> > used when making a shared object; recompile with -fPIC
> > postprocess.o: could not read symbols: Bad value
> 
> > I've tried placing -fPIC at every location I could think of, but the problem
> > remained, so I must be forgetting something.
> 
> Same thing here, here is my build output (which _does_ -fPIC) from CVS
> a few seconds ago. CVS from the 16th builds fine. There was a resync
> with ffmpeg on the 18th, which seems to be the cause.
> 
> gcc -c -pipe -w -O3 -fomit-frame-pointer -O2 -g -pipe -m64 -O3 -Wall -O2 -g -pipe -m64 -DPIC -fPIC -fomit-frame-pointer -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -D_REENTRANT  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DMMX -DCONFIG_VIDEO4LINUX -DUSING_IVTV -DUSING_OSS -DUSING_DVB -DUSING_XVMC -DUSING_XRANDR -DHAVE_XVMC -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/lib64/qt-3.3/mkspecs/default -I. -I../.. -I/usr/lib64/qt-3.3/include -o postprocess.o libpostproc/postprocess.c
> [...]
> g++ -shared -Wl,-soname,libmythavcodec-0.16.so.0 -o libmythavcodec-0.16.so.0.16.0 common.o utils.o mem.o allcodecs.o mpegvideo.o h263.o jrevdct.o jfdctfst.o mpegaudio.o ac3enc.o mjpeg.o audresample.o dsputil.o motion_est.o imgconvert.o imgresample.o msmpeg4.o mpeg12.o h263dec.o svq1.o rv10.o mpegaudiodec.o pcm.o simple_idct.o ratecontrol.o adpcm.o eval.o jfdctint.o dv.o error_resilience.o wmadec.o fft.o mdct.o mace.o huffyuv.o opts.o cyuv.o golomb.o h264.o raw.o indeo3.o asv1.o vp3.o 4xm.o cabac.o ra144.o ra288.o vcr1.o cljr.o roqvideo.o dpcm.o tscc.o interplayvideo.o xan.o rpza.o cinepak.o msrle.o msvideo1.o vqavideo.o idcinvideo.o adx.o rational.o faandct.o snow.o sonic.o 8bps.o parser.o smc.o flicvideo.o truemotion1.o vmdav.o lcl.o qtrle.o g726.o flac.o vp3dsp.o integer.o h261.o resample2.o h264idct.o png.o pnm.o qdrw.o qpeg.o rangecoder.o ulti.o xl.o postprocess.o a52dec.o bit_allocate.o bitstream.o downmix.o imdct.o parse.o crc.o resample.o xvmcvideo.o fdct_mmx.o cputest.o dsputil_mmx.o mpegvideo_mmx.o idct_mmx.o motion_est_mmx.o simple_idct_mmx.o fft_sse.o vp3dsp_mmx.o vp3dsp_sse2.o   -L/usr/lib64/qt-3.3/lib -L/usr/X11R6/lib64 -lqt-mt -lXext -lX11 -lm -lpthread
> /usr/bin/ld: postprocess.o: relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
> postprocess.o: could not read symbols: Bad value
> --
> Axel.Thimm at ATrpms.net
> 
> 
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> 
> 
> 
>


More information about the mythtv-dev mailing list