- Package:
- src:psychtoolbox-3
- Source:
- src:psychtoolbox-3
- Submitter:
- Aurelien Jarno
- Date:
- 2026-08-16 00:55:05 UTC
- Severity:
- normal
- Tags:
Dear maintainer(s),
psychtoolbox-3 fails to build from source with glibc 2.43, currently in
experimental. From the build log:
| Common/Screen/PsychVideoCaptureSupportGStreamer.c: In function ‘PsychVideoBusCallback’:
| Common/Screen/PsychVideoCaptureSupportGStreamer.c:512:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
| 512 | if (PsychPrefStateGet_Verbosity() > 4) printf("PTB-DEBUG: Videobus: Message EOS received.\n"); fflush(NULL);
| | ^~
| Common/Screen/PsychVideoCaptureSupportGStreamer.c:512:108: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
| 512 | if (PsychPrefStateGet_Verbosity() > 4) printf("PTB-DEBUG: Videobus: Message EOS received.\n"); fflush(NULL);
| | ^~~~~~
| Common/Screen/PsychVideoCaptureSupportGStreamer.c: At top level:
| Common/Screen/PsychVideoCaptureSupportGStreamer.c:687:1: warning: missing initializer for field ‘_gst_reserved’ of ‘GstAppSinkCallbacks’ [-Wmissing-field-initializers]
| 687 | };
| | ^
| In file included from Common/Screen/PsychVideoCaptureSupportGStreamer.c:78:
| /usr/include/gstreamer-1.0/gst/app/gstappsink.h:86:16: note: ‘_gst_reserved’ declared here
| 86 | gpointer _gst_reserved[GST_PADDING - 2];
| | ^~~~~~~~~~~~~
| Common/Screen/PsychVideoCaptureSupportGStreamer.c: In function ‘CreateGStreamerElementFromString’:
| Common/Screen/PsychVideoCaptureSupportGStreamer.c:1670:27: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
| 1670 | codecPipelineSpec = strstr(codecSpec, typeSpec);
| | ^
| Common/Screen/PsychVideoCaptureSupportGStreamer.c: In function ‘PsychGSVideoCaptureSetParameter’:
| Common/Screen/PsychVideoCaptureSupportGStreamer.c:5181:44: error: assignment of read-only location ‘*(const char *)strstr(pname, (const char *)":CodecType")’
| 5181 | *(strstr(pname, ":CodecType")) = 0;
| | ^
| Common/Screen/PsychVideoCaptureSupportGStreamer.c:5122:11: warning: unused variable ‘oldfvalue’ [-Wunused-variable]
| 5122 | float oldfvalue = FLT_MAX;
| | ^~~~~~~~~
| Common/Screen/PsychVideoCaptureSupportGStreamer.c: In function ‘PsychGSOpenVideoCaptureDevice’:
| Common/Screen/PsychVideoCaptureSupportGStreamer.c:3415:13: warning: ‘strncpy’ output truncated before terminating nul copying 14 bytes from a string of the same length [-Wstringop-truncation]
| 3415 | strncpy(codecSpec, "DEFAULTenc ", strlen("DEFAULTenc "));
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| error: mkoctfile: building exited with failure status
| error: ignoring const execution_exception& while preparing to exit
| make[1]: *** [debian/rules:59: build-stamp] Error 1
| make[1]: Leaving directory '/build/reproducible-path/psychtoolbox-3-3.0.19.14.dfsg1'
| make: *** [debian/rules:36: 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/psychtoolbox-3_arm64.build
[2] https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=e271fb2e4d76903c77a302aaec1ca22ce31027d0;hb=f762ccf84f122d1354f103a151cba8bde797d521#l19
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
We believe that the bug you reported is fixed in the latest version of
psychtoolbox-3, 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 1128742@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Étienne Mollier <emollier@debian.org> (supplier of updated psychtoolbox-3 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: Wed, 12 Aug 2026 10:23:22 +0200
Source: psychtoolbox-3
Architecture: source
Version: 3.0.22.2+dfsg-9
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Changed-By: Étienne Mollier <emollier@debian.org>
Closes: 1128742
Changes:
psychtoolbox-3 (3.0.22.2+dfsg-9) unstable; urgency=medium
.
* d/watch: move to more robust Github template scan.
* d/patches/*: provide dep3 headers.
* Fix-various-compile-errors-under-C23.patch: new.
This patch introduces an upstream commit that fixes build failures
showing up after upgrade to C23 and glibc 2.43.
Thanks to Mario Kleiner (Closes: #1128742)
* d/control: bump to debhelper-compat 14.
Checksums-Sha1:
50da55b905195f6d2fe906a6c8f15801f28a9154 3484 psychtoolbox-3_3.0.22.2+dfsg-9.dsc
b67ce3c93a282b48187c790565cdf38099b8c51e 59608 psychtoolbox-3_3.0.22.2+dfsg-9.debian.tar.xz
Checksums-Sha256:
beef1e18cba273d0e16212ecce85a612d86cda456113ee8d1895c8d9e1f075fd 3484 psychtoolbox-3_3.0.22.2+dfsg-9.dsc
c24c04f45258a745430ef80c40501754c592385232e836ba9282a52b23a13b8f 59608 psychtoolbox-3_3.0.22.2+dfsg-9.debian.tar.xz
Files:
23b0237e43648d195316048803a0e134 3484 science optional psychtoolbox-3_3.0.22.2+dfsg-9.dsc
22e53146988ff9593b3fa381c5e7112a 59608 science optional psychtoolbox-3_3.0.22.2+dfsg-9.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQJIBAEBCgAyFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmp8fOUUHGVtb2xsaWVy
QGRlYmlhbi5vcmcACgkQeTz2fo8NEdoykA//ZNOcEu+ZxbO/cbH9O8rKLP5lMnt9
SD3mAEUiHcyVUi77cYdBVD86YS5/f957zlLkMtkQXqV2ZrHgRyBdEg+OIx+yp5pQ
PJbP1pkYVh9x9YOHuCk3fFX+rewkMpidOXdV3LAP9CPM9gn3ld3gr2NBKxZmnPi4
Rv5aR2GDoHsDapCewGYuf1QTq511arC2zR/xzykB+3qFVpEju8SgcL78btMcEdFc
HxAF381iDxzqmX4TKnpK7G/n6jo3LVJbKlUCr0WpaZg9vfd+Wy22TkfLlh4lsJx4
JBH0DFZI/4yoERk3PV8lWIM7lsFKkciNPTIu4H7fVDDljo5Q1heg95B2FtIDZz/V
oXQxaOZIwh5lkEZxpWYUfAYT5JHX9+WhzH+wfXveq2vWTAJ3FOLMJqdvYoaRkaA3
sCctP72UOC4FyPfH26/ADqhRnWTcAHHfup2L3Riq3Pu6dvp1OAXV+M8SqGn4OVaD
AxiuOt47jUY2AuySTojEjFfmTG6JLDfLE3kXv5/pwZZ5l+2pK0yPLzLycG9tn/vL
NFeMMRMmi+52ggk8RuTc6lEkD64veWAPcmpxO5Z0w/Vv662TA8YsqI/WaaG7yYJc
KwSaP1/BqS/Eo6JPzU16BHzAo6UEqkTtRaScUpESL8Oi+bQ/HfK1if8m37WBnIqJ
S4P3I8r2MhSiM8M=
=93ZK
-----END PGP SIGNATURE-----