Created attachment 203584 [details] patch This port requires C11 and C++17 compatible compiler, so add USES=compiler:c11 to fix build on GCC architectures. Additionally, passing --with-openssl=/usr (with base OpenSSL) adds -L/usr/lib to LDFLAGS, which causes GCC to try to link to base libstdc++, instead of the new one from ports, so don't pass the directory to OpenSSL when using base SSL library. Also, add include cassert to test/zdbpp.cpp. Tested on powerpc64 and amd64.
Created attachment 203585 [details] v2 Correct --with to --enable.
Committed. Thanks!
A commit references this bug: Author: sunpoet Date: Sat Apr 20 23:08:34 UTC 2019 New revision: 499489 URL: https://svnweb.freebsd.org/changeset/ports/499489 Log: Fix build on powerpc PR: 237200 Submitted by: pkubaj Changes: head/databases/libzdb/Makefile head/databases/libzdb/files/ head/databases/libzdb/files/patch-test-zdbpp.cpp
A commit references this bug: Author: pkubaj Date: Tue Mar 31 13:58:02 UTC 2020 New revision: 529975 URL: https://svnweb.freebsd.org/changeset/ports/529975 Log: databases/libzdb: fix build on GCC architectures r529335 partially reverted r499489, which caused another breakage on GCC architectures by passing -L/usr/lib while using GCC from ports and making it link to base libstdc++: /usr/local/bin/ld: zdbpp.cpp:(.text.startup+0x1f0): undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long)' Apply changes to Makefile from r499489 to fix it. PR: 237200 Changes: head/databases/libzdb/Makefile
A commit references this bug: Author: sunpoet Date: Tue Mar 31 15:01:10 UTC 2020 New revision: 529978 URL: https://svnweb.freebsd.org/changeset/ports/529978 Log: Add comment to avoid future breakage PR: 237200 Changes: head/databases/libzdb/Makefile