Source: bctoolbox
Version: 0.6.0-1
Severity: important
Tags: sid buster

Hi,

mongrel2 FTBFS when compiled against mbed TLS 2.7. This version fixes
some security issues, so I would like to upload it reasonably quickly.
This is the only package which FTBFS with the new version.

Build log extract (full log attached):
> /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:421:4: error: 'mbedtls_sha1' is 
> deprecated [-Werror=deprecated-declarations]
>     mbedtls_sha1(crt->raw.p, crt->raw.len, buffer);
>     ^~~~~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:38:0:
> /usr/include/mbedtls/sha1.h:320:39: note: declared here
>  MBEDTLS_DEPRECATED static inline void mbedtls_sha1( const unsigned char 
> *input,
>                                        ^~~~~~~~~~~~
> /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:427:4: error: 'mbedtls_sha256' is 
> deprecated [-Werror=deprecated-declarations]
>     mbedtls_sha256(crt->raw.p, crt->raw.len, buffer, 1); /* last argument is 
> a boolean, indicate to output sha-224 and not sha-256 */
>     ^~~~~~~~~~~~~~
> In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:39:0:
> /usr/include/mbedtls/sha256.h:279:39: note: declared here
>  MBEDTLS_DEPRECATED static inline void mbedtls_sha256(
>                                        ^~~~~~~~~~~~~~

I am guessing that disabling -Werror will fix this.

Thanks,
James
dpkg-buildpackage: info: source package bctoolbox
dpkg-buildpackage: info: source version 0.6.0-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Bernhard Schmidt <be...@debian.org>
 dpkg-source --before-build bctoolbox-0.6.0
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean --buildsystem=cmake
   dh_auto_clean -O--buildsystem=cmake
   dh_clean -O--buildsystem=cmake
 debian/rules build-arch
dh build-arch --buildsystem=cmake
   dh_update_autotools_config -a -O--buildsystem=cmake
   dh_autoreconf -a -O--buildsystem=cmake
aclocal: warning: couldn't open directory 'm4': No such file or directory
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:25: installing './compile'
configure.ac:23: installing './config.guess'
configure.ac:23: installing './config.sub'
configure.ac:30: installing './install-sh'
configure.ac:30: installing './missing'
src/Makefile.am: installing './depcomp'
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- -DCMAKE_SKIP_RPATH=ON -DENABLE_TESTS_COMPONENT=OFF
        cd obj-x86_64-linux-gnu && cmake .. -DCMAKE_INSTALL_PREFIX=/usr 
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None 
-DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var 
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON 
-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_SKIP_RPATH=ON 
-DENABLE_TESTS_COMPONENT=OFF
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find Git (missing: GIT_EXECUTABLE) (Required is at least version 
"1.7.10")
-- Setting install rpath to /usr/lib/x86_64-linux-gnu
-- Looking for mbedtls_ssl_init
-- Looking for mbedtls_ssl_init - found
-- Looking for mbedtls_ssl_get_dtls_srtp_protection_profile
-- Looking for mbedtls_ssl_get_dtls_srtp_protection_profile - not found
-- Found MbedTLS: /usr/include  
-- Using mbedTLS
-- DTLS SRTP not available
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for dladdr in dl
-- Looking for dladdr in dl - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY


-- Build files have been written to: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build -a -O--buildsystem=cmake
        cd obj-x86_64-linux-gnu && make -j8
make[1]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
/usr/bin/cmake -H/<<PKGBUILDDIR>> -B/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu 
--check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start 
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles 
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[2]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make -f src/CMakeFiles/bctoolbox-static.dir/build.make 
src/CMakeFiles/bctoolbox-static.dir/depend
make -f src/CMakeFiles/bctoolbox.dir/build.make 
src/CMakeFiles/bctoolbox.dir/depend
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends 
"Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/src 
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src 
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/CMakeFiles/bctoolbox-static.dir/DependInfo.cmake
 --color=
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends 
"Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/src 
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src 
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/CMakeFiles/bctoolbox.dir/DependInfo.cmake
 --color=
Scanning dependencies of target bctoolbox
Scanning dependencies of target bctoolbox-static
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make -f src/CMakeFiles/bctoolbox.dir/build.make 
src/CMakeFiles/bctoolbox.dir/build
make -f src/CMakeFiles/bctoolbox-static.dir/build.make 
src/CMakeFiles/bctoolbox-static.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 20%] Building C object src/CMakeFiles/bctoolbox-static.dir/vconnect.c.o
[ 20%] Building C object src/CMakeFiles/bctoolbox.dir/containers/list.c.o
[ 20%] Building C object src/CMakeFiles/bctoolbox-static.dir/utils/port.c.o
[ 20%] Building C object src/CMakeFiles/bctoolbox.dir/logging/logging.c.o
[ 25%] Building C object src/CMakeFiles/bctoolbox-static.dir/logging/logging.c.o
[ 30%] Building C object src/CMakeFiles/bctoolbox-static.dir/containers/list.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox-static.dir/vconnect.c.o   -c 
/<<PKGBUILDDIR>>/src/vconnect.c
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-Dbctoolbox_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox.dir/logging/logging.c.o   -c 
/<<PKGBUILDDIR>>/src/logging/logging.c
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox-static.dir/logging/logging.c.o   -c 
/<<PKGBUILDDIR>>/src/logging/logging.c
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox-static.dir/utils/port.c.o   -c 
/<<PKGBUILDDIR>>/src/utils/port.c
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox-static.dir/containers/list.c.o   -c 
/<<PKGBUILDDIR>>/src/containers/list.c
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-Dbctoolbox_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox.dir/containers/list.c.o   -c 
/<<PKGBUILDDIR>>/src/containers/list.c
[ 35%] Building C object src/CMakeFiles/bctoolbox-static.dir/vfs.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox-static.dir/vfs.c.o   -c /<<PKGBUILDDIR>>/src/vfs.c
[ 40%] Building C object src/CMakeFiles/bctoolbox.dir/utils/port.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-Dbctoolbox_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox.dir/utils/port.c.o   -c /<<PKGBUILDDIR>>/src/utils/port.c
[ 45%] Building C object src/CMakeFiles/bctoolbox-static.dir/parser.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox-static.dir/parser.c.o   -c /<<PKGBUILDDIR>>/src/parser.c
[ 50%] Building C object src/CMakeFiles/bctoolbox-static.dir/crypto/mbedtls.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox-static.dir/crypto/mbedtls.c.o   -c 
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c
[ 55%] Building C object src/CMakeFiles/bctoolbox.dir/vfs.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-Dbctoolbox_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox.dir/vfs.c.o   -c /<<PKGBUILDDIR>>/src/vfs.c
[ 60%] Building CXX object 
src/CMakeFiles/bctoolbox-static.dir/containers/map.cc.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++  -DHAVE_CONFIG_H 
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -std=gnu++11  -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-o CMakeFiles/bctoolbox-static.dir/containers/map.cc.o -c 
/<<PKGBUILDDIR>>/src/containers/map.cc
[ 65%] Building CXX object 
src/CMakeFiles/bctoolbox-static.dir/utils/exception.cc.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++  -DHAVE_CONFIG_H 
-I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -std=gnu++11  -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-o CMakeFiles/bctoolbox-static.dir/utils/exception.cc.o -c 
/<<PKGBUILDDIR>>/src/utils/exception.cc
[ 70%] Building C object src/CMakeFiles/bctoolbox.dir/vconnect.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-Dbctoolbox_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox.dir/vconnect.c.o   -c /<<PKGBUILDDIR>>/src/vconnect.c
[ 75%] Building C object src/CMakeFiles/bctoolbox.dir/parser.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-Dbctoolbox_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox.dir/parser.c.o   -c /<<PKGBUILDDIR>>/src/parser.c
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function 
'bctbx_x509_certificate_get_fingerprint':
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:421:4: error: 'mbedtls_sha1' is 
deprecated [-Werror=deprecated-declarations]
    mbedtls_sha1(crt->raw.p, crt->raw.len, buffer);
    ^~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:38:0:
/usr/include/mbedtls/sha1.h:320:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_sha1( const unsigned char *input,
                                       ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:427:4: error: 'mbedtls_sha256' is 
deprecated [-Werror=deprecated-declarations]
    mbedtls_sha256(crt->raw.p, crt->raw.len, buffer, 1); /* last argument is a 
boolean, indicate to output sha-224 and not sha-256 */
    ^~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:39:0:
/usr/include/mbedtls/sha256.h:279:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_sha256(
                                       ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:433:4: error: 'mbedtls_sha256' is 
deprecated [-Werror=deprecated-declarations]
    mbedtls_sha256(crt->raw.p, crt->raw.len, buffer, 0);
    ^~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:39:0:
/usr/include/mbedtls/sha256.h:279:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_sha256(
                                       ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:439:4: error: 'mbedtls_sha512' is 
deprecated [-Werror=deprecated-declarations]
    mbedtls_sha512(crt->raw.p, crt->raw.len, buffer, 1); /* last argument is a 
boolean, indicate to output sha-384 and not sha-512 */
    ^~~~~~~~~~~~~~
In file included from /usr/include/mbedtls/entropy.h:36:0,
                 from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:35:
/usr/include/mbedtls/sha512.h:281:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_sha512(
                                       ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:445:4: error: 'mbedtls_sha512' is 
deprecated [-Werror=deprecated-declarations]
    mbedtls_sha512(crt->raw.p, crt->raw.len, buffer, 1); /* last argument is a 
boolean, indicate to output sha-384 and not sha-512 */
    ^~~~~~~~~~~~~~
In file included from /usr/include/mbedtls/entropy.h:36:0,
                 from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:35:
/usr/include/mbedtls/sha512.h:281:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_sha512(
                                       ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function 'bctbx_CreateDHMContext':
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:705:4: error: 
'mbedtls_deprecated_constant_t' is deprecated [-Werror=deprecated-declarations]
    if ((mbedtls_mpi_read_string(&(mbedtlsDhmContext->P), 16, 
MBEDTLS_DHM_RFC3526_MODP_2048_P) != 0) ||
    ^~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:706:4: error: 
'mbedtls_deprecated_constant_t' is deprecated [-Werror=deprecated-declarations]
    (mbedtls_mpi_read_string(&(mbedtlsDhmContext->G), 16, 
MBEDTLS_DHM_RFC3526_MODP_2048_G) != 0)) {
    ^
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:714:4: error: 
'mbedtls_deprecated_constant_t' is deprecated [-Werror=deprecated-declarations]
    if ((mbedtls_mpi_read_string(&(mbedtlsDhmContext->P), 16, 
MBEDTLS_DHM_RFC3526_MODP_3072_P) != 0) ||
    ^~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:715:4: error: 
'mbedtls_deprecated_constant_t' is deprecated [-Werror=deprecated-declarations]
    (mbedtls_mpi_read_string(&(mbedtlsDhmContext->G), 16, 
MBEDTLS_DHM_RFC3526_MODP_3072_G) != 0)) {
    ^
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function 'bctbx_sha256':
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:1356:2: error: 'mbedtls_sha256' is 
deprecated [-Werror=deprecated-declarations]
  mbedtls_sha256(input, inputLength, hashOutput, 0); /* last param to zero to 
select SHA256 and not SHA224 */
  ^~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:39:0:
/usr/include/mbedtls/sha256.h:279:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_sha256(
                                       ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function 'bctbx_md5':
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:1407:2: error: 'mbedtls_md5' is 
deprecated [-Werror=deprecated-declarations]
  mbedtls_md5(input, inputLength, output);
  ^~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:37:0:
/usr/include/mbedtls/md5.h:312:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_md5( const unsigned char *input,
                                       ^~~~~~~~~~~
[ 85%] Building CXX object src/CMakeFiles/bctoolbox.dir/containers/map.cc.o
[ 85%] Building CXX object src/CMakeFiles/bctoolbox.dir/utils/exception.cc.o
[ 90%] Building C object src/CMakeFiles/bctoolbox.dir/crypto/mbedtls.c.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++  -DHAVE_CONFIG_H 
-Dbctoolbox_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC   -std=gnu++11  
-Wall -Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-o CMakeFiles/bctoolbox.dir/utils/exception.cc.o -c 
/<<PKGBUILDDIR>>/src/utils/exception.cc
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc -DHAVE_CONFIG_H 
-Dbctoolbox_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC    -Wall 
-Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-Werror -Wdeclaration-after-statement -Wstrict-prototypes -o 
CMakeFiles/bctoolbox.dir/crypto/mbedtls.c.o   -c 
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++  -DHAVE_CONFIG_H 
-Dbctoolbox_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC   -std=gnu++11  
-Wall -Wuninitialized -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter 
-Wno-error=unknown-pragmas -Wno-missing-field-initializers -fno-strict-aliasing 
-o CMakeFiles/bctoolbox.dir/containers/map.cc.o -c 
/<<PKGBUILDDIR>>/src/containers/map.cc
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function 
'bctbx_x509_certificate_get_fingerprint':
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:421:4: error: 'mbedtls_sha1' is 
deprecated [-Werror=deprecated-declarations]
    mbedtls_sha1(crt->raw.p, crt->raw.len, buffer);
    ^~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:38:0:
/usr/include/mbedtls/sha1.h:320:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_sha1( const unsigned char *input,
                                       ^~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:427:4: error: 'mbedtls_sha256' is 
deprecated [-Werror=deprecated-declarations]
    mbedtls_sha256(crt->raw.p, crt->raw.len, buffer, 1); /* last argument is a 
boolean, indicate to output sha-224 and not sha-256 */
    ^~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:39:0:
/usr/include/mbedtls/sha256.h:279:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_sha256(
                                       ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:433:4: error: 'mbedtls_sha256' is 
deprecated [-Werror=deprecated-declarations]
    mbedtls_sha256(crt->raw.p, crt->raw.len, buffer, 0);
    ^~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:39:0:
/usr/include/mbedtls/sha256.h:279:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_sha256(
                                       ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:439:4: error: 'mbedtls_sha512' is 
deprecated [-Werror=deprecated-declarations]
    mbedtls_sha512(crt->raw.p, crt->raw.len, buffer, 1); /* last argument is a 
boolean, indicate to output sha-384 and not sha-512 */
    ^~~~~~~~~~~~~~
In file included from /usr/include/mbedtls/entropy.h:36:0,
                 from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:35:
/usr/include/mbedtls/sha512.h:281:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_sha512(
                                       ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:445:4: error: 'mbedtls_sha512' is 
deprecated [-Werror=deprecated-declarations]
    mbedtls_sha512(crt->raw.p, crt->raw.len, buffer, 1); /* last argument is a 
boolean, indicate to output sha-384 and not sha-512 */
    ^~~~~~~~~~~~~~
In file included from /usr/include/mbedtls/entropy.h:36:0,
                 from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:35:
/usr/include/mbedtls/sha512.h:281:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_sha512(
                                       ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function 'bctbx_CreateDHMContext':
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:705:4: error: 
'mbedtls_deprecated_constant_t' is deprecated [-Werror=deprecated-declarations]
    if ((mbedtls_mpi_read_string(&(mbedtlsDhmContext->P), 16, 
MBEDTLS_DHM_RFC3526_MODP_2048_P) != 0) ||
    ^~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:706:4: error: 
'mbedtls_deprecated_constant_t' is deprecated [-Werror=deprecated-declarations]
    (mbedtls_mpi_read_string(&(mbedtlsDhmContext->G), 16, 
MBEDTLS_DHM_RFC3526_MODP_2048_G) != 0)) {
    ^
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:714:4: error: 
'mbedtls_deprecated_constant_t' is deprecated [-Werror=deprecated-declarations]
    if ((mbedtls_mpi_read_string(&(mbedtlsDhmContext->P), 16, 
MBEDTLS_DHM_RFC3526_MODP_3072_P) != 0) ||
    ^~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:715:4: error: 
'mbedtls_deprecated_constant_t' is deprecated [-Werror=deprecated-declarations]
    (mbedtls_mpi_read_string(&(mbedtlsDhmContext->G), 16, 
MBEDTLS_DHM_RFC3526_MODP_3072_G) != 0)) {
    ^
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function 'bctbx_sha256':
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:1356:2: error: 'mbedtls_sha256' is 
deprecated [-Werror=deprecated-declarations]
  mbedtls_sha256(input, inputLength, hashOutput, 0); /* last param to zero to 
select SHA256 and not SHA224 */
  ^~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:39:0:
/usr/include/mbedtls/sha256.h:279:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_sha256(
                                       ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function 'bctbx_md5':
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:1407:2: error: 'mbedtls_md5' is 
deprecated [-Werror=deprecated-declarations]
  mbedtls_md5(input, inputLength, output);
  ^~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:37:0:
/usr/include/mbedtls/md5.h:312:39: note: declared here
 MBEDTLS_DEPRECATED static inline void mbedtls_md5( const unsigned char *input,
                                       ^~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [src/CMakeFiles/bctoolbox-static.dir/build.make:210: 
src/CMakeFiles/bctoolbox-static.dir/crypto/mbedtls.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[3]: *** [src/CMakeFiles/bctoolbox.dir/build.make:210: 
src/CMakeFiles/bctoolbox.dir/crypto/mbedtls.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:127: 
src/CMakeFiles/bctoolbox-static.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:164: src/CMakeFiles/bctoolbox.dir/all] Error 
2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:155: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: cd obj-x86_64-linux-gnu && make -j8 returned exit code 2
make: *** [debian/rules:8: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
status 2

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to