Revision history [back]

click to hide/show revision 1
initial version

Problem when compile AJTCL with cross-compiler

Hi All,

I met a problem when compile the Alljoyn Thin Client Library with mipsel-openwrt-linux-uclibc-gcc. I used version 14.02 which was downloaded from https://www.alljoyn.org/docs-and-downloads. It is fine if I compile the source code with default Sconscript which was using gcc.

mipsel-openwrt-linux-uclibc-gcc -o target/linux/aj_target_crypto.o -c -Wall -pipe -static -funsigned-char -Wpointer-sign -Wimplicit-function-declaration -fno-strict-aliasing -g -DAJ_MAIN -Iinc -Itarget/linux target/linux/aj_target_crypto.c
target/linux/aj_target_crypto.c:29:25: error: openssl/aes.h: No such file or directory
target/linux/aj_target_crypto.c:30:24: error: openssl/bn.h: No such file or directory
target/linux/aj_target_crypto.c:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'keyState'
target/linux/aj_target_crypto.c: In function 'AJ_AES_Enable':
target/linux/aj_target_crypto.c:44: warning: implicit declaration of function 'AES_set_encrypt_key'
target/linux/aj_target_crypto.c:44: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c:44: error: (Each undeclared identifier is reported only once
target/linux/aj_target_crypto.c:44: error: for each function it appears in.)
target/linux/aj_target_crypto.c: In function 'AJ_AES_CTR_128':
target/linux/aj_target_crypto.c:62: warning: implicit declaration of function 'AES_encrypt'
target/linux/aj_target_crypto.c:62: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_AES_CBC_128_ENCRYPT':
target/linux/aj_target_crypto.c:74: warning: implicit declaration of function 'AES_cbc_encrypt'
target/linux/aj_target_crypto.c:74: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c:74: error: 'AES_ENCRYPT' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_AES_ECB_128_ENCRYPT':
target/linux/aj_target_crypto.c:79: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_RandBytes':
target/linux/aj_target_crypto.c:84: error: 'BIGNUM' undeclared (first use in this function)
target/linux/aj_target_crypto.c:84: error: 'bn' undeclared (first use in this function)
target/linux/aj_target_crypto.c:84: warning: implicit declaration of function 'BN_new'
target/linux/aj_target_crypto.c:85: warning: implicit declaration of function 'BN_rand'
target/linux/aj_target_crypto.c:86: warning: implicit declaration of function 'BN_bn2bin'
target/linux/aj_target_crypto.c:87: warning: implicit declaration of function 'BN_free'
scons: *** [target/linux/aj_target_crypto.o] Error 1
scons: building terminated because of errors.

Problem when compile AJTCL with cross-compiler

Hi All,

I met a problem when compile the Alljoyn Thin Client Library with mipsel-openwrt-linux-uclibc-gcc. I used version 14.02 which was downloaded from https://www.alljoyn.org/docs-and-downloads. It is fine if I compile the source code with default Sconscript which was using gcc. My target device is runing OpenWRT.

mipsel-openwrt-linux-uclibc-gcc -o target/linux/aj_target_crypto.o -c -Wall -pipe -static -funsigned-char -Wpointer-sign -Wimplicit-function-declaration -fno-strict-aliasing -g -DAJ_MAIN -Iinc -Itarget/linux target/linux/aj_target_crypto.c
target/linux/aj_target_crypto.c:29:25: error: openssl/aes.h: No such file or directory
target/linux/aj_target_crypto.c:30:24: error: openssl/bn.h: No such file or directory
target/linux/aj_target_crypto.c:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'keyState'
target/linux/aj_target_crypto.c: In function 'AJ_AES_Enable':
target/linux/aj_target_crypto.c:44: warning: implicit declaration of function 'AES_set_encrypt_key'
target/linux/aj_target_crypto.c:44: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c:44: error: (Each undeclared identifier is reported only once
target/linux/aj_target_crypto.c:44: error: for each function it appears in.)
target/linux/aj_target_crypto.c: In function 'AJ_AES_CTR_128':
target/linux/aj_target_crypto.c:62: warning: implicit declaration of function 'AES_encrypt'
target/linux/aj_target_crypto.c:62: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_AES_CBC_128_ENCRYPT':
target/linux/aj_target_crypto.c:74: warning: implicit declaration of function 'AES_cbc_encrypt'
target/linux/aj_target_crypto.c:74: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c:74: error: 'AES_ENCRYPT' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_AES_ECB_128_ENCRYPT':
target/linux/aj_target_crypto.c:79: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_RandBytes':
target/linux/aj_target_crypto.c:84: error: 'BIGNUM' undeclared (first use in this function)
target/linux/aj_target_crypto.c:84: error: 'bn' undeclared (first use in this function)
target/linux/aj_target_crypto.c:84: warning: implicit declaration of function 'BN_new'
target/linux/aj_target_crypto.c:85: warning: implicit declaration of function 'BN_rand'
target/linux/aj_target_crypto.c:86: warning: implicit declaration of function 'BN_bn2bin'
target/linux/aj_target_crypto.c:87: warning: implicit declaration of function 'BN_free'
scons: *** [target/linux/aj_target_crypto.o] Error 1
scons: building terminated because of errors.

