Created attachment 197432 [details] v1 FAILED: libntirpc/tests/rpcping : && /usr/bin/cc -O2 -pipe -Wno-error -fno-strict-aliasing -O2 -ggdb -fno-omit-frame-pointer -fno-optimize-sibling-calls -O2 -pipe -Wno-error -fno-strict-aliasing -Wl,--export-dynamic libntirpc/tests/CMakeFiles/rpcping.dir/rpcping.c.o -o libntirpc/tests/rpcping -L/usr/local/lib -Wl,-rpath,/usr/local/lib:/wrkdirs/usr/ports/net/nfs-ganesha/work/nfs-ganesha-2.7.0/libntirpc/src libntirpc/src/libntirpc.so.1.7.0 -pthread -ldl -lexecinfo -ldbus-1 -lrt && : /usr/bin/ld: cannot find -ldl cc: error: linker command failed with exit code 1 (use -v to see invocation)
for the record, this is for freebsd 10.4 and 11.1. FreeBSD 11.2 and 12 does not need this patch anymore.
Thanks for the patch, as bapt@ pointed out libdl is now available on latest releases.
A commit references this bug: Author: mat Date: Mon Oct 8 13:13:21 UTC 2018 New revision: 481540 URL: https://svnweb.freebsd.org/changeset/ports/481540 Log: Fix build. PR: 231662 Submitted by: mat Approved by: maintainer Changes: head/net/nfs-ganesha/files/patch-src_libntirpc_tests_CMakeLists.txt