#1128542 fcoe-utils: FTBFS with glibc 2.43 due to ISO C23 const return types

Package:
src:fcoe-utils
Source:
src:fcoe-utils
Submitter:
Aurelien Jarno
Date:
2026-09-01 14:27:02 UTC
Severity:
normal
Tags:
#1128542#5
Date:
2026-02-20 22:38:04 UTC
From:
To:
Dear maintainer(s),

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

| gcc -DPACKAGE_NAME=\"fcoe-utils\" -DPACKAGE_TARNAME=\"fcoe-utils\" -DPACKAGE_VERSION=\"1.0.34\" -DPACKAGE_STRING=\"fcoe-utils\ 1.0.34\" -DPACKAGE_BUGREPORT=\"https://github.com/openSUSE/fcoe-utils\" -DPACKAGE_URL=\"\" -DPACKAGE=\"fcoe-utils\" -DVERSION=\"1.0.34\" -I.  -I./include -I./include -DSYSCONFDIR="\"/etc\"" -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wextra -Wmissing-prototypes -Wstrict-prototypes -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/fcoe-utils-1.0.34=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c -o lib/sysfs_hba.o lib/sysfs_hba.c
| lib/fcoe_utils.c: In function ‘get_ifname_from_symbolic_name’:
| lib/fcoe_utils.c:164:28: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
|   164 |         char *last_space = strrchr(symbolic_name, ' ');
|       |                            ^~~~~~~
| lib/sysfs_hba.c: In function ‘get_pci_dev_from_netdev’:
| lib/sysfs_hba.c:447:23: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
|   447 |                 subif = strchr(netdev, '.');
|       |                       ^
| cc1: all warnings being treated as errors
| make[1]: *** [Makefile:620: lib/fcoe_utils.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| cc1: all warnings being treated as errors
| make[1]: *** [Makefile:620: lib/sysfs_hba.o] Error 1
| make[1]: Leaving directory '/build/reproducible-path/fcoe-utils-1.0.34'
| dh_auto_build: error: make -j128 returned exit code 2
| make: *** [debian/rules:13: binary] Error 25
| 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/fcoe-utils_arm64.build
[2] https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=e271fb2e4d76903c77a302aaec1ca22ce31027d0;hb=f762ccf84f122d1354f103a151cba8bde797d521#l19

#1128542#10
Date:
2026-04-22 20:04:56 UTC
From:
To:
control: tag -1 + fixed-upstream
control: tag -1 + patch
control: forwarded -1 https://github.com/openSUSE/fcoe-utils/commit/8e40a4f168436a3345697d01f163738a247d3c3f
https://github.com/openSUSE/fcoe-utils/commit/8e40a4f168436a3345697d01f163738a247d3c3f

Regards
Aurelien

#1128542#23
Date:
2026-08-10 12:44:53 UTC
From:
To:
control: severity 1127629 serious
control: severity 1128547 serious
control: severity 1128734 serious
control: severity 1128740 serious
control: severity 1128528 serious
control: severity 1128532 serious
control: severity 1128534 serious
control: severity 1128541 serious
control: severity 1128544 serious
control: severity 1128545 serious
control: severity 1128548 serious
control: severity 1128549 serious
control: severity 1128551 serious
control: severity 1128615 serious
control: severity 1128678 serious
control: severity 1128680 serious
control: severity 1128681 serious
control: severity 1128697 serious
control: severity 1128736 serious
control: severity 1128737 serious
control: severity 1128738 serious
control: severity 1128741 serious
control: severity 1128742 serious
control: severity 1128743 serious
control: severity 1128750 serious
control: severity 1128757 serious
control: severity 1128761 serious
control: severity 1128763 serious
control: severity 1128764 serious
control: severity 1128875 serious
control: severity 1128952 serious
control: severity 1128542 serious
control: severity 1128679 serious
control: severity 1128682 serious
control: severity 1128744 serious
control: severity 1128748 serious
control: severity 1128867 serious

Hi,

With the upload of glibc 2.43 to unstable, the packages now FTBFS in
unstable, hence upgrading the severity to serious.

Note that as a quick workaround, it is possible to roll back to C/C++17
standard using -std=c17, -std=gnu17, std=c++17 or std=gnu++17. This was
the default up to GCC 14, and GCC 15 changed it to C/C23.

Regards
Aurelien

#1128542#30
Date:
2026-09-01 14:25:00 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
fcoe-utils, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1128542@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
tony mancill <tmancill@debian.org> (supplier of updated fcoe-utils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 01 Sep 2026 06:53:20 -0700
Source: fcoe-utils
Architecture: source
Version: 1.0.34-7
Distribution: unstable
Urgency: medium
Maintainer: Debian FCoE Team <team+fcoe@tracker.debian.org>
Changed-By: tony mancill <tmancill@debian.org>
Closes: 1128542 1141898
Changes:
 fcoe-utils (1.0.34-7) unstable; urgency=medium
 .
   * Update Uploaders (Closes: #1141898)
     Thank you to Jacob Luna Lundberg for your work on the package.
   * Add patch for glib 2.43 (Closes: #1128542)
     Thank you to Aurelien Jarno for triage and linking the bug.
Checksums-Sha1:
 1d60f8727784756380ba4666e780a2b0b778ad21 2115 fcoe-utils_1.0.34-7.dsc
 642c02a0b06e4004bcbd1ca08ba7ef56b7765da5 9536 fcoe-utils_1.0.34-7.debian.tar.xz
 1f21d72f9d5b56c8399ebb3991ed8f7d2571943e 6146 fcoe-utils_1.0.34-7_arm64.buildinfo
Checksums-Sha256:
 1e515558ec87d7468f924bcdc86744c63502e5f5b4bff17d6854d346012551ff 2115 fcoe-utils_1.0.34-7.dsc
 4039490cb394b7cfcbc00d64d95c424726faebb104acdef617eb21317e2db97d 9536 fcoe-utils_1.0.34-7.debian.tar.xz
 0ea8bb75b62afe8cccaf53e3aab58137b1ad23a25883d237daee35f6347bbeaf 6146 fcoe-utils_1.0.34-7_arm64.buildinfo
Files:
 10be2f752797b0ad554e11c18cdf32e6 2115 misc optional fcoe-utils_1.0.34-7.dsc
 cebb8741d09e0517c650a46d88cca2a5 9536 misc optional fcoe-utils_1.0.34-7.debian.tar.xz
 8c7b3a307fd801d3117e321915f335dc 6146 misc optional fcoe-utils_1.0.34-7_arm64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEE5Qr9Va3SequXFjqLIdIFiZdLPpYFAmqW2dEUHHRtYW5jaWxs
QGRlYmlhbi5vcmcACgkQIdIFiZdLPpYwqRAAhpSBjGF/dNM6Xe4AQpA/t0kk6r9v
PU2Kk7dJ+cUT+r0bXqjm2FshvdFoqo5ERDPDyahfHNaKZc8Uvy1CIQOwq1pBQZhf
n+gNckivtSMBf40jwWA1GcFBYkMx69a5YUtoYj2mb85Twki2xzukuJ+O+htt1tw5
Vu3tR+57dnkCq1XjCBLZXUEg/aUc9vVDHI61O9+qq3QoM7yPh60ygi2H+TJJt48Z
04+sw0OHBG8AoDtFGcYVuR0Gzb8DWHg2AbGT5ygF65rIIoE9KRxtZ0A9VpDF6Ls8
TypjoY1pJyN1hlMwhFvZQt6ecjMZsqt5wuTyzQBQC8Cj+6p+pxzDeI5cHItO517M
oofKnrL/MWgFcxBRZ2H+1r6aQ8U2mUdOUcOjWZERx8w79qwnALCbrwqxNomDpVqu
9QNB6/Tpou3O0krzUN9YnvjIm4qR1bsHAw6jQXdW3kyjmKCVZ2jh4rk9L6qylY6L
Zl1NbcHawt2KVgqxT1Ii0cS0Gic7hIpXl1f/mTW5qp4qqGnQj4KLu8/SRL+O1/Zz
wOA+eRp6gOu9tCl5gd9uLZIGPTBKRoQ6ysyYuJ1otESkZWw/ZsZMJC2OVI8mmHLW
p5DaKBrcoZKKNOCfJHBsU2f6Y43EbHreMv7a069vJxhMe5qThedRV2OPko3HiSbY
HUC1l8TW1wnsLUw=
=Pn9I
-----END PGP SIGNATURE-----