[From nobody Fri Apr 24 15:53:05 2026
Received: (at maintonly) by bugs.debian.org; 22 Feb 2026 16:16:31 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-105.1 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
 FROMDEVELOPER,MD5_SHA1_SUM,SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY,
 USER_IN_DKIM_WELCOMELIST,WORD_WITHOUT_VOWELS autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 38; hammy, 150; neutral, 197; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;aurel32@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:49566)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;aurel32@debian.org&gt;) id 1vuC8F-00DbC2-1x
 for maintonly@bugs.debian.org; Sun, 22 Feb 2026 16:16:31 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Transfer-Encoding:Content-Type
 :MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=hVzZrN4gukjmJ8cvabMnRn5xsVkWnBnreFDE7J/f39k=; b=RVq4jEb+MChv9p4mZJ+KPqbt7u
 3ebCSzNP2th9FVRmdr961HSMCAl8CIIOTkBioSik662EPyg2YV7MYFY81dWTf4nr3foCft4Cc/5ff
 fLGlDFKdv7ek4N1my3rrPjwu9pwMlcMMeYDUwtsaKdzrhlMIVSKY8rkb3J1PLfYlGdg1tCzPjprsK
 uCo+sfRnW7kcsfzly0mA1FG2EI4byx82xaOfwC2vGOdR9sTTDjcED1+o3ei4N2c5qiGiEEjP/TUcF
 uP4ZDAJC69P0KRd3meaGdyQKMlS0LjJusN5LIwDdRiHhH5H8Kk4QriEVXioOo9qFkQRpjgou51mNf
 pccGsouw==;
Received: from authenticated user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;aurel32@debian.org&gt;)
 id 1vuC8E-008JDY-Lk
 for maintonly@bugs.debian.org; Sun, 22 Feb 2026 16:16:30 +0000
Received: from [2a01:e34:ec5d:a741:1ee1:92ff:feb4:5ec0] (helo=ohm.rr44.fr)
 by hall.aurel32.net with esmtpsa (TLS1.3) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2)
 (envelope-from &lt;aurel32@debian.org&gt;) id 1vuC8C-00000002eF6-2og0
 for maintonly@bugs.debian.org; Sun, 22 Feb 2026 17:16:28 +0100
Date: Sun, 22 Feb 2026 17:16:28 +0100
From: Aurelien Jarno &lt;aurel32@debian.org&gt;
To: maintonly@bugs.debian.org
Subject: orcania: FTBFS with glibc 2.43 due to ISO C23 const return types
Message-ID: &lt;aZsr3KKdDO-hSNTg@aurel32.net&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
User-Agent: Mutt/2.2.13 (2024-03-09)
X-Debian-User: aurel32
Delivered-To: maintonly@bugs.debian.org

Source: orcania
Version: 2.3.3-1
Severity: important
Tags: ftbfs upstream
Justification: fails to build from source
User: debian-glibc@lists.debian.org
Usertags: glibc-2.43

Dear maintainer(s),

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

