$ uname -a FreeBSD dev.ptrcrt.ch 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERI C amd64 $ pkg query %v nacl 20110221_1 $ cat hash-sample.cpp #include <crypto_hash.h> int main() { std::string hash = crypto_hash("Hello, world"); } $ c++ -o hash-sample hash-sample.cpp -I/usr/local/include -L/usr/local/lib -lnacl /tmp/hash-sample-464bef.o: In function `main': hash-sample.cpp:(.text+0x6a): undefined reference to `crypto_hash_sha512_ref(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)' c++: error: linker command failed with exit code 1 (use -v to see invocation)
Created attachment 177943 [details] Fix REINPLACE_CMD, add LICENSE
Approved, feel free to commit
A commit references this bug: Author: gahr Date: Wed Dec 14 13:43:35 UTC 2016 New revision: 428560 URL: https://svnweb.freebsd.org/changeset/ports/428560 Log: security/nacl: fix post-patch (prevented c++ from working) and add LICENSE PR: 215277 Submitted by: gahr@ Approved by: johans@ (maintainer) Changes: head/security/nacl/Makefile