Bug 262501 - dns/powerdns-recursor don't build with libressl
Summary: dns/powerdns-recursor don't build with libressl
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Florian Smeets
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-12 14:47 UTC by nti
Modified: 2023-02-02 18:31 UTC (History)
3 users (show)

See Also:
tremere: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nti 2022-03-12 14:47:51 UTC
Can’t build the newest ports powerdns-recursor 4.6.0 and dnsdist 1.7.0 with libressl as default ssl library. Same error: 

mv -f $depbase.Tpo $depbase.Po
depbase=`echo credentials.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
c++ -std=c++17 -DHAVE_CONFIG_H -I.  -I/usr/local/include/lua52  -I./ext/yahttp -pthread     -O3 -Wall -pthread -DSYSCONFDIR=\"/usr/local/etc/pdns\"  -I./ext/json11 -I./ext/protozero/include -I./ext/yahttp -I/usr/local/include  -DBOOST_CONTAINER_USE_STD_EXCEPTIONS  -I/usr/local/include/lua52   -isystem /usr/local/include -DSYSCONFDIR=\"/usr/local/etc/pdns\" -DPKGLIBDIR=\"/usr/local/lib/pdns-recursor\" -DLOCALSTATEDIR=\"/var/run\" -DNODCACHEDIR=\"/var/lib/pdns-recursor\" -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -g -O2 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -MT credentials.o -MD -MP -MF $depbase.Tpo -c -o credentials.o credentials.cc &&\
mv -f $depbase.Tpo $depbase.Po
credentials.cc:99:90: error: use of undeclared identifier 'EVP_PKEY_SCRYPT'
  auto pctx = std::unique_ptr<EVP_PKEY_CTX, void (*)(EVP_PKEY_CTX*)>(EVP_PKEY_CTX_new_id(EVP_PKEY_SCRYPT, nullptr), EVP_PKEY_CTX_free);
Comment 1 Ralf van der Enden 2022-04-11 07:10:44 UTC
Hi,

Sorry for my late reply.

I've added a patch for powerdns-recursor (bug #262879), which should fix building against LibreSSL. If you can confirm this fixes the issue I will also create a PR for dnsdist.

Kind regards,

Ralf
Comment 2 Ralf van der Enden 2022-05-09 06:43:56 UTC
Hi,

With the update of dnsdist to 1.7.1 (bug #263809) the same patch as for the recursor was added. Hopefully this will fix the LibreSSL for this port as well.
Comment 3 Florian Smeets freebsd_committer freebsd_triage 2023-02-02 18:31:48 UTC
Is this still an issue? I'm closing this as I expect it to be resolved based on the last comment. If it's still an issue let me know and we can reopen the PR.