Problem when compile AJTCL with cross-compiler

Hi All,

I met a problem when compile the Alljoyn Thin Client Library with mipsel-openwrt-linux-uclibc-gcc. I used version 14.02 which was downloaded from https://www.alljoyn.org/docs-and-downloads. It is fine if I compile the source code with default Sconscript which was using gcc. My target device is runing OpenWRT.

mipsel-openwrt-linux-uclibc-gcc -o target/linux/aj_target_crypto.o -c -Wall -pipe -static -funsigned-char -Wpointer-sign -Wimplicit-function-declaration -fno-strict-aliasing -g -DAJ_MAIN -Iinc -Itarget/linux target/linux/aj_target_crypto.c
target/linux/aj_target_crypto.c:29:25: error: openssl/aes.h: No such file or directory
target/linux/aj_target_crypto.c:30:24: error: openssl/bn.h: No such file or directory
target/linux/aj_target_crypto.c:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'keyState'
target/linux/aj_target_crypto.c: In function 'AJ_AES_Enable':
target/linux/aj_target_crypto.c:44: warning: implicit declaration of function 'AES_set_encrypt_key'
target/linux/aj_target_crypto.c:44: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c:44: error: (Each undeclared identifier is reported only once
target/linux/aj_target_crypto.c:44: error: for each function it appears in.)
target/linux/aj_target_crypto.c: In function 'AJ_AES_CTR_128':
target/linux/aj_target_crypto.c:62: warning: implicit declaration of function 'AES_encrypt'
target/linux/aj_target_crypto.c:62: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_AES_CBC_128_ENCRYPT':
target/linux/aj_target_crypto.c:74: warning: implicit declaration of function 'AES_cbc_encrypt'
target/linux/aj_target_crypto.c:74: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c:74: error: 'AES_ENCRYPT' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_AES_ECB_128_ENCRYPT':
target/linux/aj_target_crypto.c:79: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_RandBytes':
target/linux/aj_target_crypto.c:84: error: 'BIGNUM' undeclared (first use in this function)
target/linux/aj_target_crypto.c:84: error: 'bn' undeclared (first use in this function)
target/linux/aj_target_crypto.c:84: warning: implicit declaration of function 'BN_new'
target/linux/aj_target_crypto.c:85: warning: implicit declaration of function 'BN_rand'
target/linux/aj_target_crypto.c:86: warning: implicit declaration of function 'BN_bn2bin'
target/linux/aj_target_crypto.c:87: warning: implicit declaration of function 'BN_free'
scons: *** [target/linux/aj_target_crypto.o] Error 1
scons: building terminated because of errors.

I met new problem when try to compile Alljoyn Thin Client Library version 14.06. I just use command "scons" to build

