[Debian-iot-maintainers] Bug#925631: alljoyn-thin-client-1509: ftbfs with GCC-9

Matthias Klose doko at debian.org
Wed Mar 27 19:44:02 GMT 2019


Package: src:alljoyn-thin-client-1509
Version: 15.09a-3
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-9

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-9/g++-9, but succeeds to build with gcc-8/g++-8. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc9-20190321/alljoyn-thin-client-1509_15.09a-3_unstable_gcc9.log
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

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-9/porting_to.html

GCC 9 also passes the linker option --as-needed by default; typical
build issues are passing libraries before object files to the linker,
or underlinking of convenience libraries built from the same source.

[...]
src/aj_security.c:791:8: warning: 'status' may be used uninitialized in this function [-Wmaybe-uninitialized]
  791 |     if (AJ_OK != status) {
      |        ^
gcc -o build/release/src/aj_serial.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/aj_serial.c
gcc -o build/release/src/aj_serial_rx.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/aj_serial_rx.c
gcc -o build/release/src/aj_serial_tx.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/aj_serial_tx.c
gcc -o build/release/src/aj_std.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/aj_std.c
gcc -o build/release/src/aj_util.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/aj_util.c
gcc -o build/release/src/crypto/aj_crypto_aes.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/crypto/aj_crypto_aes.c
gcc -o build/release/src/crypto/aj_crypto_drbg.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/crypto/aj_crypto_drbg.c
gcc -o build/release/src/crypto/aj_crypto_ec_p256.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/crypto/aj_crypto_ec_p256.c
gcc -o build/release/src/crypto/aj_crypto_ecc.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/crypto/aj_crypto_ecc.c
src/crypto/aj_crypto_ecc.c:245:29: warning: 'baseP256' defined but not used [-Wunused-const-variable=]
  245 | static affine_point_t const baseP256 = {
      |                             ^~~~~~~~
src/crypto/aj_crypto_ecc.c:224:23: warning: 'b_P256' defined but not used [-Wunused-const-variable=]
  224 | static bigval_t const b_P256 =
      |                       ^~~~~~
src/crypto/aj_crypto_ecc.c:220:31: warning: 'jacobian_infinity' defined but not used [-Wunused-const-variable=]
  220 | static jacobian_point_t const jacobian_infinity = { { { 1, 0, 0, 0, 0, 0, 0 } },
      |                               ^~~~~~~~~~~~~~~~~
src/crypto/aj_crypto_ecc.c:217:29: warning: 'affine_infinity' defined but not used [-Wunused-const-variable=]
  217 | static affine_point_t const affine_infinity = { { { 0, 0, 0, 0, 0, 0, 0 } },
      |                             ^~~~~~~~~~~~~~~
gcc -o build/release/src/crypto/aj_crypto_field_p256.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/crypto/aj_crypto_field_p256.c
gcc -o build/release/src/crypto/aj_crypto_sha2.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/crypto/aj_crypto_sha2.c
gcc -o build/release/src/crypto/aj_sw_crypto.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/crypto/aj_sw_crypto.c
gcc -o build/release/src/external/sha2/sha2.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/external/sha2/sha2.c
gcc -o build/release/src/target/linux/aj_net.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/target/linux/aj_net.c
src/target/linux/aj_net.c: In function 'AJ_ARDP_UDP_Recv':
src/target/linux/aj_net.c:1045:9: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
 1045 |         read(interruptFd, &u64, sizeof(u64));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -o build/release/src/target/linux/aj_target_crypto.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/target/linux/aj_target_crypto.c
gcc -o build/release/src/target/linux/aj_target_nvram.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/target/linux/aj_target_nvram.c
src/target/linux/aj_target_nvram.c: In function '_AJ_LoadNVFromFile':
src/target/linux/aj_target_nvram.c:97:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   97 |     fread(AJ_NVRAM_BASE_ADDRESS, AJ_NVRAM_SIZE, 1, f);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -o build/release/src/target/linux/aj_target_serial.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/target/linux/aj_target_serial.c
gcc -o build/release/src/target/linux/aj_target_util.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/target/linux/aj_target_util.c
src/target/linux/aj_target_util.c: In function 'AJ_DecodeTime':
src/target/linux/aj_target_util.c:136:10: warning: implicit declaration of function 'strptime'; did you mean 'strftime'? [-Wimplicit-function-declaration]
  136 |     if (!strptime(der, fmt, &tm)) {
      |          ^~~~~~~~
      |          strftime
src/target/linux/aj_target_util.c: In function 'AJ_Printf':
src/target/linux/aj_target_util.c:343:21: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  343 |                     fread(buf, logLim, 1, logFile);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/target/linux/aj_target_util.c:345:21: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result]
  345 |                     ftruncate(fileno(logFile), 0);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -o build/release/src/nvram/aj_nvram.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/nvram/aj_nvram.c
gcc -o build/release/src/malloc/aj_malloc.os -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIC -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include -Ibuild/release/src/external/sha2 -Isrc/external/sha2 -Ibuild/release/src/malloc -Isrc/malloc -Ibuild/release/src src/malloc/aj_malloc.c
gcc -o build/release/src/libajtcl.so.1509 -fPIE -pie -fPIC -z relro -z now -s -shared -Wl,-Bsymbolic -Wl,-soname=libajtcl.so.1509 build/release/src/aj_about.os build/release/src/aj_ardp.os build/release/src/aj_authentication.os build/release/src/aj_authorisation.os build/release/src/aj_bufio.os build/release/src/aj_bus.os build/release/src/aj_cert.os build/release/src/aj_connect.os build/release/src/aj_crc16.os build/release/src/aj_creds.os build/release/src/aj_crypto_util.os build/release/src/aj_debug.os build/release/src/aj_disco.os build/release/src/aj_guid.os build/release/src/aj_helper.os build/release/src/aj_init.os build/release/src/aj_introspect.os build/release/src/aj_link_timeout.os build/release/src/aj_msg.os build/release/src/aj_peer.os build/release/src/aj_security.os build/release/src/aj_serial.os build/release/src/aj_serial_rx.os build/release/src/aj_serial_tx.os build/release/src/aj_std.os build/release/src/aj_util.os build/release/src/target/linux/aj_net.os build/release/src/target/linux/aj_target_crypto.os build/release/src/target/linux/aj_target_nvram.os build/release/src/target/linux/aj_target_serial.os build/release/src/target/linux/aj_target_util.os build/release/src/nvram/aj_nvram.os build/release/src/crypto/aj_crypto_aes.os build/release/src/crypto/aj_crypto_drbg.os build/release/src/crypto/aj_crypto_ec_p256.os build/release/src/crypto/aj_crypto_ecc.os build/release/src/crypto/aj_crypto_field_p256.os build/release/src/crypto/aj_crypto_sha2.os build/release/src/crypto/aj_sw_crypto.os build/release/src/external/sha2/sha2.os build/release/src/malloc/aj_malloc.os -lrt -lpthread
Create symlinks for: 'build/release/src/libajtcl.so.1509': 'build/release/src/libajtcl.so'->'build/release/src/libajtcl.so.1509'
gcc -o build/release/test/aesbench.o -c -pipe -funsigned-char -fno-strict-aliasing -fPIE -fPIC -D_FORTIFY_SOURCE=2 -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wfloat-equal -Wformat=2 -Wno-deprecated-declarations -Wno-unknown-pragmas -Wpacked -Wpointer-arith -Wshadow -Wundef -Wformat-security -Werror=format-security -Wwrite-strings -Os -fPIE -fPIC -D_FORTIFY_SOURCE=2 -DAJ_MAIN -DAJ_NVRAM_SIZE=64000 -DAJ_NUM_REPLY_CONTEXTS=8 -DNDEBUG -DAJ_TCP -DAJ_ARDP -Idist/include test/aesbench.c
gcc -o build/release/test/aesbench -fPIE -pie -fPIC -z relro -z now -s build/release/test/aesbench.o -Ldist/lib -Lbuild/release -lrt -lpthread -lajtcl
/usr/bin/ld: dist/lib/libajtcl.a(aj_target_util.o): in function `AJ_StartReadFromStdIn':
aj_target_util.c:(.text+0x210): undefined reference to `pthread_create'
/usr/bin/ld: dist/lib/libajtcl.a(aj_target_util.o): in function `AJ_StopReadFromStdIn':
aj_target_util.c:(.text+0x275): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
scons: *** [build/release/test/aesbench] Error 1
scons: building terminated because of errors.
make[1]: *** [debian/rules:29: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:26: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the Debian-iot-maintainers mailing list