#1136783 switchsh: FTBFS: switchsh.c:55:18: error: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] #1136783
- Package:
- src:switchsh
- Source:
- src:switchsh
- Submitter:
- Santiago Vila
- Date:
- 2026-06-26 17:21:03 UTC
- Severity:
- normal
- Tags:
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202605/ About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages. If you cannot reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible. If this is really a bug in one of the build-depends, please use reassign and add an affects on src:switchsh, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean debian/rules override_dh_auto_clean make[1]: Entering directory '/<<PKGBUILDDIR>>' rm -f switchsh make[1]: Leaving directory '/<<PKGBUILDDIR>>' dh_clean debian/rules binary dh binary dh_update_autotools_config dh_autoreconf debian/rules override_dh_auto_build make[1]: Entering directory '/<<PKGBUILDDIR>>' /usr/bin/make switchsh make[2]: Entering directory '/<<PKGBUILDDIR>>' x86_64-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pedantic -Werror -Wextra -Wformat -Wformat-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now switchsh.c -o switchsh switchsh.c: In function ‘main’: switchsh.c:55:18: error: implicit declaration of function ‘open’; did you mean ‘popen’? [-Wimplicit-function-declaration] 55 | int bashfd = open(bashpath, O_PATH | O_NOFOLLOW | O_CLOEXEC); | ^~~~ | popen switchsh.c:55:33: error: ‘O_PATH’ undeclared (first use in this function) 55 | int bashfd = open(bashpath, O_PATH | O_NOFOLLOW | O_CLOEXEC); | ^~~~~~ switchsh.c:55:33: note: each undeclared identifier is reported only once for each function it appears in switchsh.c:55:42: error: ‘O_NOFOLLOW’ undeclared (first use in this function); did you mean ‘UMOUNT_NOFOLLOW’? 55 | int bashfd = open(bashpath, O_PATH | O_NOFOLLOW | O_CLOEXEC); | ^~~~~~~~~~ | UMOUNT_NOFOLLOW make[2]: *** [<builtin>: switchsh] Error 1 make[2]: Leaving directory '/<<PKGBUILDDIR>>' make[1]: *** [debian/rules:12: override_dh_auto_build] Error 2 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:22: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------
Dear maintainer, I've prepared an NMU for switchsh (versioned as 0~20070801-5.1) and uploaded it to DELAYED/14. Please feel free to tell me if I should cancel it. cu Adrian
We believe that the bug you reported is fixed in the latest version of switchsh, 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 1136783@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Adrian Bunk <bunk@debian.org> (supplier of updated switchsh 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: Sat, 13 Jun 2026 08:10:23 +0300 Source: switchsh Architecture: source Version: 0~20070801-5.1 Distribution: unstable Urgency: medium Maintainer: Raphael Geissert <geissert@debian.org> Changed-By: Adrian Bunk <bunk@debian.org> Closes: 1136783 Changes: switchsh (0~20070801-5.1) unstable; urgency=medium . * Non-maintainer upload. * Fix FTBFS. (Closes: #1136783) Checksums-Sha1: 8280997dd20427d21309783b822abba05473a5bf 1863 switchsh_0~20070801-5.1.dsc acc88f347e52ae2f6fb4a8ce0b7e8948e4aa4a27 6656 switchsh_0~20070801-5.1.debian.tar.xz Checksums-Sha256: a4c008d32730b5c21af5593c6987b3813d7a8d2ab3159946f71f791dec6c7d58 1863 switchsh_0~20070801-5.1.dsc b3963d4b2ad546f696572e2ccf18044fdbc6e82ac300af95baeb0b416f71c6a0 6656 switchsh_0~20070801-5.1.debian.tar.xz Files: 4667659c5f1c892c639afad30937ce70 1863 utils optional switchsh_0~20070801-5.1.dsc f95f8b17a7ff8e4f74cc7b54cc283e10 6656 utils optional switchsh_0~20070801-5.1.debian.tar.xz -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmos5pAACgkQiNJCh6LY mLH71g/9HFYYNuAOhcFOzj22lYA7etaa8zEPTo060Lr5i6N9RjnvZ9HViE6xDOqF xafOwdmHS82xWkQhV01AkiZcetRWKBU+77VhnAvv92FshrVix7UqBegReb/jTz0o OM9ubmUUT6MtHAwghZDoUGjuV18uszIK0ejLAmHWrxNDc6AhQmSoKzm2thp+Jmzl 04O2M8BIGu9/gRRfYysCODGTCDMJqh3p0AraqQxBquRtSRdMha9FuGOFWZuW9WLC pqLESqvJ7SYKLKH/Rj/anM8sWdWsH4evekNhCp4xwAtnRbFO9eX4Ukfz+k2l2bMi wbNS3/DLeJJ4elRSdAfdcJ+KV8peOAb4SxffhFotEWYMW5whcrLzvIhHAczys94r BVB48oHFerxeUZkgQOFAtCvrqAZfbX3OVyDe+n71c0y/RstEjFpbZxgIFlj8/+yX jstffL8oHX2+BOVN/auGZcfof+caDPu6tTgMbGNeGvFy8aHGkOmwsUtIYkznPEXz b5ZoiXNLqsTwbcRFA49C/xSAAfo1q90y/ZUyI1VibdIwnKReKr86cE+t2Xzh4gGf sDUs16DYjor7UGaGYoSxpCdJGGhxdbt2Kjpj0JCzLSM5BPYSg2E+SFNMtrhv13FH OjR/S6UyhmdkaRqDKF9VL7qBL2MEJy5lU1tkXi0OiPvlrB/+JsU= =fBAk -----END PGP SIGNATURE-----