epic5: FTBFS: functions.c:7547:15: error: implicit declaration of function ‘strptime’; did you mean ‘strftime’? [-Werror=implicit-function-declaration]

Bug #2060617 reported by Dan Bungert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
epic5 (Debian)
New
Unknown
epic5 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Imported from Debian bug http://bugs.debian.org/1066505:

Source: epic5
Version: 2.1.6-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: <email address hidden>
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=implicit-function-declaration. For more information, see
https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

Relevant part (hopefully):
> gcc -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 -I./../include -I../include -c functions.c
> functions.c: In function ‘function_strptime’:
> functions.c:7547:15: error: implicit declaration of function ‘strptime’; did you mean ‘strftime’? [-Werror=implicit-function-declaration]
> 7547 | if (!(strptime(input, format, &timeptr)))
> | ^~~~~~~~
> | strftime
> functions.c: In function ‘function_realpath’:
> functions.c:6496:14: warning: ‘normalize_filename’ accessing 4097 bytes in a region of size 4096 [-Wstringop-overflow=]
> 6496 | if (!normalize_filename(input, resolvedname))
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> functions.c:6496:14: note: referencing argument 2 of type ‘char[4097]’
> In file included from ./../include/alias.h:10,
> from functions.c:46:
> ./../include/ircaux.h:49:9: note: in a call to function ‘normalize_filename’
> 49 | int normalize_filename (const char *, Filename);
> | ^~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
> make[2]: *** [Makefile:34: functions.o] Error 1

The full build log is available from:
http://qa-logs.debian.net/2024/03/13/epic5_2.1.6-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;<email address hidden>
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&<email address hidden>&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Dan Bungert (dbungert)
Changed in epic5 (Ubuntu):
status: New → In Progress
assignee: nobody → Dan Bungert (dbungert)
Changed in epic5 (Debian):
importance: Undecided → Unknown
Dan Bungert (dbungert)
Changed in epic5 (Ubuntu):
assignee: Dan Bungert (dbungert) → nobody
status: In Progress → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.