Compiling from ports/HEAD ports-mgmt/pkg leads to an error: CC libpkg_static_la-scripts.lo CC libpkg_static_la-utils.lo CC libpkg_static_la-plugins.lo CC libpkg_static_la-pkg_old.lo CC libpkg_static_la-merge3.lo CC libpkg_static_la-diff.lo CC libpkg_static_la-elfhints.lo CC libpkg_static_la-pkg_elf.lo CCLD libpkg.la /usr/bin/ld: /usr/lib/libelf.a(gelf_dyn.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/libelf.a: could not read symbols: Bad value cc: error: linker command failed with exit code 1 (use -v to see invocation) *** [libpkg.la] Error code 1 make[5]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2/libpkg 1 error make[5]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2/libpkg *** [all-recursive] Error code 1 make[4]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2/libpkg 1 error make[4]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2/libpkg *** [all-recursive] Error code 1 make[3]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2 1 error make[3]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2 *** [all] Error code 2 make[2]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2 1 error make[2]: stopped in /usr/ports/ports-mgmt/pkg/work/pkg-1.6.2 ===> 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 /usr/ports/ports-mgmt/pkg *** Error code 1 Stop. make: stopped in /usr/ports/ports-mgmt/pkg Using -fPIC as adviced does not really help 'pkg' wont run afterwards. Found with: - FreeBSD fbsd11-64.bfs.de 11.0-CURRENT FreeBSD 11.0-CURRENT #6 r291575: Tue Dec 1 18:53:27 CET 2015 root@fbsd11-64.bfs.de:/usr/obj/usr/src/sys/FBSD11 amd64 - FreeBSD fbsd10-64.bfs.de 10.2-STABLE FreeBSD 10.2-STABLE #6 r291362: Thu Nov 26 11:21:30 CET 2015 root@fbsd10-64.bfs.de:/usr/obj/usr/src/sys/FBSD10 amd64 - FreeBSD fbsd9-64.bfs.de 9.3-STABLE FreeBSD 9.3-STABLE #5 r291256: Tue Nov 24 16:34:55 CET 2015 root@fbsd9-64.bfs.de:/usr/obj/usr/src/sys/FBSD9 amd64 Ports tree at revision: - 402366 (FreeBSD 9.3-STABLE) - 402434 (FreeBSD 10.2-STABLE) - 402816 (FreeBSD 11.0-CURRENT)
Sorry for the delay replying here, can you provide more feedback? I really cannot reproduce the issue. do you have particular CFLAGS set?