#1127629 lib3ds: autopkgtest failure with glibc 2.43 due to ISO C23 const return types

Package:
src:lib3ds
Source:
src:lib3ds
Submitter:
Aurelien Jarno
Date:
2026-08-18 14:53:02 UTC
Severity:
normal
Tags:
#1127629#5
Date:
2026-02-10 18:46:36 UTC
From:
To:
Dear maintainer,

lib3ds autopkgtest fails when run against libc 2.43, currently in
experimental. From the autopkgtest log:

| 31s autopkgtest [02:42:14]: test build1: [-----------------------
| 31s demo.c: In function ‘Basename’:
| 31s demo.c:1270:15: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 31s  1270 |   char *ptr = strrchr(filename, '/');
| 31s       |               ^~~~~~~
| 31s build: OK
| 32s autopkgtest [02:42:15]: test build1: -----------------------]

...

| 32s autopkgtest [02:42:15]: @@@@@@@@@@@@@@@@@@@@ summary
| 32s build1               FAIL stderr: demo.c: In function ‘Basename’:

The full autopkgtest log is available there:
https://ci.debian.net/data/autopkgtest/unstable/amd64/lib3/lib3ds/68528647/log.gz

The issue is due to ISO C23 declaration of strrchr, which now returns a
pointer to a const-qualified type when the input argument is a pointer
to a const-qualified type [1]. This emits a warning on stderr, which is
then caught by debci.

Regards
Aurelien

#1127629#10
Date:
2026-03-16 13:25:44 UTC
From:
To:
tags 1127629 + patch
thanks

The attached patch should fix the issue

#1127629#17
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

#1127629#24
Date:
2026-08-17 08:10:59 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for lib3ds (versioned as 1.3.0-10.1) and
will uploaded it to DELAYED/5 in a few minutes.
Please feel free to tell me if I should cancel it.

Regards.
Sébastien

#1127629#29
Date:
2026-08-18 14:50:36 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
lib3ds, 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 1127629@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Vila <sanvila@debian.org> (supplier of updated lib3ds 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, 18 Aug 2026 16:25:00 +0200
Source: lib3ds
Architecture: source
Version: 1.3.0-11
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Santiago Vila <sanvila@debian.org>
Closes: 1127629
Changes:
 lib3ds (1.3.0-11) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Sebastien Bacher ]
   * Fix autopkgtest failure due to C23 strrchr const-correctness.
     Closes: #1127629.
 .
   [ Santiago Vila ]
   * Drop "Priority: optional" (default).
   * Update standards-version.
   * Switch .gitlab-ci.yml to salsa-ci.yml.
   * Fine-tune salsa-ci.yml.
Checksums-Sha1:
 b43072842cf19ad4ac32ddc7a23fb7eec680318b 1711 lib3ds_1.3.0-11.dsc
 5570a37743d7d53a949eb082417a587e8621e3c2 14160 lib3ds_1.3.0-11.debian.tar.xz
 4851dc7652e8a0794f5f6ae240b61c53b982a5a1 5436 lib3ds_1.3.0-11_source.buildinfo
Checksums-Sha256:
 965d95c2845f04c61e91e60db83a953e1995b7971d512ad23f1cec8c2f8a2ea4 1711 lib3ds_1.3.0-11.dsc
 f8ff7a824789ed241434fdc7bfe6f4e04d67afc23ba8facbcef77373513173d3 14160 lib3ds_1.3.0-11.debian.tar.xz
 afbae46d184e971e29fca02cb2c6db454baeb05c268961fe49b8804a321e7525 5436 lib3ds_1.3.0-11_source.buildinfo
Files:
 8083681c60d4b848940a7e545d481b82 1711 libs optional lib3ds_1.3.0-11.dsc
 1dee0213c6ac43a7f0940936bc207428 14160 libs optional lib3ds_1.3.0-11.debian.tar.xz
 0bbfba9bd2d9590231c38ad3a91cf67f 5436 libs optional lib3ds_1.3.0-11_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmqEa5gACgkQQc5/C58b
izL4EAf8CSoq6F3/RYiVUKFbqNeafUXXx5v6ctEaLZyujC78xuJM0I0njlJq5TfW
EZImFp3zi40QPadt/JjFEYB3xszgVFgJesjyvzNmctDuJl3bLXrZ2jyB6GPJkTBW
4nxqO5QFRbR1JNXdD9C17w05d7NTINrd1cU6CKs4KAOKConmZiDTZurPHPWcKw+E
8wVpvJ6/AsrgWtHg8gOsAK6E4u8D9kIvOlBg3PqcSpED2aCsgj00HkNEKsbidK+T
njtoI/CFGZAOxGi3aTgXYOPVMJIFwbzbOoYyr/q4CYdXF33dTLlVUElKLqMHRHq7
MxTgrJ8/1X/gxH1lviFOvdEq4ydmQg==
=fkbP
-----END PGP SIGNATURE-----