[Debian-iot-maintainers] Bug#1009480: ulfius: FTBFS: u_send_request.c:112:11: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]

Lucas Nussbaum lucas at debian.org
Tue Apr 12 19:14:27 BST 2022


Source: ulfius
Version: 2.7.7-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220412 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
> /usr/bin/cc -D_GNU_SOURCE -Dulfius_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/build -Wall -Werror -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Wextra -std=gnu99 -MD -MT CMakeFiles/ulfius.dir/src/ulfius.c.o -MF CMakeFiles/ulfius.dir/src/ulfius.c.o.d -o CMakeFiles/ulfius.dir/src/ulfius.c.o -c /<<PKGBUILDDIR>>/src/ulfius.c
> /<<PKGBUILDDIR>>/src/u_send_request.c: In function ‘write_header’:
> /<<PKGBUILDDIR>>/src/u_send_request.c:112:11: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
>   112 |       key = trimwhitespace(strtok_r(header, ":", &saveptr));
>       |           ^
> /<<PKGBUILDDIR>>/src/u_send_request.c:113:13: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
>   113 |       value = trimwhitespace(strtok_r(NULL, "", &saveptr));
>       |             ^
> cc1: all warnings being treated as errors
> make[4]: *** [CMakeFiles/ulfius.dir/build.make:121: CMakeFiles/ulfius.dir/src/u_send_request.c.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/04/12/ulfius_2.7.7-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220412;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220412&fusertaguser=lucas@debian.org&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 marking 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.



More information about the Debian-iot-maintainers mailing list