Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646276 - net-dns/unbound with >=dev-libs/openssl-1.1.0 - validator/val_secalgo.c:279:2: error: unknown type name ‘DSA_SIG’; did you mean ‘ECDSA_SIG’?
Summary: net-dns/unbound with >=dev-libs/openssl-1.1.0 - validator/val_secalgo.c:279:2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marc Schiffbauer
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: openssl-1.1
  Show dependency tree
 
Reported: 2018-02-01 07:33 UTC by Quentin Minster
Modified: 2018-10-24 14:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,45.93 KB, text/plain)
2018-02-01 07:33 UTC, Quentin Minster
Details
unbound-1.6.8-missing-openssl-1.1.0-headers.patch (unbound-1.6.8-missing-openssl-1.1.0-headers.patch,435 bytes, patch)
2018-02-01 07:38 UTC, Quentin Minster
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Quentin Minster 2018-02-01 07:33:30 UTC
Created attachment 517346 [details]
build.log

On my system with dev-libs/openssl-1.1.0g-r2, net-dns/unbound-1.6.8 fails to build with the following errors (truncated, see attached build.log for full log):

  validator/val_secalgo.c: In function ‘setup_dsa_sig’:
  validator/val_secalgo.c:279:2: error: unknown type name ‘DSA_SIG’; did you mean ‘ECDSA_SIG’?
    DSA_SIG *dsasig;
    ^~~~~~~
    ECDSA_SIG
  validator/val_secalgo.c:284:6: warning: implicit declaration of function ‘BN_new’; did you mean ‘BIO_new’? [-Wimplicit-function-declaration]
    R = BN_new();
        ^~~~~~
        BIO_new
  [...]
  make: *** [Makefile:282: val_secalgo.lo] Error 1

This is likely due to header changes in OpenSSL 1.1.0. I'm attaching a patch which fixes the build. It's only a matter of #include-ing the required headers, which are already checked for by the configure script.
Comment 1 Quentin Minster 2018-02-01 07:38:27 UTC
Created attachment 517348 [details, diff]
unbound-1.6.8-missing-openssl-1.1.0-headers.patch
Comment 2 Mira Ressel 2018-10-22 10:06:27 UTC
This appears to be fixed as of unbound-1.8.0-r1.