You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
relocations against read-only sections tends to be an indication of non-PIC code -- especially where that code is assembler, as I presume that is given the file name. Ideally, you'd fix the code, but -ztextoff or -ztextwarn should allow you to proceed.
The complaint about -Bsymbolic seems legitimate to me. What are you hoping it will do for you?
I am just doing a bmake to compile multimedia/x265 pkgsrc package, and my expectation is that it compile correctly and cleanly. Currently SmartOS pkg doesn't distribute the binary, but pkgsrc contains the source ready to be compiled. Most of the time this is because licensing, patents, etc. Check the situation, for instance, with "mplayer".
The usual approach is for the user to compile the code personally, but in this case (x265) it doesn't work.
The workaround is to kill the source/CMakeLists.txt line that adds "-Wl,-Bsymbolic,-znoexecstack" to make things work for the Illumos linker, and add -DENABLE_ASSEMBLY=OFF to CMAKE_ARGS to avoid the relocations problem.
Activity
richlowe commentedon Jan 21, 2017
relocations against read-only sections tends to be an indication of non-PIC code -- especially where that code is assembler, as I presume that is given the file name. Ideally, you'd fix the code, but
-ztextoffor-ztextwarnshould allow you to proceed.The complaint about
-Bsymbolicseems legitimate to me. What are you hoping it will do for you?jcea commentedon Jan 22, 2017
I am just doing a
bmaketo compilemultimedia/x265pkgsrc package, and my expectation is that it compile correctly and cleanly. Currently SmartOS pkg doesn't distribute the binary, but pkgsrc contains the source ready to be compiled. Most of the time this is because licensing, patents, etc. Check the situation, for instance, with "mplayer".The usual approach is for the user to compile the code personally, but in this case (
x265) it doesn't work.My expectation is to
bmaketo success.mamash commentedon Jan 22, 2017
There are likely silly expectations about the build toolchain in the x265 Makefiles , e.g. GNU linker is assumed.
mamash commentedon Jan 22, 2017
The workaround is to kill the source/CMakeLists.txt line that adds "-Wl,-Bsymbolic,-znoexecstack" to make things work for the Illumos linker, and add -DENABLE_ASSEMBLY=OFF to CMAKE_ARGS to avoid the relocations problem.
richlowe commentedon Jan 22, 2017
Presuming the hand-rolled assembler is actually beneficial, I'd recommend
-ztextoffrather than disabling its use.mamash commentedon Feb 13, 2017
Fix from the linked PR committed to pkgsrc trunk.
Add support for the Sun linker. Fixes joyent/pkgsrc/issues/455 on SunOS.
Update ruby-thor to 0.19.4.
Update devel/py-tox to 2.7.0.