Package: src:mosh
Version: 1.3.2-2
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-arch
dh build-arch --parallel --with autoreconf
   dh_update_autotools_config -a -O--parallel
   dh_autoreconf -a -O--parallel
configure.ac:21: installing './ar-lib'
configure.ac:13: installing './compile'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
src/crypto/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- \
        --disable-silent-rules \

[... snipped ...]

make[4]: Entering directory '/<<PKGBUILDDIR>>/src/statesync'
c++ -DHAVE_CONFIG_H -I. -I../..  -I./../util -I./../terminal -I../protobufs 
-pthread -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wextra -pedantic 
-Wno-long-long -Weffc++ -Wmissing-declarations -fno-strict-overflow 
-D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param 
ssp-buffer-size=1 -fPIE -fno-default-inline -pipe -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security -c -o 
completeterminal.o completeterminal.cc
c++ -DHAVE_CONFIG_H -I. -I../..  -I./../util -I./../terminal -I../protobufs 
-pthread -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wextra -pedantic 
-Wno-long-long -Weffc++ -Wmissing-declarations -fno-strict-overflow 
-D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param 
ssp-buffer-size=1 -fPIE -fno-default-inline -pipe -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security -c -o 
user.o user.cc
rm -f libmoshstatesync.a
ar cru libmoshstatesync.a completeterminal.o user.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libmoshstatesync.a
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/statesync'
Making all in frontend
make[4]: Entering directory '/<<PKGBUILDDIR>>/src/frontend'
c++ -DHAVE_CONFIG_H -I. -I../..  -I./../statesync -I./../terminal 
-I./../network -I./../crypto -I../protobufs -I./../util -D_DEFAULT_SOURCE 
-D_XOPEN_SOURCE=600 -pthread  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror 
-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations 
-fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-all 
-Wstack-protector --param ssp-buffer-size=1 -fPIE -fno-default-inline -pipe -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security -c 
-o mosh-client.o mosh-client.cc
c++ -DHAVE_CONFIG_H -I. -I../..  -I./../statesync -I./../terminal 
-I./../network -I./../crypto -I../protobufs -I./../util -D_DEFAULT_SOURCE 
-D_XOPEN_SOURCE=600 -pthread  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror 
-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations 
-fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-all 
-Wstack-protector --param ssp-buffer-size=1 -fPIE -fno-default-inline -pipe -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security -c 
-o stmclient.o stmclient.cc
c++ -DHAVE_CONFIG_H -I. -I../..  -I./../statesync -I./../terminal 
-I./../network -I./../crypto -I../protobufs -I./../util -D_DEFAULT_SOURCE 
-D_XOPEN_SOURCE=600 -pthread  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror 
-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations 
-fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-all 
-Wstack-protector --param ssp-buffer-size=1 -fPIE -fno-default-inline -pipe -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security -c 
-o terminaloverlay.o terminaloverlay.cc
c++ -Wall -Werror -Wextra -pedantic -Wno-long-long -Weffc++ 
-Wmissing-declarations -fno-strict-overflow -D_FORTIFY_SOURCE=2 
-fstack-protector-all -Wstack-protector --param ssp-buffer-size=1 -fPIE 
-fno-default-inline -pipe -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -Wformat 
-Werror=format-security -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,relro -o 
mosh-client mosh-client.o stmclient.o terminaloverlay.o 
../crypto/libmoshcrypto.a ../network/libmoshnetwork.a 
../statesync/libmoshstatesync.a ../terminal/libmoshterminal.a 
../util/libmoshutil.a ../protobufs/libmoshprotos.a -lm -ltinfo -lprotobuf 
-pthread  -lssl -lcrypto -lutil -lz -lutempter 
c++ -DHAVE_CONFIG_H -I. -I../..  -I./../statesync -I./../terminal 
-I./../network -I./../crypto -I../protobufs -I./../util -D_DEFAULT_SOURCE 
-D_XOPEN_SOURCE=600 -pthread  -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror 
-Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations 
-fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-all 
-Wstack-protector --param ssp-buffer-size=1 -fPIE -fno-default-inline -pipe -g 
-O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security -c 
-o mosh-server.o mosh-server.cc
mosh-server.cc: In function 'void serve(int, Terminal::Complete&, 
ServerConnection&, long int, long int)':
mosh-server.cc:768:25: error: '%s' directive output may be truncated writing up 
to 1024 bytes into a region of size 64 [-Werror=format-truncation=]
      snprintf( tmp, 64, "%s via mosh [%d]", host, getpid() );
                         ^~~~~~~~~~~~~~~~~~  ~~~~
In file included from /usr/include/stdio.h:862,
                 from /usr/include/c++/8/cstdio:42,
                 from /usr/include/c++/8/ext/string_conversions.h:43,
                 from /usr/include/c++/8/bits/basic_string.h:6391,
                 from /usr/include/c++/8/string:52,
                 from /usr/include/c++/8/bits/locale_classes.h:40,
                 from /usr/include/c++/8/bits/ios_base.h:41,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/istream:38,
                 from /usr/include/c++/8/sstream:38,
                 from mosh-server.cc:41:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:35: note: 
'__builtin___snprintf_chk' output between 14 and 1048 bytes into a destination 
of size 64
   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
          ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        __bos (__s), __fmt, __va_arg_pack ());
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[4]: *** [Makefile:448: mosh-server.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/frontend'
make[3]: *** [Makefile:344: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:392: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:333: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j1 returned exit code 2
make: *** [debian/rules:18: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
status 2
--------------------------------------------------------------------------------

The build was made with "dpkg-buildpackage -B" in my autobuilder.
Most probably, it also fails here in reproducible builds:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/mosh.html

where you can get a full build log if you need it.

If this is really a bug in one of the build-depends, please use reassign and 
affects,
so that this is still visible in the BTS web page for this package.

Thanks.

Reply via email to