Summary: | dev-libs/cyrus-sasl-2.1.28-r4 - /.../digestmd5.c: error: implicit declaration of function time [-Wimplicit-function-declaration] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | carlphilippreh, jy6x2b32pie9 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | fixed in 2.1.28-r4 | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: |
emerge-info.txt
dev-libs:cyrus-sasl-2.1.28-r4:20231229-105743.log emerge-history.txt environment etc.clang.tar.xz etc.portage.tar.xz logs.tar.xz qlist-info.txt temp.tar.xz |
Description
Toralf Förster
![]() Created attachment 880953 [details]
emerge-info.txt
Created attachment 880954 [details]
dev-libs:cyrus-sasl-2.1.28-r4:20231229-105743.log
Created attachment 880955 [details]
emerge-history.txt
Created attachment 880956 [details]
environment
Created attachment 880957 [details]
etc.clang.tar.xz
Created attachment 880958 [details]
etc.portage.tar.xz
Created attachment 880959 [details]
logs.tar.xz
Created attachment 880960 [details]
qlist-info.txt
Created attachment 880961 [details]
temp.tar.xz
Wants time.h. /var/tmp/portage/dev-libs/cyrus-sasl-2.1.28-r4/work/cyrus-sasl-2.1.28/plugins/digestmd5.c:93:1: note: ‘time’ is defined in header ‘<time.h>’; this is probably fixable by adding ‘#include <time.h>’ There's also a lot of incompatible pointer type errors. /var/tmp/portage/dev-libs/cyrus-sasl-2.1.28-r4/work/cyrus-sasl-2.1.28/saslauthd/md5.c:363:33: error: passing 'const unsigned char *' to parameter of type 'unsigned char *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 363 | _saslauthd_MD5Update(&tctx, key, key_len); | ^~~ /var/tmp/portage/dev-libs/cyrus-sasl-2.1.28-r4/work/cyrus-sasl-2.1.28/saslauthd/md5.c:384:23: error: passing 'const unsigned char *' to parameter of type 'POINTER' (aka 'unsigned char *') discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 384 | MD5_memcpy( k_ipad, key, key_len); | ^~~ /var/tmp/portage/dev-libs/cyrus-sasl-2.1.28-r4/work/cyrus-sasl-2.1.28/saslauthd/md5.c:385:23: error: passing 'const unsigned char *' to parameter of type 'POINTER' (aka 'unsigned char *') discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 385 | MD5_memcpy( k_opad, key, key_len); | ^~~ /var/tmp/portage/dev-libs/cyrus-sasl-2.1.28-r4/work/cyrus-sasl-2.1.28/saslauthd/md5.c:400:14: error: incompatible pointer types passing 'unsigned char (*)[65]' to parameter of type 'POINTER' (aka 'unsigned char *') [-Werror,-Wincompatible-pointer-types] 400 | MD5_memset(&k_ipad, 0, sizeof(k_ipad)); | ^~~~~~~ /var/tmp/portage/dev-libs/cyrus-sasl-2.1.28-r4/work/cyrus-sasl-2.1.28/saslauthd/md5.c:401:14: error: incompatible pointer types passing 'unsigned char (*)[65]' to parameter of type 'POINTER' (aka 'unsigned char *') [-Werror,-Wincompatible-pointer-types] 401 | MD5_memset(&k_opad, 0, sizeof(k_opad)); The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64520916e20b8e8139c7a28bd792ac9cd66c2224 commit 64520916e20b8e8139c7a28bd792ac9cd66c2224 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2024-07-26 08:10:14 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2024-07-26 08:12:27 +0000 dev-libs/cyrus-sasl-2.1.28-r4: fix compilation on certain platforms Seems at least GCC-14 makes implicit function declarations errors, so add compilation patch to include what's being used. Seen the problem on Darwin 23 for strcmp, and on Linux for time. Closes: https://bugs.gentoo.org/920936 Signed-off-by: Fabian Groffen <grobian@gentoo.org> dev-libs/cyrus-sasl/Manifest | 2 +- dev-libs/cyrus-sasl/cyrus-sasl-2.1.28-r4.ebuild | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) |