#1098089 websockify: ftbfs with GCC-15

#1098089#5
Date:
2025-02-17 18:00:07 UTC
From:
To:
[This bug is NOT targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/websockify_0.12.0+dfsg1-4_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are new warnings resulting in build failures
with -Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-15/porting_to.html

[...]
Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=user42
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc -b
dpkg-buildpackage: info: source package websockify
dpkg-buildpackage: info: source version 0.12.0+dfsg1-4
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Thomas Goirand <zigo@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
dpkg-source: info: using options from websockify-0.12.0+dfsg1/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/ --extend-diff-ignore=^[.]gitreview$
 debian/rules clean
make: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
dh clean  --with python3
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/build/reproducible-path/websockify-0.12.0+dfsg1'
make[1]: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
python3 setup.py clean
running clean
rm -rf build .stestr websockify.egg-info .pytest_cache
find . -iname '*.pyc' -delete
for i in $(find . -type d -iname __pycache__) ; do rm -rf $i ; done
make[1]: Leaving directory '/build/reproducible-path/websockify-0.12.0+dfsg1'
   dh_clean
 debian/rules binary
make: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
dh binary  --with python3
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   debian/rules override_dh_auto_build
make[1]: Entering directory '/build/reproducible-path/websockify-0.12.0+dfsg1'
make[1]: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
make rebind.so
make[2]: Entering directory '/build/reproducible-path/websockify-0.12.0+dfsg1'
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/websockify-0.12.0+dfsg1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -Wdate-time -D_FORTIFY_SOURCE=2  -c -o rebind.o rebind.c
rebind.c: In function ‘bind’:
rebind.c:75:22: error: too many arguments to function ‘func’; expected 0, have 3
   75 |         ret = (long) func(sockfd, addr, addrlen);
      |                      ^~~~ ~~~~~~
rebind.c:90:18: error: too many arguments to function ‘func’; expected 0, have 3
   90 |     ret = (long) func(sockfd, &addr_tmp, addrlen_tmp);
      |                  ^~~~ ~~~~~~
make[2]: *** [<builtin>: rebind.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/websockify-0.12.0+dfsg1'
make[1]: *** [debian/rules:16: override_dh_auto_build] Error 2
make[1]: Leaving directory '/build/reproducible-path/websockify-0.12.0+dfsg1'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1098089#14
Date:
2025-09-28 14:02:04 UTC
From:
To:
Hello,

Bug #1098089 in websockify reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/openstack-team/python/websockify/-/commit/35adcc353867300e7bc9cb129fcd8cafd10dd229

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1098089

#1098089#21
Date:
2025-09-28 14:58:48 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
websockify, 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 1098089@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <zigo@debian.org> (supplier of updated websockify 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: Sun, 28 Sep 2025 15:38:37 +0200
Source: websockify
Architecture: source
Version: 0.13.0+dfsg1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenStack <team+openstack@tracker.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
Closes: 1098089
Changes:
 websockify (0.13.0+dfsg1-2) unstable; urgency=medium
 .
   * Uploading to unstable.
   * Add fix-ftbfs-with-gcc15.patch (Closes: #1098089).
Checksums-Sha1:
 659b1ca95b6f6878c573e0fb1334fb4e16177e77 2232 websockify_0.13.0+dfsg1-2.dsc
 1fd2ef8409f5d8363ad0a093e2503770e43f3149 13500 websockify_0.13.0+dfsg1-2.debian.tar.xz
 d4a816a32a4c99e458a7d61d8b9ecfc0796be1fd 8264 websockify_0.13.0+dfsg1-2_amd64.buildinfo
Checksums-Sha256:
 2f0bf944a59dce99c0c06e899f3b90a3421d35358be9b6937d9ee20460886cb9 2232 websockify_0.13.0+dfsg1-2.dsc
 554d50f53f3eb397ea1a763010b8c93f80d636349af71448b45eac810686173d 13500 websockify_0.13.0+dfsg1-2.debian.tar.xz
 c461a679822f1b366b2187b38d2f827d328d6ae169f925ac38df6f7f0db02be0 8264 websockify_0.13.0+dfsg1-2_amd64.buildinfo
Files:
 d1394773bd5f8b707ab8d92d04b8c032 2232 python optional websockify_0.13.0+dfsg1-2.dsc
 2b73c877132b34f8eadd83a741bbca53 13500 python optional websockify_0.13.0+dfsg1-2.debian.tar.xz
 33128013afecd7643c41cdca8030484d 8264 python optional websockify_0.13.0+dfsg1-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmjZP+MACgkQ1BatFaxr
Q/5Btw/7B/3BTRfRaHMPyRhBfqU0cKjLAkDH3S3v8sspeQWdQ/45qGswIoI8S42M
tTyhNCFfPg9M6P0WnWzo+6fKGky9BY8rbCteLHO86KyLGVBMb9NAEU+7mCMwSlNL
bdkRqGkmwymKeVfCbwDV3HtqdchPzGuUtOQB53aA1guljnlL1J0ydjzr3MIgYJdU
n8/721Q+x1ZGxbrbNryS34qihLv56Qdy7KOvz6lNgZo52LzQi95+bofrqPl/CzlR
kabjvybgFflyyWX+illgawkm7Af7JaCpuQSaYwfqoh1Ji8mPnbl0oqkb2zkTW+0M
+yiJ6zFCybjgBaqks+3J9kvI0RLYZRNi41Zwp10EBUFCjuEnYwZ1mbURVMJS7O/o
VC+6Zx5qc1TRSo+DZnotpJsO3sacQgSqtgLw0CXoPe+PNy+b6v1JNUz2sReLLiMZ
TCBdHEFELXu99v90oQCVKXY20m7VY4n+Q+hcdKXkko4HULuYJ11RwXoKLcyw63Ri
Wfkmmh3uEfdW7jJ3iK/hWsbYJx4o4jyAP3E1w0Y0yCXIk8cuY8fcSJdKGJBpGWnI
rxbd0UraC0HP1zTjpdCNYJ4EhXE8wyWBEHNwirJaEiWIXL/blvlQ3uJ2V50O/0/u
noMSavJiCGLTbsgbDHsQgqumHSyMTMuSWD9vikgzG2mCJ4xDdsk=
=B4yA
-----END PGP SIGNATURE-----