| /usr/bin/cc -D_GNU_SOURCE -Dorcania_EXPORTS -I/build/reproducible-path/or=
cania-2.3.3/include -I/build/reproducible-path/orcania-2.3.3/build -g -O2 -=
Werror=3Dimplicit-function-declaration -ffile-prefix-map=3D/build/reproduci=
ble-path/orcania-2.3.3=3D. -fstack-protector-strong -fstack-clash-protectio=
n -Wformat -Werror=3Dformat-security -mbranch-protection=3Dstandard -Wdate-=
time -D_FORTIFY_SOURCE=3D2 -Wall -Werror -std=3Dgnu99 -fPIC -Wextra -Wconve=
rsion -MD -MT CMakeFiles/orcania.dir/src/orcania.c.o -MF CMakeFiles/orcania=
=2Edir/src/orcania.c.o.d -o CMakeFiles/orcania.dir/src/orcania.c.o -c /buil=
d/reproducible-path/orcania-2.3.3/src/orcania.c
| /build/reproducible-path/orcania-2.3.3/src/orcania.c: In function =E2=80=
=98str_replace=E2=80=99:
| /build/reproducible-path/orcania-2.3.3/src/orcania.c:63:7: error: assignm=
ent discards =E2=80=98const=E2=80=99 qualifier from pointer target type [-W=
error=3Ddiscarded-qualifiers]
|    63 |   ptr =3D strstr(source, str_old);
|       |       ^
| /build/reproducible-path/orcania-2.3.3/src/orcania.c: In function =E2=80=
=98o_strstr=E2=80=99:
| /build/reproducible-path/orcania-2.3.3/src/orcania.c:240:12: error: retur=
n discards =E2=80=98const=E2=80=99 qualifier from pointer target type [-Wer=
ror=3Ddiscarded-qualifiers]
|   240 |     return strstr(haystack, needle);
|       |            ^~~~~~
| /build/reproducible-path/orcania-2.3.3/src/orcania.c: In function =E2=80=
=98o_strchr=E2=80=99:
| /build/reproducible-path/orcania-2.3.3/src/orcania.c:248:12: error: retur=
n discards =E2=80=98const=E2=80=99 qualifier from pointer target type [-Wer=
ror=3Ddiscarded-qualifiers]
|   248 |     return strchr(haystack, c);
|       |            ^~~~~~
| /build/reproducible-path/orcania-2.3.3/src/orcania.c: In function =E2=80=
=98o_strrchr=E2=80=99:
| /build/reproducible-path/orcania-2.3.3/src/orcania.c:272:12: error: retur=
n discards =E2=80=98const=E2=80=99 qualifier from pointer target type [-Wer=
ror=3Ddiscarded-qualifiers]
|   272 |     return strrchr(haystack, c);
|       |            ^~~~~~~
| /build/reproducible-path/orcania-2.3.3/src/orcania.c: In function =E2=80=
=98split_string=E2=80=99:
| /build/reproducible-path/orcania-2.3.3/src/orcania.c:361:11: error: assig=
nment discards =E2=80=98const=E2=80=99 qualifier from pointer target type [=
-Werror=3Ddiscarded-qualifiers]
|   361 |     token =3D strstr(begin, separator);
|       |           ^
| /build/reproducible-path/orcania-2.3.3/src/orcania.c:372:13: error: assig=
nment discards =E2=80=98const=E2=80=99 qualifier from pointer target type [=
-Werror=3Ddiscarded-qualifiers]
|   372 |       token =3D strstr(begin, separator);
|       |             ^
| cc1: all warnings being treated as errors
| make[4]: *** [CMakeFiles/orcania.dir/build.make:110: CMakeFiles/orcania.d=
ir/src/orcania.c.o] Error 1
| make[4]: Leaving directory '/build/reproducible-path/orcania-2.3.3/build'
| make[3]: *** [CMakeFiles/Makefile2:96: CMakeFiles/orcania.dir/all] Error 2
| make[3]: Leaving directory '/build/reproducible-path/orcania-2.3.3/build'
| make[2]: *** [Makefile:169: all] Error 2
| make[2]: Leaving directory '/build/reproducible-path/orcania-2.3.3/build'
| dh_auto_build: error: cd build &amp;&amp; make -j128 INSTALL=3D&quot;install --strip-p=
rogram=3Dtrue&quot; VERBOSE=3D1 returned exit code 2
| make[1]: *** [debian/rules:23: override_dh_auto_build] Error 25
| make[1]: Leaving directory '/build/reproducible-path/orcania-2.3.3'
| make: *** [debian/rules:13: binary] Error 2
| dpkg-buildpackage: error: debian/rules binary subprocess failed with exit=
 status 2

The full build log is available here [1].

The issue is due to ISO C23 declaration of bsearch, memchr, strchr,
strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr,
which now returns a pointer to a const-qualified type when the input
argument is a pointer to a const-qualified type [2].

I would like to thanks Emanuele Rocca for doing the archive rebuild on
a fast arm64 server.

Regards
Aurelien

[1] https://people.debian.org/~ema/glibc-2.43-rebuilds/output-1/orcania_arm=
64.build
[2] https://sourceware.org/git/?p=3Dglibc.git;a=3Dblob;f=3DNEWS;h=3De271fb2=
e4d76903c77a302aaec1ca22ce31027d0;hb=3Df762ccf84f122d1354f103a151cba8bde797=
d521#l19

--=20
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net
]