Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1280349 > unrolled thread

Bug#1126734: kronosnet: FTBFS with glibc 2.43 due to ISO C23 const return types

Started byAurelien Jarno <aurel32@debian.org>
First post2026-02-01 00:00 +0100
Last post2026-02-01 00:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1126734: kronosnet: FTBFS with glibc 2.43 due to ISO C23 const return types Aurelien Jarno <aurel32@debian.org> - 2026-02-01 00:00 +0100

#1280349 — Bug#1126734: kronosnet: FTBFS with glibc 2.43 due to ISO C23 const return types

FromAurelien Jarno <aurel32@debian.org>
Date2026-02-01 00:00 +0100
SubjectBug#1126734: kronosnet: FTBFS with glibc 2.43 due to ISO C23 const return types
Message-ID<Mjs6C-eNF2-7@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Source: kronosnet
Version: 1.32-1
Severity: important
Tags: ftbfs
Justification: fails to build from source
User: debian-glibc@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

[toc] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web