- Package:
- src:net-snmp
- Source:
- net-snmp
- Submitter:
- Sebastian Andrzej Siewior
- Date:
- 2022-06-11 06:09:05 UTC
- Severity:
- serious
- Tags:
Your package is failing to build using OpenSSL 3.0 with the following error: | transports/snmpTLSBaseDomain.c:59:22: error: static declaration of ‘ERR_get_error_all’ follows non-static declaration | 59 | static unsigned long ERR_get_error_all(const char **file, int *line, | | ^~~~~~~~~~~~~~~~~ | In file included from transports/snmpTLSBaseDomain.c:31: | /usr/include/openssl/err.h:406:15: note: previous declaration of ‘ERR_get_error_all’ with type ‘long unsigned int(const char **, int *, const char **, const char **, int *)’ | 406 | unsigned long ERR_get_error_all(const char **file, int *line, | | ^~~~~~~~~~~~~~~~~ | transports/snmpTLSBaseDomain.c: In function ‘ERR_get_error_all’: | transports/snmpTLSBaseDomain.c:64:5: warning: ‘ERR_get_error_line_data’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] | 64 | return ERR_get_error_line_data(file, line, data, flags); | | ^~~~~~ | In file included from transports/snmpTLSBaseDomain.c:31: | /usr/include/openssl/err.h:413:15: note: declared here | 413 | unsigned long ERR_get_error_line_data(const char **file, int *line, | | ^~~~~~~~~~~~~~~~~~~~~~~ | make[3]: *** [Makefile:101: transports/snmpTLSBaseDomain.lo] Error 1 | make[3]: Leaving directory '/<<PKGBUILDDIR>>/snmplib' For more information see: https://www.openssl.org/docs/man3.0/man7/migration_guide.html Sebastian
| | ^~~~~~~~~~~~~~~~~ This should not be compiled because HAVE_ERR_GET_ERROR_ALL should be defined (so it's skipped over) Looks like the configure script is not picking it up. It looks like the test program does not include openssl/err.h which means it fails. AC_CHECK_FUNC doesn't include additional headers, which is why this isn't working. | transports/snmpTLSBaseDomain.c: In function ‘ERR_get_error_all’: At the very least I'll just remove the code within the ifndef as its a *backport* of the OpenSSL 1.1.1e function. I'll look at https://stackoverflow.com/questions/63942436/determining-openssl-version-with-ifdef or something like that to properly check the result. - Craig
Upstream should have a new version of net-snmp that compiles with OpenSSL v3.0 in May. I've tested the RC1 release and it compiles fine. https://sourceforge.net/p/net-snmp/mailman/message/37642006/ - Craig
FWIW, Ubuntu's net-snmp has been using the following two patches (backported from upstream) in order to fix the FTBFS with openssl 3.0: https://git.launchpad.net/ubuntu/+source/net-snmp/tree/debian/patches/lp1945960-Fix-the-build-against-OpenSSL-3.0.patch https://git.launchpad.net/ubuntu/+source/net-snmp/tree/debian/patches/lp1945960-configure-static-linking-Fix-SSL-checks.patch If you'd like I can submit an MR/debdiff with these backports for Debian as well.
Control: tags -1 + patch Craig asked me to file the MR, so here it is: https://salsa.debian.org/debian/net-snmp/-/merge_requests/12 Cheers,
Hello, Bug #1006511 in net-snmp reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian/net-snmp/-/commit/b21431e00c07dbddca90e8c71eb86b1e87b90f6e ------------------------------------------------------------------------ Fix FTBFS when compiling against OpenSSL 3.0. - d/p/Fix-the-build-against-OpenSSL-3.0.patch: Fix FTBFS when compiling against OpenSSL 3.0. - d/p/configure-static-linking-Fix-SSL-checks.patch: Fix SSL configure checks. Closes: #1006511 ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1006511
We believe that the bug you reported is fixed in the latest version of
net-snmp, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1006511@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Craig Small <csmall@debian.org> (supplier of updated net-snmp package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 11 Jun 2022 15:31:19 +1000
Source: net-snmp
Architecture: source
Version: 5.9.1+dfsg-3
Distribution: unstable
Urgency: medium
Maintainer: Debian SNMP Team <team+snmp@tracker.debian.org>
Changed-By: Craig Small <csmall@debian.org>
Closes: 1001268 1006511
Changes:
net-snmp (5.9.1+dfsg-3) unstable; urgency=medium
.
[ Sergio Durigan Junior ]
* Fix FTBFS when compiling against OpenSSL 3.0.
- d/p/Fix-the-build-against-OpenSSL-3.0.patch: Fix FTBFS when
compiling against OpenSSL 3.0.
- d/p/configure-static-linking-Fix-SSL-checks.patch: Fix SSL configure
checks. (Closes: #1006511)
* d/snmpd.service: Start the service after network-online.target.
Closes: #1001268
.
[ Debian Janitor ]
* Re-export upstream signing key without extra signatures.
* Update renamed lintian tag names in lintian overrides.
* Remove constraints unnecessary since buster:
+ Build-Depends: Drop versioned constraint on bash, debianutils, findutils
and perl.
+ snmpd: Drop versioned constraint on lsb-base in Depends.
+ snmptrapd: Drop versioned constraint on snmp in Replaces.
+ snmptrapd: Drop versioned constraint on snmp in Breaks.
+ snmp: Drop versioned constraint on libsnmp-base in Depends.
+ libsnmp-base: Drop versioned constraint on snmp in Replaces.
+ libsnmp-base: Drop versioned constraint on snmp in Breaks.
.
[ Craig Small ]
* Update to Debian standard 4.6.1, no change
Checksums-Sha1:
be9e796d63d4fade7718f228245dcb59f003a0e0 2769 net-snmp_5.9.1+dfsg-3.dsc
f3309b64abe48e6489f36c4a8d9e9801c1f903df 69636 net-snmp_5.9.1+dfsg-3.debian.tar.xz
901c1bdfe789bd630c02940c24371b9b445bd121 10464 net-snmp_5.9.1+dfsg-3_amd64.buildinfo
Checksums-Sha256:
716df56847b029c913578eb5e0e027e86f9c4820d7609c4318872b9352a52112 2769 net-snmp_5.9.1+dfsg-3.dsc
f01f63c29798638e51beab5658d7b0972de5f07513cefb2bc1a70bf7d917a0c3 69636 net-snmp_5.9.1+dfsg-3.debian.tar.xz
eddf9adb963c48be22af62978e1100e0f65b30f902ebdf45c0ffe08fcff561ec 10464 net-snmp_5.9.1+dfsg-3_amd64.buildinfo
Files:
0e76cf157dd53761af0a730ce4013482 2769 net optional net-snmp_5.9.1+dfsg-3.dsc
44193638bf5e298c050d3cc8e0721f7f 69636 net optional net-snmp_5.9.1+dfsg-3.debian.tar.xz
77c222c42cb15d94e5f7bda078df6d85 10464 net optional net-snmp_5.9.1+dfsg-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEXT3w9TizJ8CqeneiAiFmwP88hOMFAmKkKdkACgkQAiFmwP88
hOPgqw//YTBTPNaGM+AvFbVbOFveh7vdHVbk/AyXcTAWlfk5RRKMBxbFIXBvj6wY
3a5yHCNXgRAtimFAJTleH2zG1Px55T/GiE1SUhBQZKPLJboPY8w5LamBmkjR/zC7
CQiykct6b2PHCGiDUnA4GjnJtsOihCMS/3VlwgAbqdWuLoFE9G5nQRFwe6P2bctF
kXz/qn1oNvVqvhxqJXjhRKzCUTeOqovzWmmnoiw9zSpR6Y/6mcPn/t5vRkQiT5CS
9DAkmaP6TMcGwGLy5VMLGoSL8nFtxtiUw8TSr0B5nb9pI4nZ7hSeZP8eCelFNWnN
cbd9qnMRXNIRG96ZLN4jkIzMkH9FtLeOvj740PtsOBRcl5kQdfpO6OjpYpmEu2gp
QFL0ihEM4Ke6nVWQ+q35BeVkdNsM1iVurWsMEYpbzTNLIFpZFq7Ro68HiliWC71V
QqBUBzMF8CmGvZyrSpGPQ4Vrs3wLseSNledzr+QFzjZeye9wPiogInBOoelmxZah
QuqznqhqVZ//90qOrGIRAmYvtE3f8hP/WOywOktfDbjmxFRRuhXKgVwY9AvKuz8y
RwnKdB6ri1iD1WSNLXo9aeRjA4cRQbzxMAalCUo8LBSseY5nHfUIkrbw8se9Zjsk
cOMldIzvVzPFOkpGwftsNc1x+7f8xReCOQmwtmbZiZowO0v0GE4=
=jVzb
-----END PGP SIGNATURE-----