Hello,
I got this problem building this one port multimedia/gstreamer1-libav
Some reading on the net show it is a problem with linker and compiler, exactly with the ldd funcion.
I read about many bugs tickets opened for this problem, and it seems now fixed.
I also read there is a workaround to apply on ports that still dowsn't build.
Then I didn't understand what to do.
Some help?
I got this problem building this one port multimedia/gstreamer1-libav
Code:
ld: error: can't create dynamic relocation R_386_32 against symbol: ff_pw_8 in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /ports/multimedia/gstreamer1-libav/work/gst-libav-1.14.4/gst-libs/ext/.libs/libavcodec.a(constants.o)
>>> referenced by libavcodec/x86/h264_intrapred_10bit.asm
>>> h264_intrapred_10bit.o:(.text+0xE9D) in archive /ports/multimedia/gstreamer1-libav/work/gst-libav-1.14.4/gst-libs/ext/.libs/libavcodec.a
ld: error: can't create dynamic relocation R_386_32 against symbol: ff_pw_1 in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /ports/multimedia/gstreamer1-libav/work/gst-libav-1.14.4/gst-libs/ext/.libs/libavcodec.a(constants.o)
>>> referenced by libavcodec/x86/h264_intrapred_10bit.asm
>>> h264_intrapred_10bit.o:(.text+0xF95) in archive /ports/multimedia/gstreamer1-libav/work/gst-libav-1.14.4/gst-libs/ext/.libs/libavcodec.a
ld: error: can't create dynamic relocation R_386_32 against symbol: ff_pw_8 in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /ports/multimedia/gstreamer1-libav/work/gst-libav-1.14.4/gst-libs/ext/.libs/libavcodec.a(constants.o)
>>> referenced by libavcodec/x86/h264_intrapred_10bit.asm
>>> h264_intrapred_10bit.o:(.text+0xFAE) in archive /ports/multimedia/gstreamer1-libav/work/gst-libav-1.14.4/gst-libs/ext/.libs/libavcodec.a
ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[5]: *** [Makefile:577: libgstlibav.la] Error 1
gmake[5]: uscita dalla directory "/ports/multimedia/gstreamer1-libav/work/gst-libav-1.14.4/ext/libav"
gmake[4]: *** [Makefile:469: all-recursive] Error 1
gmake[4]: uscita dalla directory "/ports/multimedia/gstreamer1-libav/work/gst-libav-1.14.4/ext"
gmake[3]: *** [Makefile:546: all-recursive] Error 1
gmake[3]: uscita dalla directory "/ports/multimedia/gstreamer1-libav/work/gst-libav-1.14.4"
gmake[2]: *** [Makefile:477: all] Error 2
gmake[2]: uscita dalla directory "/ports/multimedia/gstreamer1-libav/work/gst-libav-1.14.4"
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make[1]: stopped in /ports/multimedia/gstreamer1-libav
*** Error code 1
Some reading on the net show it is a problem with linker and compiler, exactly with the ldd funcion.
I read about many bugs tickets opened for this problem, and it seems now fixed.
I also read there is a workaround to apply on ports that still dowsn't build.
Then I didn't understand what to do.
Some help?