pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

x264-devel build error



On NetBSD-5.99.59/amd64 with today's pkgsrc, when compiling
multimedia/x264-devel, I get

libtool  --mode=link \
gcc -o libx264.la -rpath /usr/pkg/lib -version-info 0 \
common/mc.lo common/predict.lo common/pixel.lo common/macroblock.lo 
common/frame.lo common/dct.lo common/cpu.lo common/cabac.lo common/common.lo 
common/osdep.lo common/rectangle.lo common/set.lo common/quant.lo 
common/deblock.lo common/vlc.lo common/mvpred.lo common/bitstream.lo 
encoder/analyse.lo encoder/me.lo encoder/ratecontrol.lo encoder/set.lo 
encoder/macroblock.lo encoder/cabac.lo encoder/cavlc.lo encoder/encoder.lo 
encoder/lookahead.lo common/threadpool.lo common/x86/mc-c.lo 
common/x86/predict-c.lo common/x86/const-a.lo common/x86/cabac-a.lo 
common/x86/dct-a.lo common/x86/deblock-a.lo common/x86/mc-a.lo 
common/x86/mc-a2.lo common/x86/pixel-a.lo common/x86/predict-a.lo 
common/x86/quant-a.lo common/x86/cpu-a.lo common/x86/dct-64.lo 
common/x86/bitstream-a.lo common/x86/sad-a.lo -L/usr/lib -Wl,-R/usr/lib 
-Wl,-R/usr/pkg/lib -lm -lpthread
libtool: link: gcc -shared  common/.libs/mc.o common/.libs/predict.o 
common/.libs/pixel.o common/.libs/macroblock.o common/.libs/frame.o 
common/.libs/dct.o common/.libs/cpu.o common/.libs/cabac.o 
common/.libs/common.o common/.libs/osdep.o common/.libs/rectangle.o 
common/.libs/set.o common/.libs/quant.o common/.libs/deblock.o 
common/.libs/vlc.o common/.libs/mvpred.o common/.libs/bitstream.o 
encoder/.libs/analyse.o encoder/.libs/me.o encoder/.libs/ratecontrol.o 
encoder/.libs/set.o encoder/.libs/macroblock.o encoder/.libs/cabac.o 
encoder/.libs/cavlc.o encoder/.libs/encoder.o encoder/.libs/lookahead.o 
common/.libs/threadpool.o common/x86/.libs/mc-c.o common/x86/.libs/predict-c.o 
common/x86/.libs/const-a.o common/x86/.libs/cabac-a.o common/x86/.libs/dct-a.o 
common/x86/.libs/deblock-a.o common/x86/.libs/mc-a.o common/x86/.libs/mc-a2.o 
common/x86/.libs/pixel-a.o common/x86/.libs/predict-a.o 
common/x86/.libs/quant-a.o common/x86/.libs/cpu-a.o common/x86/.libs/dct-64.o 
common/x86/.libs/bitstream-a.o common/x86/.libs/sad-a.o   -lm -lpthread 
-L/usr/pkgsrc/multimedia/x264-devel/work.x86_64/.buildlink/lib  
-Wl,-R/usr/pkg/lib   -Wl,-soname -Wl,libx264.so.0 -o .libs/libx264.so.0.0.0
ld: common/x86/.libs/cabac-a.o: relocation R_X86_64_PC32 against symbol 
`x264_cabac_range_lps' can not be used when making a shared object; recompile 
with -fPIC
ld: final link failed: Bad value
gmake: *** [libx264.la] Error 1

(gcc 4.5.3)

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index