/opt/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.33.2/usr/bin/mipsel-openwrt-linux-uclibc-gcc -o samples/basic/basic_client samples/basic/basic_client.o src/aj_about.o src/aj_bufio.o src/aj_bus.o src/aj_cert.o src/aj_connect.o src/aj_crc16.o src/aj_creds.o src/aj_crypto.o src/aj_debug.o src/aj_disco.o src/aj_guid.o src/aj_helper.o src/aj_init.o src/aj_introspect.o src/aj_keyauthentication.o src/aj_keyexchange.o src/aj_link_timeout.o src/aj_msg.o src/aj_nvram.o src/aj_peer.o src/aj_serial.o src/aj_serial_rx.o src/aj_serial_tx.o src/aj_std.o src/aj_util.o target/linux/aj_net.o target/linux/aj_target_crypto.o target/linux/aj_target_nvram.o target/linux/aj_target_serial.o target/linux/aj_target_util.o crypto/ecc/aj_crypto_ecc.o crypto/ecc/aj_crypto_sha2.o malloc/aj_malloc.o external/sha2/sha2.o -L/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/staging_dir/target-mipsel-openwrt-linux-uclibc/usr/lib -L/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/staging_dir/target-mipsel-openwrt-linux-uclibc/lib -L/opt/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.33.2/usr/lib -lrt -lcrypto -lpthread
/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/staging_dir/target-mipsel-openwrt-linux-uclibc/usr/lib/libcrypto.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
target/linux/aj_net.o: In function `AJ_Net_Connect':
/home/congngale/Work/Verik/Alljoyn/alljoyn-suite-14.06.00_beta-src/core/ajtcl/target/linux/aj_net.c:211: undefined reference to `eventfd'
collect2: ld returned 1 exit status
scons: *** [samples/basic/basic_client] Error 1
scons: building terminated because of errors.

Problem when compile AJTCL with cross-compiler

Hi All,

I met a problem when compile the Alljoyn Thin Client Library with mipsel-openwrt-linux-uclibc-gcc. I used version 14.02 which was downloaded from https://www.alljoyn.org/docs-and-downloads. It is fine if I compile the source code with default Sconscript which was using gcc. My target device is runing OpenWRT.

mipsel-openwrt-linux-uclibc-gcc -o target/linux/aj_target_crypto.o -c -Wall -pipe -static -funsigned-char -Wpointer-sign -Wimplicit-function-declaration -fno-strict-aliasing -g -DAJ_MAIN -Iinc -Itarget/linux target/linux/aj_target_crypto.c
target/linux/aj_target_crypto.c:29:25: error: openssl/aes.h: No such file or directory
target/linux/aj_target_crypto.c:30:24: error: openssl/bn.h: No such file or directory
target/linux/aj_target_crypto.c:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'keyState'
target/linux/aj_target_crypto.c: In function 'AJ_AES_Enable':
target/linux/aj_target_crypto.c:44: warning: implicit declaration of function 'AES_set_encrypt_key'
target/linux/aj_target_crypto.c:44: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c:44: error: (Each undeclared identifier is reported only once
target/linux/aj_target_crypto.c:44: error: for each function it appears in.)
target/linux/aj_target_crypto.c: In function 'AJ_AES_CTR_128':
target/linux/aj_target_crypto.c:62: warning: implicit declaration of function 'AES_encrypt'
target/linux/aj_target_crypto.c:62: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_AES_CBC_128_ENCRYPT':
target/linux/aj_target_crypto.c:74: warning: implicit declaration of function 'AES_cbc_encrypt'
target/linux/aj_target_crypto.c:74: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c:74: error: 'AES_ENCRYPT' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_AES_ECB_128_ENCRYPT':
target/linux/aj_target_crypto.c:79: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_RandBytes':
target/linux/aj_target_crypto.c:84: error: 'BIGNUM' undeclared (first use in this function)
target/linux/aj_target_crypto.c:84: error: 'bn' undeclared (first use in this function)
target/linux/aj_target_crypto.c:84: warning: implicit declaration of function 'BN_new'
target/linux/aj_target_crypto.c:85: warning: implicit declaration of function 'BN_rand'
target/linux/aj_target_crypto.c:86: warning: implicit declaration of function 'BN_bn2bin'
target/linux/aj_target_crypto.c:87: warning: implicit declaration of function 'BN_free'
scons: *** [target/linux/aj_target_crypto.o] Error 1
scons: building terminated because of errors.

I met new problem when try to compile Alljoyn Thin Client Library version 14.06. I just use command "scons" to build

