[Debian-ha-maintainers] Bug#1126734: kronosnet: FTBFS with glibc 2.43 due to ISO C23 const return types

Aurelien Jarno aurel32 at debian.org
Sat Jan 31 22:52:40 GMT 2026


Source: kronosnet
Version: 1.32-1
Severity: important
Tags: ftbfs
Justification: fails to build from source
User: debian-glibc at lists.debian.org
Usertags: glibc-2.43

Dear maintainer,

kronosnet fails to build from source with glibc 2.43, currently in
experimental. From the build log:

| gcc -DHAVE_CONFIG_H -I. -I../..  -I../../libknet  -Wdate-time -O3 -ggdb3 -Werror -Wall -Wextra  -fPIC -DPIC -pie -fstack-protector-strong -fexceptions -D_GLIBCXX_ASSERTIONS -Wl,-z,now -fstack-clash-protection -fcf-protection=full -mstackrealign -D_FORTIFY_SOURCE=3 -Wno-unused-parameter -Wno-gnu-folding-constant -Wno-char-subscripts -pthread -pthread -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kronosnet-1.32=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o int_links_acl_ip.o int_links_acl_ip.c
| int_links_acl_ip.c: In function ‘read_2ip’:
| int_links_acl_ip.c:54:14: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
|    54 |         deli = strstr(buf, delim);
|       |              ^
| At top level:
| cc1: note: unrecognized command-line option ‘-Wno-gnu-folding-constant’ may have been intended to silence earlier diagnostics
| cc1: all warnings being treated as errors
| make[4]: *** [Makefile:2239: int_links_acl_ip.o] Error 1
| make[4]: Leaving directory '/build/reproducible-path/kronosnet-1.32/libknet/tests'
| make[3]: *** [Makefile:1238: all-recursive] Error 1
| make[3]: Leaving directory '/build/reproducible-path/kronosnet-1.32/libknet'
| make[2]: *** [Makefile:571: all-recursive] Error 1
| make[2]: Leaving directory '/build/reproducible-path/kronosnet-1.32'
| make[1]: *** [Makefile:481: all] Error 2
| make[1]: Leaving directory '/build/reproducible-path/kronosnet-1.32'
| dh_auto_build: error: make -j1 returned exit code 2
| make: *** [debian/rules:11: binary] Error 25
| dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2

The full build log is attached to this bug report.

The issue is due to ISO C23 declaration of strstr, which now returns a
pointer to a const-qualified type when the input argument is a pointer
to a const-qualified type [1]. Fortunately the issue is already fixed
upstream [2] in version 1.33.

Regards
Aurelien

[1] https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=e271fb2e4d76903c77a302aaec1ca22ce31027d0;hb=f762ccf84f122d1354f103a151cba8bde797d521#l19
[2] https://github.com/kronosnet/kronosnet/commit/ba7bc1b6705ed9ff652e8e65327cfa9a78ac98a8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kronosnet_amd64-2026-01-31T22:50:06Z.build.gz
Type: application/gzip
Size: 22418 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-ha-maintainers/attachments/20260131/8e4086e5/attachment-0001.gz>


More information about the Debian-ha-maintainers mailing list