🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #6102

Bug#1155276: ocserv: FTBFS: ../tests/generate_oidc_test_data.c:249:22: error: implicit declaration of function ‘time’ [-Wimp...

#6102
From: Santiago Vila
Date: Wed, 25 Nov 2026 13:10
48 lines
6685 bytes
Package: src:ocserv
Version: 1.6.0-3
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202611/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:ocserv, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
[205/241] cc -Itests/gen_oidc_test_data.p -Itests -I../tests -I. -I.. -Isrc -I../src -I../src/common -Isrc/ccan -I../src/ccan -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -Wno-implicit-fallthrough -Wno-stringop-truncation -D_GNU_SOURCE -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ tests/gen_oidc_test_data.p/meson-generated_.._.._src_ctl.pb-c.c.o -MF tests/gen_oidc_test_data.p/meson-generated_.._.._src_ctl.pb-c.c.o.d -o tests/gen_oidc_test_data.p/meson-generated_.._.._src_ctl.pb-c.c.o -c src/ctl.pb-c.c
[206/241] cc -Itests/gen_oidc_test_data.p -Itests -I../tests -I. -I.. -Isrc -I../src -I../src/common -Isrc/ccan -I../src/ccan -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -Wno-implicit-fallthrough -Wno-stringop-truncation -D_GNU_SOURCE -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ tests/gen_oidc_test_data.p/generate_oidc_test_data.c.o -MF tests/gen_oidc_test_data.p/generate_oidc_test_data.c.o.d -o tests/gen_oidc_test_data.p/generate_oidc_test_data.c.o -c ../tests/generate_oidc_test_data.c
FAILED: [code=1] tests/gen_oidc_test_data.p/generate_oidc_test_data.c.o 
cc -Itests/gen_oidc_test_data.p -Itests -I../tests -I. -I.. -Isrc -I../src -I../src/common -Isrc/ccan -I../src/ccan -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -Wno-implicit-fallthrough -Wno-stringop-truncation -D_GNU_SOURCE -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ tests/gen_oidc_test_data.p/generate_oidc_test_data.c.o -MF tests/gen_oidc_test_data.p/generate_oidc_test_data.c.o.d -o tests/gen_oidc_test_data.p/generate_oidc_test_data.c.o -c ../tests/generate_oidc_test_data.c
../tests/generate_oidc_test_data.c: In function ‘mint_token’:
../tests/generate_oidc_test_data.c:249:22: error: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
  249 |         time_t now = time(NULL);
      |                      ^~~~
../tests/generate_oidc_test_data.c:23:1: note: ‘time’ is defined in header ‘<time.h>’; this is probably fixable by adding ‘#include <time.h>’
   22 | #include <string.h>
  +++ |+#include <time.h>
   23 | 
[207/241] cc -Itests/oidc-strap-client.p -Itests -I../tests -I. -I.. -Isrc -I../src -I../src/common -Isrc/ccan -I../src/ccan -I/usr/include/p11-kit-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers -Wno-implicit-fallthrough -Wno-stringop-truncation -D_GNU_SOURCE -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MD -MQ tests/oidc-strap-client.p/meson-generated_.._.._src_ipc.pb-c.c.o -MF tests/oidc-strap-client.p/meson-generated_.._.._src_ipc.pb-c.c.o.d -o tests/oidc-strap-client.p/meson-generated_.._.._src_ipc.pb-c.c.o -c src/ipc.pb-c.c
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j2 -v returned exit code 1
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
Technical Details
Message-ID: <O3kV5-e4zH-53@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Santiago Vila <sanvila@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155276: ocserv: FTBFS: ../tests/generate_oidc_test_data.c:249:22: error: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
Date: Wed, 25 Nov 2026 14:10:03 +0100
Message-ID: <O3kV5-e4zH-53@gated-at.bofh.it>
X-Original-To: Debian BTS <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Nov 25 13:06:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.462
Reply-To: Santiago Vila <sanvila@debian.org>, 1155276@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: sanvila@debian.org, aron@debian.org
X-Debian-Pr-Message: report 1155276
X-Debian-Pr-Package: src:ocserv
X-Debian-Pr-Keywords: forky ftbfs sid
X-Debian-Pr-Source: ocserv
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004926
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 48
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 25 Nov 2026 13:04:05 +0000
X-Original-Message-ID: <E1xWCfN-008iJX-09@paradis.debian.org>