Summary: | net-misc/ptpd-2.3.1-r2 - /.../ossl_typ.h: error: conflicting types for EVP_MD_CTX; have struct evp_md_ctx_st | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Jan Breuer <honza.breuer> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | l_indien, proxy-maint |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 797325 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 net-misc:ptpd-2.3.1-r2:20210501-055617.log temp.tar.bz2 Patch to properly use recent openssl API |
Description
Toralf Förster
2021-05-01 09:00:47 UTC
Created attachment 704898 [details]
emerge-info.txt
Created attachment 704901 [details]
emerge-history.txt
Created attachment 704904 [details]
environment
Created attachment 704907 [details]
etc.portage.tar.bz2
Created attachment 704910 [details]
logs.tar.bz2
Created attachment 704913 [details]
net-misc:ptpd-2.3.1-r2:20210501-055617.log
Created attachment 704916 [details]
temp.tar.bz2
*** Bug 844166 has been marked as a duplicate of this bug. *** The following patch seems to fix this issue: --- ptpd-ptpd-2.3.1/src/dep/ntpengine/ntp_isc_md5.c 2015-06-29 17:13:29.000000000 +0200 +++ ptpd-ptpd-2.3.1/src/dep/ntpengine/ntp_isc_md5.c 2021-10-25 19:02:24.014329912 +0200 @@ -262,7 +262,7 @@ MD5authencrypt( { u_char digest[64]; u_int len; - EVP_MD_CTX ctx; + _EVP_MD_CTX ctx; pkt[length / 4] = htonl(keyid); EVP_DigestInit(&ctx); EVP_DigestUpdate(&ctx, (u_char *)key, (u_int)strlen(key)); --- ptpd-ptpd-2.3.1/src/dep/ntpengine/ntp_isc_md5.h 2015-06-29 17:13:29.000000000 +0200 +++ ptpd-ptpd-2.3.1/src/dep/ntpengine/ntp_isc_md5.h 2021-10-25 19:02:42.974909067 +0200 @@ -80,7 +80,7 @@ isc_md5_final(isc_md5_t *ctx, unsigned c # define MD5Init(c) isc_md5_init(c) # define MD5Update(c, p, s) isc_md5_update(c, p, s) # define MD5Final(d, c) isc_md5_final((c), (d)) /* swapped */ - typedef MD5_CTX EVP_MD_CTX; + typedef MD5_CTX _EVP_MD_CTX; # define EVP_DigestInit(c) MD5Init(c) # define EVP_DigestUpdate(c, p, s) MD5Update(c, p, s) # define EVP_DigestFinal(c, d, pdl) \ Created attachment 843279 [details, diff]
Patch to properly use recent openssl API
Here's an updated patch introducing changes for proper use of recent openssl API
(In reply to Jocelyn Mayer from comment #10) > Created attachment 843279 [details, diff] [details, diff] > Patch to properly use recent openssl API > > Here's an updated patch introducing changes for proper use of recent openssl > API Thanks. Could you send it upstream at https://github.com/ptpd/ptpd/pulls? Should have checked upstream before posting... Already fixed in trunk, they did choose the first way, ie renaming the EVP_MD_CTX type, in order to be able to use libressl as well, as far as I've understood. I can't actually reproduce this error, but I suppose we could take a snapshot or something. (In reply to Sam James from comment #13) > I can't actually reproduce this error, but I suppose we could take a > snapshot or something. reproduced today at 17.1_desktop_gnome_systemd-20231009-071016 |