Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920936 - dev-libs/cyrus-sasl-2.1.28-r4 - /.../digestmd5.c: error: implicit declaration of function time [-Wimplicit-function-declaration]
Summary: dev-libs/cyrus-sasl-2.1.28-r4 - /.../digestmd5.c: error: implicit declaration...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: fixed in 2.1.28-r4
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-12-29 13:48 UTC by Toralf Förster
Modified: 2024-10-31 21:17 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.92 KB, text/plain)
2023-12-29 13:48 UTC, Toralf Förster
Details
dev-libs:cyrus-sasl-2.1.28-r4:20231229-105743.log (dev-libs:cyrus-sasl-2.1.28-r4:20231229-105743.log,108.99 KB, text/plain)
2023-12-29 13:48 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,42.65 KB, text/plain)
2023-12-29 13:48 UTC, Toralf Förster
Details
environment (environment,128.33 KB, text/plain)
2023-12-29 13:48 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,960 bytes, application/x-xz)
2023-12-29 13:48 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,21.78 KB, application/x-xz)
2023-12-29 13:48 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,14.40 KB, application/x-xz)
2023-12-29 13:48 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,94.92 KB, text/plain)
2023-12-29 13:48 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,38.03 KB, application/x-xz)
2023-12-29 13:48 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-29 13:48:37 UTC
too long lines were shrinked:

rdlibtool: lconf: openat(AT_FDCWD,"../",O_DIRECTORY,0) = 3.
rdlibtool: lconf: fstat(3,...) = 0 {.st_dev = 162, .st_ino = 153230}.
rdlibtool: lconf: openat(3,"libtool",O_RDONLY,0) = 4.
rdlibtool: lconf: found "/var/tmp/portage/dev-libs/cyrus-sasl-2.1.28-r4/work/cyrus-sasl-2.1.28-abi_x86_64.amd64/libtool".
rdlibtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/cyrus-sasl-2.1.28-r4/work/cyrus-sasl-2.1.28/plugins -I.. -DLIBSASL_EXPORTS=1 -I/var/tmp/portage/dev-libs/cyrus-sasl-2.1.28-r4/work/cyrus-sasl-2.1.28/include -I/var/tmp/portage/dev-libs/cyrus-sasl-2.1.28-r4/wo
/var/tmp/portage/dev-libs/cyrus-sasl-2.1.28-r4/work/cyrus-sasl-2.1.28/plugins/digestmd5.c: In function digestmd5_server_mech_step1:
/var/tmp/portage/dev-libs/cyrus-sasl-2.1.28-r4/work/cyrus-sasl-2.1.28/plugins/digestmd5.c:2239:46: error: implicit declaration of function time [-Wimplicit-function-declaration]
 2239 |         text->reauth->e[val].u.s.timestamp = time(0);
      |                                              ^~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib-20231228-120810

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-21  system-vm

php cli (if any):
go version go1.21.5 linux/amd64

  HEAD of ::gentoo
commit 7ef56be711cf53dd404f92afee9e41a85367d31e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 29 09:46:58 2023 +0000

    2023-12-29 09:46:58 UTC

emerge -qpvO dev-libs/cyrus-sasl
[ebuild  N    ] dev-libs/cyrus-sasl-2.1.28-r4  USE="gdbm kerberos pam postgres -authdaemond -berkdb -ldapdb -mysql -openldap -sample (-selinux) -sqlite -srp -ssl -static-libs -urandom"
Comment 1 Toralf Förster gentoo-dev 2023-12-29 13:48:38 UTC
Created attachment 880953 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-29 13:48:40 UTC
Created attachment 880954 [details]
dev-libs:cyrus-sasl-2.1.28-r4:20231229-105743.log
Comment 3 Toralf Förster gentoo-dev 2023-12-29 13:48:41 UTC
Created attachment 880955 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-12-29 13:48:42 UTC
Created attachment 880956 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-29 13:48:43 UTC
Created attachment 880957 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-29 13:48:44 UTC
Created attachment 880958 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-29 13:48:45 UTC
Created attachment 880959 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-29 13:48:46 UTC
Created attachment 880960 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2023-12-29 13:48:47 UTC
Created attachment 880961 [details]
temp.tar.xz
Comment 10 orbea 2024-03-06 06:14:30 UTC
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>’
Comment 11 NHO 2024-03-31 17:14:53 UTC
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));
Comment 12 Larry the Git Cow gentoo-dev 2024-07-26 08:12:32 UTC
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(-)