congngale@CONGNGALE-PC:~/Work/Alljoyn/alljoyn-suite-14.06.00_beta-src/core/ajtcl$ scons
scons: Reading SConscript files ...
GTEST_DIR is not set, skipping unittest build
scons: done reading SConscript files.
scons: Building targets ...
/opt/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.33.2/usr/bin/mipsel-openwrt-linux-uclibc-gcc -o samples/basic/basic_client samples/basic/basic_client.o src/aj_about.o src/aj_bufio.o src/aj_bus.o src/aj_cert.o src/aj_connect.o src/aj_crc16.o src/aj_creds.o src/aj_crypto.o src/aj_debug.o src/aj_disco.o src/aj_guid.o src/aj_helper.o src/aj_init.o src/aj_introspect.o src/aj_keyauthentication.o src/aj_keyexchange.o src/aj_link_timeout.o src/aj_msg.o src/aj_nvram.o src/aj_peer.o src/aj_serial.o src/aj_serial_rx.o src/aj_serial_tx.o src/aj_std.o src/aj_util.o target/linux/aj_net.o target/linux/aj_target_crypto.o target/linux/aj_target_nvram.o target/linux/aj_target_serial.o target/linux/aj_target_util.o crypto/ecc/aj_crypto_ecc.o crypto/ecc/aj_crypto_sha2.o malloc/aj_malloc.o external/sha2/sha2.o -L/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/staging_dir/target-mipsel-openwrt-linux-uclibc/usr/lib -L/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/staging_dir/target-mipsel-openwrt-linux-uclibc/lib -L/opt/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.33.2/usr/lib -L/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/staging_dir/target-mipsel-openwrt-linux-uclibc/root-rt288x/lib -L/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/staging_dir/target-mipsel-openwrt-linux-uclibc/root-rt288x/lib -L/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/build_dir/target-mipsel-openwrt-linux-uclibc_link/openssl-0.9.8za/ipkg-install/usr/lib -L/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/build_dir/linux-rt288x_link/base-files/ipkg-rt288x/libc/lib -lrt -lcrypto -lpthread
/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/staging_dir/target-mipsel-openwrt-linux-uclibc/usr/lib/libcrypto.so: /home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/build_dir/target-mipsel-openwrt-linux-uclibc_link/openssl-0.9.8za/ipkg-install/usr/lib/libcrypto.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
target/linux/aj_net.o: In function `AJ_Net_Connect':
/home/congngale/Work/Verik/Alljoyn/alljoyn-suite-14.06.00_beta-src/core/ajtcl/target/linux/aj_net.c:211: undefined reference to `eventfd'
collect2: ld returned 1 exit status
scons: *** [samples/basic/basic_client] Error 1
scons: building terminated because of errors.

Problem when compile AJTCL with cross-compiler

Hi All,

I met a problem when compile the Alljoyn Thin Client Library with mipsel-openwrt-linux-uclibc-gcc. I used version 14.02 which was downloaded from https://www.alljoyn.org/docs-and-downloads. It is fine if I compile the source code with default Sconscript which was using gcc. My target device is runing OpenWRT.

mipsel-openwrt-linux-uclibc-gcc -o target/linux/aj_target_crypto.o -c -Wall -pipe -static -funsigned-char -Wpointer-sign -Wimplicit-function-declaration -fno-strict-aliasing -g -DAJ_MAIN -Iinc -Itarget/linux target/linux/aj_target_crypto.c
target/linux/aj_target_crypto.c:29:25: error: openssl/aes.h: No such file or directory
target/linux/aj_target_crypto.c:30:24: error: openssl/bn.h: No such file or directory
target/linux/aj_target_crypto.c:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'keyState'
target/linux/aj_target_crypto.c: In function 'AJ_AES_Enable':
target/linux/aj_target_crypto.c:44: warning: implicit declaration of function 'AES_set_encrypt_key'
target/linux/aj_target_crypto.c:44: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c:44: error: (Each undeclared identifier is reported only once
target/linux/aj_target_crypto.c:44: error: for each function it appears in.)
target/linux/aj_target_crypto.c: In function 'AJ_AES_CTR_128':
target/linux/aj_target_crypto.c:62: warning: implicit declaration of function 'AES_encrypt'
target/linux/aj_target_crypto.c:62: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_AES_CBC_128_ENCRYPT':
target/linux/aj_target_crypto.c:74: warning: implicit declaration of function 'AES_cbc_encrypt'
target/linux/aj_target_crypto.c:74: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c:74: error: 'AES_ENCRYPT' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_AES_ECB_128_ENCRYPT':
target/linux/aj_target_crypto.c:79: error: 'keyState' undeclared (first use in this function)
target/linux/aj_target_crypto.c: In function 'AJ_RandBytes':
target/linux/aj_target_crypto.c:84: error: 'BIGNUM' undeclared (first use in this function)
target/linux/aj_target_crypto.c:84: error: 'bn' undeclared (first use in this function)
target/linux/aj_target_crypto.c:84: warning: implicit declaration of function 'BN_new'
target/linux/aj_target_crypto.c:85: warning: implicit declaration of function 'BN_rand'
target/linux/aj_target_crypto.c:86: warning: implicit declaration of function 'BN_bn2bin'
target/linux/aj_target_crypto.c:87: warning: implicit declaration of function 'BN_free'
scons: *** [target/linux/aj_target_crypto.o] Error 1
scons: building terminated because of errors.

I met new problem when try to compile Alljoyn Thin Client Library version 14.06. I just use command "scons" to build

congngale@CONGNGALE-PC:~/Work/Alljoyn/alljoyn-suite-14.06.00_beta-src/core/ajtcl$ scons
scons: Reading SConscript files ...
GTEST_DIR is not set, skipping unittest build
scons: done reading SConscript files.
scons: Building targets ...
/opt/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.33.2/usr/bin/mipsel-openwrt-linux-uclibc-gcc -o samples/basic/basic_client samples/basic/basic_client.o src/aj_about.o src/aj_bufio.o src/aj_bus.o src/aj_cert.o src/aj_connect.o src/aj_crc16.o src/aj_creds.o src/aj_crypto.o src/aj_debug.o src/aj_disco.o src/aj_guid.o src/aj_helper.o src/aj_init.o src/aj_introspect.o src/aj_keyauthentication.o src/aj_keyexchange.o src/aj_link_timeout.o src/aj_msg.o src/aj_nvram.o src/aj_peer.o src/aj_serial.o src/aj_serial_rx.o src/aj_serial_tx.o src/aj_std.o src/aj_util.o target/linux/aj_net.o target/linux/aj_target_crypto.o target/linux/aj_target_nvram.o target/linux/aj_target_serial.o target/linux/aj_target_util.o crypto/ecc/aj_crypto_ecc.o crypto/ecc/aj_crypto_sha2.o malloc/aj_malloc.o external/sha2/sha2.o -L/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/staging_dir/target-mipsel-openwrt-linux-uclibc/root-rt288x/lib -L/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/staging_dir/target-mipsel-openwrt-linux-uclibc/root-rt288x/lib -L/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/build_dir/target-mipsel-openwrt-linux-uclibc_link/openssl-0.9.8za/ipkg-install/usr/lib -L/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/build_dir/linux-rt288x_link/base-files/ipkg-rt288x/libc/lib -L/home/congngale/Work/staging_dir/target-mipsel-openwrt-linux-uclibc/root-rt288x/lib -L/home/congngale/Work/staging_dir/target-mipsel-openwrt-linux-uclibc/root-rt288x/lib -L/home/congngale/Work/build_dir/target-mipsel-openwrt-linux-uclibc_link/openssl-0.9.8za/ipkg-install/usr/lib -L/home/congngale/Work/build_dir/linux-rt288x_link/base-files/ipkg-rt288x/libc/lib -lrt -lcrypto -lpthread
/home/congngale/Work/Verik/Wemo/backfire_smart_corewifi_link/build_dir/target-mipsel-openwrt-linux-uclibc_link/openssl-0.9.8za/ipkg-install/usr/lib/libcrypto.so: /home/congngale/Work/build_dir/target-mipsel-openwrt-linux-uclibc_link/openssl-0.9.8za/ipkg-install/usr/lib/libcrypto.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
target/linux/aj_net.o: In function `AJ_Net_Connect':
/home/congngale/Work/Verik/Alljoyn/alljoyn-suite-14.06.00_beta-src/core/ajtcl/target/linux/aj_net.c:211: /home/congngale/Work/Alljoyn/alljoyn-suite-14.06.00_beta-src/core/ajtcl/target/linux/aj_net.c:211: undefined reference to `eventfd'
collect2: ld returned 1 exit status
scons: *** [samples/basic/basic_client] Error 1
scons: building terminated because of errors.