Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yocto Build fails for wolfssh and wolfmqtt #9

Open
prateek-khatri opened this issue Jun 14, 2019 · 25 comments
Open

Yocto Build fails for wolfssh and wolfmqtt #9

prateek-khatri opened this issue Jun 14, 2019 · 25 comments

Comments

@prateek-khatri
Copy link

prateek-khatri commented Jun 14, 2019

Hi,
I am trying to build the libraries as suggested in the instructions, however I am facing the following issue while building wolfssh and wolfmqtt recipes (wolfssl builds fine):

MACHINE=am65xx-evm bitbake wolfssh
WARNING: You have included the meta-virtualization layer, but 'virtualization' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-virtualization README for details on enabling virtualization support.
Loading cache: 100% |############################################################################################| Time: 0:00:00
Loaded 4206 entries from dependency cache.
Parsing recipes: 100% |##########################################################################################| Time: 0:00:12
Parsing of 3283 .bb files complete (3280 cached, 3 parsed). 4209 targets, 523 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/prateekkhatri/tisdk/sources/meta-processor-sdk/recipes-devtools/python/python3-native_3.5.2.bbappend
/home/prateekkhatri/tisdk/sources/meta-processor-sdk/recipes-ti/devtools/ti-cgt-arm-native_16.9.2.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "aarch64-linux"
MACHINE = "am65xx-evm"
DISTRO = "arago"
DISTRO_VERSION = "2018.10"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta-processor-sdk = "HEAD:f33a37ac6baa8155302fa1faea99f1be5461779e"
meta-ros = "HEAD:e2566402ab108a19634354a934788109422cf409"
meta-arago-distro
meta-arago-extras = "HEAD:d4bc00af838df7a77f4ddbd3546755c5bad5b880"
meta-browser = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
meta-qt5 = "HEAD:d8b531530fa42b59aa0a5b123d87a30d749cbcc4"
meta-virtualization = "HEAD:b704c689b67639214b9568a3d62e82df27e9434f"
meta-networking
meta-python
meta-oe
meta-gnome
meta-multimedia
meta-filesystems = "HEAD:eae996301d9c097bcbeb8046f08041dc82bb62f8"
meta-ti = "HEAD:02e852b1a069463f937ea594e13fe5f88ce9b74d"
meta-linaro-toolchain
meta-optee = "HEAD:cd9ee776044a2d8943be4cb019f063271e9c684d"
meta-wolfssl = "master:f4842e35cf7d69563d0f5c985cd2a7638ba69c00"
meta = "HEAD:3638cb32ba9ba32b4d498fc31ab7fdf82f0d2495"

Initialising tasks: 100% |#######################################################################################| Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: wolfssh-1.3.0-r0 do_compile: oe_runmake failed
ERROR: wolfssh-1.3.0-r0 do_compile: Function failed: do_compile (log file is located at /home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/temp/log.do_compile.17103)
ERROR: Logfile of failure stored in: /home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/temp/log.do_compile.17103
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 12
| make -j17 all-am
| make[1]: warning: -jN forced in submake: disabling jobserver mode.
| make[1]: Entering directory '/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/build'
| ./aarch64-linux-libtool --tag=CC --mode=compile aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfssh-1.3.0 -I./src -DBUILDING_WOLFSSH -DNDEBUG -DHAVE_CYASSL_OPTIONS -DSIZEOF_LONG=8 -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -DBUILDING_WOLFSSH -fvisibility=hidden -O2 -pthread -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0=/usr/src/debug/wolfssh/1.3.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot= -c -o src/src_libwolfssh_la-ssh.lo test -f 'src/ssh.c' || echo '../wolfssh-1.3.0/'src/ssh.c
| ./aarch64-linux-libtool --tag=CC --mode=compile aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfssh-1.3.0 -I./src -DBUILDING_WOLFSSH -DNDEBUG -DHAVE_CYASSL_OPTIONS -DSIZEOF_LONG=8 -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -DBUILDING_WOLFSSH -fvisibility=hidden -O2 -pthread -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0=/usr/src/debug/wolfssh/1.3.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot= -c -o src/src_libwolfssh_la-internal.lo test -f 'src/internal.c' || echo '../wolfssh-1.3.0/'src/internal.c
| ./aarch64-linux-libtool --tag=CC --mode=compile aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfssh-1.3.0 -I./src -DBUILDING_WOLFSSH -DNDEBUG -DHAVE_CYASSL_OPTIONS -DSIZEOF_LONG=8 -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -DBUILDING_WOLFSSH -fvisibility=hidden -O2 -pthread -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0=/usr/src/debug/wolfssh/1.3.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot= -c -o src/src_libwolfssh_la-io.lo test -f 'src/io.c' || echo '../wolfssh-1.3.0/'src/io.c
| aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfssh-1.3.0 -I./src -DNDEBUG -DHAVE_CYASSL_OPTIONS -DSIZEOF_LONG=8 -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -DNO_MAIN_DRIVER -fvisibility=hidden -O2 -pthread -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0=/usr/src/debug/wolfssh/1.3.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot= -c -o tests/tests_unit_test-unit.o test -f 'tests/unit.c' || echo '../wolfssh-1.3.0/'tests/unit.c
| aarch64-linux-libtool: compile: aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfssh-1.3.0 -I./src -DBUILDING_WOLFSSH -DNDEBUG -DHAVE_CYASSL_OPTIONS -DSIZEOF_LONG=8 -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -DBUILDING_WOLFSSH -fvisibility=hidden -O2 -pthread -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0=/usr/src/debug/wolfssh/1.3.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot= -c ../wolfssh-1.3.0/src/internal.c -fPIC -DPIC -o src/.libs/src_libwolfssh_la-internal.o
| aarch64-linux-libtool: compile: aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfssh-1.3.0 -I./src -DBUILDING_WOLFSSH -DNDEBUG -DHAVE_CYASSL_OPTIONS -DSIZEOF_LONG=8 -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -DBUILDING_WOLFSSH -fvisibility=hidden -O2 -pthread -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0=/usr/src/debug/wolfssh/1.3.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot= -c ../wolfssh-1.3.0/src/io.c -fPIC -DPIC -o src/.libs/src_libwolfssh_la-io.o
| aarch64-linux-libtool: compile: aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfssh-1.3.0 -I./src -DBUILDING_WOLFSSH -DNDEBUG -DHAVE_CYASSL_OPTIONS -DSIZEOF_LONG=8 -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -DBUILDING_WOLFSSH -fvisibility=hidden -O2 -pthread -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0=/usr/src/debug/wolfssh/1.3.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/recipe-sysroot= -c ../wolfssh-1.3.0/src/ssh.c -fPIC -DPIC -o src/.libs/src_libwolfssh_la-ssh.o
| In file included from ../wolfssh-1.3.0/tests/unit.c:25:0:
| ../wolfssh-1.3.0/wolfssh/internal.h:241:9: error: unknown type name ‘ecc_key’
| ecc_key ecc;
| ^~~~~~~
| Makefile:1251: recipe for target 'tests/tests_unit_test-unit.o' failed
| make[1]: *** [tests/tests_unit_test-unit.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| In file included from ../wolfssh-1.3.0/src/io.c:34:0:
| ../wolfssh-1.3.0/wolfssh/internal.h:241:9: error: unknown type name ‘ecc_key’
| ecc_key ecc;
| ^~~~~~~
| In file included from ../wolfssh-1.3.0/src/internal.c:33:0:
| ../wolfssh-1.3.0/wolfssh/internal.h:241:9: error: unknown type name ‘ecc_key’
| ecc_key ecc;
| ^~~~~~~
| In file included from ../wolfssh-1.3.0/src/ssh.c:32:0:
| ../wolfssh-1.3.0/wolfssh/internal.h:241:9: error: unknown type name ‘ecc_key’
| ecc_key ecc;
| ^~~~~~~
| ../wolfssh-1.3.0/src/internal.c: In function ‘wolfSSH_ProcessBuffer’:
| ../wolfssh-1.3.0/src/internal.c:577:21: error: field ‘ecc’ has incomplete type
| ecc_key ecc;
| ^~~
| ../wolfssh-1.3.0/src/internal.c:591:17: warning: implicit declaration of function ‘wc_ecc_init_ex’; did you mean ‘wc_SignCert_ex’? [-Wimplicit-function-declaration]
| if (wc_ecc_init_ex(&key.ecc, ctx->heap, INVALID_DEVID) != 0)
| ^~~~~~~~~~~~~~
| wc_SignCert_ex
| ../wolfssh-1.3.0/src/internal.c:591:17: warning: nested extern declaration of ‘wc_ecc_init_ex’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c:594:19: warning: implicit declaration of function ‘wc_EccPrivateKeyDecode’; did you mean ‘wc_RsaPrivateKeyDecode’? [-Wimplicit-function-declaration]
| ret = wc_EccPrivateKeyDecode(ctx->privateKey, &scratch,
| ^~~~~~~~~~~~~~~~~~~~~~
| wc_RsaPrivateKeyDecode
| ../wolfssh-1.3.0/src/internal.c:594:19: warning: nested extern declaration of ‘wc_EccPrivateKeyDecode’ [-Wnested-externs]
| Makefile:1153: recipe for target 'src/src_libwolfssh_la-io.lo' failed
| make[1]: *** [src/src_libwolfssh_la-io.lo] Error 1
| Makefile:1125: recipe for target 'src/src_libwolfssh_la-ssh.lo' failed
| make[1]: *** [src/src_libwolfssh_la-ssh.lo] Error 1
| ../wolfssh-1.3.0/src/internal.c:597:31: warning: implicit declaration of function ‘wc_ecc_get_curve_id’ [-Wimplicit-function-declaration]
| int curveId = wc_ecc_get_curve_id(key.ecc.idx);
| ^~~~~~~~~~~~~~~~~~~
| ../wolfssh-1.3.0/src/internal.c:597:31: warning: nested extern declaration of ‘wc_ecc_get_curve_id’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c:598:32: error: ‘ECC_SECP256R1’ undeclared (first use in this function); did you mean ‘ECC_SECP256R1_OID’?
| if (curveId == ECC_SECP256R1 ||
| ^~~~~~~~~~~~~
| ECC_SECP256R1_OID
| ../wolfssh-1.3.0/src/internal.c:598:32: note: each undeclared identifier is reported only once for each function it appears in
| ../wolfssh-1.3.0/src/internal.c:599:32: error: ‘ECC_SECP384R1’ undeclared (first use in this function); did you mean ‘ECC_SECP256R1’?
| curveId == ECC_SECP384R1 ||
| ^~~~~~~~~~~~~
| ECC_SECP256R1
| ../wolfssh-1.3.0/src/internal.c:600:32: error: ‘ECC_SECP521R1’ undeclared (first use in this function); did you mean ‘ECC_SECP384R1’?
| curveId == ECC_SECP521R1) {
| ^~~~~~~~~~~~~
| ECC_SECP384R1
| ../wolfssh-1.3.0/src/internal.c:607:13: warning: implicit declaration of function ‘wc_ecc_free’; did you mean ‘wc_HmacFree’? [-Wimplicit-function-declaration]
| wc_ecc_free(&key.ecc);
| ^~~~~~~~~~~
| wc_HmacFree
| ../wolfssh-1.3.0/src/internal.c:607:13: warning: nested extern declaration of ‘wc_ecc_free’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c: In function ‘wcPrimeForId’:
| ../wolfssh-1.3.0/src/internal.c:1714:20: error: ‘ECC_SECP256R1’ undeclared (first use in this function); did you mean ‘ECC_SECP256R1_OID’?
| return ECC_SECP256R1;
| ^~~~~~~~~~~~~
| ECC_SECP256R1_OID
| ../wolfssh-1.3.0/src/internal.c:1717:20: error: ‘ECC_SECP384R1’ undeclared (first use in this function); did you mean ‘ECC_SECP256R1’?
| return ECC_SECP384R1;
| ^~~~~~~~~~~~~
| ECC_SECP256R1
| ../wolfssh-1.3.0/src/internal.c:1720:20: error: ‘ECC_SECP521R1’ undeclared (first use in this function); did you mean ‘ECC_SECP384R1’?
| return ECC_SECP521R1;
| ^~~~~~~~~~~~~
| ECC_SECP384R1
| ../wolfssh-1.3.0/src/internal.c:1722:20: error: ‘ECC_CURVE_INVALID’ undeclared (first use in this function)
| return ECC_CURVE_INVALID;
| ^~~~~~~~~~~~~~~~~
| ../wolfssh-1.3.0/src/internal.c: In function ‘DoKexInit’:
| ../wolfssh-1.3.0/src/internal.c:1821:22: error: ‘ECC_SECP256R1’ undeclared (first use in this function); did you mean ‘ECC_SECP256R1_OID’?
| case ECC_SECP256R1:
| ^~~~~~~~~~~~~
| ECC_SECP256R1_OID
| ../wolfssh-1.3.0/src/internal.c:1825:22: error: ‘ECC_SECP384R1’ undeclared (first use in this function); did you mean ‘ECC_SECP256R1’?
| case ECC_SECP384R1:
| ^~~~~~~~~~~~~
| ECC_SECP256R1
| ../wolfssh-1.3.0/src/internal.c:1829:22: error: ‘ECC_SECP521R1’ undeclared (first use in this function); did you mean ‘ECC_SECP384R1’?
| case ECC_SECP521R1:
| ^~~~~~~~~~~~~
| ECC_SECP384R1
| ../wolfssh-1.3.0/src/internal.c: In function ‘DoKexDhReply’:
| ../wolfssh-1.3.0/src/internal.c:2189:25: error: field ‘key’ has incomplete type
| ecc_key key;
| ^~~
| ../wolfssh-1.3.0/src/internal.c:2394:23: warning: implicit declaration of function ‘wc_ecc_import_x963’ [-Wimplicit-function-declaration]
| ret = wc_ecc_import_x963(pubKey, pubKeySz,
| ^~~~~~~~~~~~~~~~~~
| ../wolfssh-1.3.0/src/internal.c:2394:23: warning: nested extern declaration of ‘wc_ecc_import_x963’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c:2413:25: error: storage size of ‘key’ isn’t known
| ecc_key key;
| ^~~
| ../wolfssh-1.3.0/src/internal.c:2414:23: warning: implicit declaration of function ‘wc_ecc_init’; did you mean ‘wc_HmacInit’? [-Wimplicit-function-declaration]
| ret = wc_ecc_init(&key);
| ^~~~~~~~~~~
| wc_HmacInit
| ../wolfssh-1.3.0/src/internal.c:2414:23: warning: nested extern declaration of ‘wc_ecc_init’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c:2418:27: warning: implicit declaration of function ‘wc_ecc_shared_secret’ [-Wimplicit-function-declaration]
| ret = wc_ecc_shared_secret(&ssh->handshake->privKey.ecc,
| ^~~~~~~~~~~~~~~~~~~~
| ../wolfssh-1.3.0/src/internal.c:2418:27: warning: nested extern declaration of ‘wc_ecc_shared_secret’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c:2413:25: warning: unused variable ‘key’ [-Wunused-variable]
| ecc_key key;
| ^~~
| ../wolfssh-1.3.0/src/internal.c: In function ‘DoUserAuthRequestEcc’:
| ../wolfssh-1.3.0/src/internal.c:3100:13: error: storage size of ‘key’ isn’t known
| ecc_key key;
| ^~~
| ../wolfssh-1.3.0/src/internal.c:3213:15: warning: implicit declaration of function ‘wc_ecc_verify_hash_ex’ [-Wimplicit-function-declaration]
| ret = wc_ecc_verify_hash_ex(&r, &s, digest, digestSz, &status, &key);
| ^~~~~~~~~~~~~~~~~~~~~
| ../wolfssh-1.3.0/src/internal.c:3213:15: warning: nested extern declaration of ‘wc_ecc_verify_hash_ex’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c:3100:13: warning: unused variable ‘key’ [-Wunused-variable]
| ecc_key key;
| ^~~
| ../wolfssh-1.3.0/src/internal.c: In function ‘CreateMac’:
| ../wolfssh-1.3.0/src/internal.c:4297:29: error: ‘WC_SHA_DIGEST_SIZE’ undeclared (first use in this function); did you mean ‘SHA_DIGEST_SIZE’?
| byte digest[WC_SHA_DIGEST_SIZE];
| ^~~~~~~~~~~~~~~~~~
| SHA_DIGEST_SIZE
| ../wolfssh-1.3.0/src/internal.c:4299:44: error: ‘WC_SHA’ undeclared (first use in this function); did you mean ‘WC_RNG’?
| ret = wc_HmacSetKey(&hmac, WC_SHA,
| ^~~~~~
| WC_RNG
| ../wolfssh-1.3.0/src/internal.c:4297:22: warning: unused variable ‘digest’ [-Wunused-variable]
| byte digest[WC_SHA_DIGEST_SIZE];
| ^~~~~~
| ../wolfssh-1.3.0/src/internal.c:4331:44: error: ‘WC_SHA256’ undeclared (first use in this function); did you mean ‘WC_SHA’?
| ret = wc_HmacSetKey(&hmac, WC_SHA256,
| ^~~~~~~~~
| WC_SHA
| ../wolfssh-1.3.0/src/internal.c: In function ‘VerifyMac’:
| ../wolfssh-1.3.0/src/internal.c:4376:40: error: ‘WC_SHA’ undeclared (first use in this function); did you mean ‘WC_RNG’?
| ret = wc_HmacSetKey(&hmac, WC_SHA,
| ^~~~~~
| WC_RNG
| ../wolfssh-1.3.0/src/internal.c:4389:40: error: ‘WC_SHA256’ undeclared (first use in this function); did you mean ‘WC_SHA’?
| ret = wc_HmacSetKey(&hmac, WC_SHA256,
| ^~~~~~~~~
| WC_SHA
| ../wolfssh-1.3.0/src/internal.c: In function ‘SendKexInit’:
| ../wolfssh-1.3.0/src/internal.c:4884:18: error: ‘ECC_SECP256R1’ undeclared (first use in this function); did you mean ‘ECC_SECP256R1_OID’?
| case ECC_SECP256R1:
| ^~~~~~~~~~~~~
| ECC_SECP256R1_OID
| ../wolfssh-1.3.0/src/internal.c:4888:18: error: ‘ECC_SECP384R1’ undeclared (first use in this function); did you mean ‘ECC_SECP256R1’?
| case ECC_SECP384R1:
| ^~~~~~~~~~~~~
| ECC_SECP256R1
| ../wolfssh-1.3.0/src/internal.c:4892:18: error: ‘ECC_SECP521R1’ undeclared (first use in this function); did you mean ‘ECC_SECP384R1’?
| case ECC_SECP521R1:
| ^~~~~~~~~~~~~
| ECC_SECP384R1
| ../wolfssh-1.3.0/src/internal.c: In function ‘SendKexDhReply’:
| ../wolfssh-1.3.0/src/internal.c:5004:25: error: field ‘key’ has incomplete type
| ecc_key key;
| ^~~
| ../wolfssh-1.3.0/src/internal.c:5172:23: warning: implicit declaration of function ‘wc_ecc_export_x963’ [-Wimplicit-function-declaration]
| ret = wc_ecc_export_x963(&sigKeyBlock.sk.ecc.key,
| ^~~~~~~~~~~~~~~~~~
| ../wolfssh-1.3.0/src/internal.c:5172:23: warning: nested extern declaration of ‘wc_ecc_export_x963’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c:5337:25: error: storage size of ‘pubKey’ isn’t known
| ecc_key pubKey;
| ^~~~~~
| ../wolfssh-1.3.0/src/internal.c:5338:25: error: storage size of ‘privKey’ isn’t known
| ecc_key privKey;
| ^~~~~~~
| ../wolfssh-1.3.0/src/internal.c:5341:32: error: ‘ECC_CURVE_INVALID’ undeclared (first use in this function)
| if (primeId == ECC_CURVE_INVALID)
| ^~~~~~~~~~~~~~~~~
| ../wolfssh-1.3.0/src/internal.c:5352:27: warning: implicit declaration of function ‘wc_ecc_import_x963_ex’ [-Wimplicit-function-declaration]
| ret = wc_ecc_import_x963_ex(ssh->handshake->e,
| ^~~~~~~~~~~~~~~~~~~~~
| ../wolfssh-1.3.0/src/internal.c:5352:27: warning: nested extern declaration of ‘wc_ecc_import_x963_ex’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c:5357:27: warning: implicit declaration of function ‘wc_ecc_make_key_ex’; did you mean ‘wc_MakeCert_ex’? [-Wimplicit-function-declaration]
| ret = wc_ecc_make_key_ex(ssh->rng,
| ^~~~~~~~~~~~~~~~~~
| wc_MakeCert_ex
| ../wolfssh-1.3.0/src/internal.c:5357:27: warning: nested extern declaration of ‘wc_ecc_make_key_ex’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c:5358:42: warning: implicit declaration of function ‘wc_ecc_get_curve_size_from_id’ [-Wimplicit-function-declaration]
| wc_ecc_get_curve_size_from_id(primeId),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| ../wolfssh-1.3.0/src/internal.c:5358:42: warning: nested extern declaration of ‘wc_ecc_get_curve_size_from_id’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c:5338:25: warning: unused variable ‘privKey’ [-Wunused-variable]
| ecc_key privKey;
| ^~~~~~~
| ../wolfssh-1.3.0/src/internal.c:5337:25: warning: unused variable ‘pubKey’ [-Wunused-variable]
| ecc_key pubKey;
| ^~~~~~
| ../wolfssh-1.3.0/src/internal.c:5463:23: warning: implicit declaration of function ‘wc_ecc_sign_hash’ [-Wimplicit-function-declaration]
| ret = wc_ecc_sign_hash(digest, wc_HashGetDigestSize(sigHashId),
| ^~~~~~~~~~~~~~~~
| ../wolfssh-1.3.0/src/internal.c:5463:23: warning: nested extern declaration of ‘wc_ecc_sign_hash’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c:5478:27: warning: implicit declaration of function ‘wc_ecc_sig_to_rs’ [-Wimplicit-function-declaration]
| ret = wc_ecc_sig_to_rs(sig, sigSz, r, &rSz, s, &sSz);
| ^~~~~~~~~~~~~~~~
| ../wolfssh-1.3.0/src/internal.c:5478:27: warning: nested extern declaration of ‘wc_ecc_sig_to_rs’ [-Wnested-externs]
| ../wolfssh-1.3.0/src/internal.c: In function ‘SendKexDhInit’:
| ../wolfssh-1.3.0/src/internal.c:5836:32: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
| ecc_key* privKey = &ssh->handshake->privKey.ecc;
| ^
| ../wolfssh-1.3.0/src/internal.c:5839:28: error: ‘ECC_CURVE_INVALID’ undeclared (first use in this function)
| if (primeId == ECC_CURVE_INVALID)
| ^~~~~~~~~~~~~~~~~
| ../wolfssh-1.3.0/src/internal.c: In function ‘wcPrimeForId’:
| ../wolfssh-1.3.0/src/internal.c:1724:1: warning: control reaches end of non-void function [-Wreturn-type]
| }
| ^
| Makefile:1132: recipe for target 'src/src_libwolfssh_la-internal.lo' failed
| make[1]: *** [src/src_libwolfssh_la-internal.lo] Error 1
| make[1]: Leaving directory '/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/build'
| Makefile:786: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/temp/run.do_compile.17103:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfssh/1.3.0-r0/temp/log.do_compile.17103)
ERROR: Task (/home/prateekkhatri/tisdk/sources/meta-wolfssl/recipes-wolfssl/wolfssh/wolfssh_1.3.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 681 tasks of which 680 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/prateekkhatri/tisdk/sources/meta-wolfssl/recipes-wolfssl/wolfssh/wolfssh_1.3.0.bb:do_compile
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

And while trying wolfmqtt:

MACHINE=am65xx-evm bitbake wolfmqtt
WARNING: You have included the meta-virtualization layer, but 'virtualization' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-virtualization README for details on enabling virtualization support.
Loading cache: 100% |############################################################################################| Time: 0:00:00
Loaded 4206 entries from dependency cache.
Parsing recipes: 100% |##########################################################################################| Time: 0:00:12
Parsing of 3283 .bb files complete (3280 cached, 3 parsed). 4209 targets, 523 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
/home/prateekkhatri/tisdk/sources/meta-processor-sdk/recipes-devtools/python/python3-native_3.5.2.bbappend
/home/prateekkhatri/tisdk/sources/meta-processor-sdk/recipes-ti/devtools/ti-cgt-arm-native_16.9.2.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "aarch64-linux"
MACHINE = "am65xx-evm"
DISTRO = "arago"
DISTRO_VERSION = "2018.10"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta-processor-sdk = "HEAD:f33a37ac6baa8155302fa1faea99f1be5461779e"
meta-ros = "HEAD:e2566402ab108a19634354a934788109422cf409"
meta-arago-distro
meta-arago-extras = "HEAD:d4bc00af838df7a77f4ddbd3546755c5bad5b880"
meta-browser = "HEAD:26d50665e2f7223c5f4ad7481a8d2431e7cb55fb"
meta-qt5 = "HEAD:d8b531530fa42b59aa0a5b123d87a30d749cbcc4"
meta-virtualization = "HEAD:b704c689b67639214b9568a3d62e82df27e9434f"
meta-networking
meta-python
meta-oe
meta-gnome
meta-multimedia
meta-filesystems = "HEAD:eae996301d9c097bcbeb8046f08041dc82bb62f8"
meta-ti = "HEAD:02e852b1a069463f937ea594e13fe5f88ce9b74d"
meta-linaro-toolchain
meta-optee = "HEAD:cd9ee776044a2d8943be4cb019f063271e9c684d"
meta-wolfssl = "master:f4842e35cf7d69563d0f5c985cd2a7638ba69c00"
meta = "HEAD:3638cb32ba9ba32b4d498fc31ab7fdf82f0d2495"

Initialising tasks: 100% |#######################################################################################| Time: 0:00:01
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: wolfmqtt-1.2.0-r0 do_compile: oe_runmake failed
ERROR: wolfmqtt-1.2.0-r0 do_compile: Function failed: do_compile (log file is located at /home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/temp/log.do_compile.17264)
ERROR: Logfile of failure stored in: /home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/temp/log.do_compile.17264
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 12
| make -j17 all-am
| make[1]: warning: -jN forced in submake: disabling jobserver mode.
| make[1]: Entering directory '/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/build'
| ./aarch64-linux-libtool --tag=CC --mode=compile aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfmqtt-1.2.0 -I./src -DBUILDING_WOLFMQTT -fvisibility=hidden -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -fvisibility=hidden -DBUILDING_WOLFMQTT -O2 -DNDEBUG -pthread -DSIZEOF_LONG=8 -DENABLE_MQTT_TLS -DWOLFMQTT_DISCONNECT_CB -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0=/usr/src/debug/wolfmqtt/1.2.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot= -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -c -o src/src_libwolfmqtt_la-mqtt_socket.lo test -f 'src/mqtt_socket.c' || echo '../wolfmqtt-1.2.0/'src/mqtt_socket.c
| aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfmqtt-1.2.0 -I./src -I../wolfmqtt-1.2.0/examples -fvisibility=hidden -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -fvisibility=hidden -O2 -DNDEBUG -pthread -DSIZEOF_LONG=8 -DENABLE_MQTT_TLS -DWOLFMQTT_DISCONNECT_CB -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0=/usr/src/debug/wolfmqtt/1.2.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot= -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -c -o examples/examples_mqttclient_mqttclient-mqttexample.o test -f 'examples/mqttexample.c' || echo '../wolfmqtt-1.2.0/'examples/mqttexample.c
| aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfmqtt-1.2.0 -I./src -I../wolfmqtt-1.2.0/examples -fvisibility=hidden -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -fvisibility=hidden -O2 -DNDEBUG -pthread -DSIZEOF_LONG=8 -DENABLE_MQTT_TLS -DWOLFMQTT_DISCONNECT_CB -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0=/usr/src/debug/wolfmqtt/1.2.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot= -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -c -o examples/examples_nbclient_nbclient-mqttexample.o test -f 'examples/mqttexample.c' || echo '../wolfmqtt-1.2.0/'examples/mqttexample.c
| aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfmqtt-1.2.0 -I./src -I../wolfmqtt-1.2.0/examples -fvisibility=hidden -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -fvisibility=hidden -O2 -DNDEBUG -pthread -DSIZEOF_LONG=8 -DENABLE_MQTT_TLS -DWOLFMQTT_DISCONNECT_CB -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0=/usr/src/debug/wolfmqtt/1.2.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot= -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -c -o examples/examples_firmware_fwpush-mqttexample.o test -f 'examples/mqttexample.c' || echo '../wolfmqtt-1.2.0/'examples/mqttexample.c
| aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfmqtt-1.2.0 -I./src -I../wolfmqtt-1.2.0/examples -fvisibility=hidden -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -fvisibility=hidden -O2 -DNDEBUG -pthread -DSIZEOF_LONG=8 -DENABLE_MQTT_TLS -DWOLFMQTT_DISCONNECT_CB -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0=/usr/src/debug/wolfmqtt/1.2.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot= -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -c -o examples/examples_firmware_fwclient-mqttexample.o test -f 'examples/mqttexample.c' || echo '../wolfmqtt-1.2.0/'examples/mqttexample.c
| aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfmqtt-1.2.0 -I./src -I../wolfmqtt-1.2.0/examples -fvisibility=hidden -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -fvisibility=hidden -O2 -DNDEBUG -pthread -DSIZEOF_LONG=8 -DENABLE_MQTT_TLS -DWOLFMQTT_DISCONNECT_CB -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0=/usr/src/debug/wolfmqtt/1.2.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot= -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -c -o examples/examples_azure_azureiothub-mqttexample.o test -f 'examples/mqttexample.c' || echo '../wolfmqtt-1.2.0/'examples/mqttexample.c
| aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfmqtt-1.2.0 -I./src -I../wolfmqtt-1.2.0/examples -fvisibility=hidden -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -fvisibility=hidden -O2 -DNDEBUG -pthread -DSIZEOF_LONG=8 -DENABLE_MQTT_TLS -DWOLFMQTT_DISCONNECT_CB -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0=/usr/src/debug/wolfmqtt/1.2.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot= -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -c -o examples/aws/examples_aws_awsiot-awsiot.o test -f 'examples/aws/awsiot.c' || echo '../wolfmqtt-1.2.0/'examples/aws/awsiot.c
| aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfmqtt-1.2.0 -I./src -I../wolfmqtt-1.2.0/examples -fvisibility=hidden -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -fvisibility=hidden -O2 -DNDEBUG -pthread -DSIZEOF_LONG=8 -DENABLE_MQTT_TLS -DWOLFMQTT_DISCONNECT_CB -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0=/usr/src/debug/wolfmqtt/1.2.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot= -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -c -o examples/examples_aws_awsiot-mqttexample.o test -f 'examples/mqttexample.c' || echo '../wolfmqtt-1.2.0/'examples/mqttexample.c
| aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfmqtt-1.2.0 -I./src -I../wolfmqtt-1.2.0/examples -fvisibility=hidden -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -fvisibility=hidden -O2 -DNDEBUG -pthread -DSIZEOF_LONG=8 -DENABLE_MQTT_TLS -DWOLFMQTT_DISCONNECT_CB -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0=/usr/src/debug/wolfmqtt/1.2.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot= -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -c -o examples/examples_wiot_wiot-mqttexample.o test -f 'examples/mqttexample.c' || echo '../wolfmqtt-1.2.0/'examples/mqttexample.c
| aarch64-linux-libtool: compile: aarch64-linux-gnu-gcc --sysroot=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../wolfmqtt-1.2.0 -I./src -DBUILDING_WOLFMQTT -fvisibility=hidden -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -fvisibility=hidden -DBUILDING_WOLFMQTT -O2 -DNDEBUG -pthread -DSIZEOF_LONG=8 -DENABLE_MQTT_TLS -DWOLFMQTT_DISCONNECT_CB -isystem/home/prateekkhatri/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0=/usr/src/debug/wolfmqtt/1.2.0-r0 -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/recipe-sysroot= -Wno-pragmas -Wall -Wno-strict-aliasing -Wextra -Wunknown-pragmas --param=ssp-buffer-size=1 -Waddress -Warray-bounds -Wbad-function-cast -Wchar-subscripts -Wcomment -Wfloat-equal -Wformat-security -Wformat=2 -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wnormalized=id -Woverride-init -Wpointer-arith -Wpointer-sign -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-overflow=1 -Wswitch-enum -Wundef -Wunused -Wunused-result -Wunused-variable -Wwrite-strings -fwrapv -c ../wolfmqtt-1.2.0/src/mqtt_socket.c -fPIC -DPIC -o src/.libs/src_libwolfmqtt_la-mqtt_socket.o
| ../wolfmqtt-1.2.0/examples/mqttexample.c: In function ‘mqtt_tls_cb’:
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: error: ‘WOLFSSL_FAILURE’ undeclared (first use in this function); did you mean ‘SSL_FAILURE’?
| int rc = WOLFSSL_FAILURE;
| ^~~~~~~~~~~~~~~
| SSL_FAILURE
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: note: each undeclared identifier is reported only once for each function it appears in
| ../wolfmqtt-1.2.0/examples/mqttexample.c: In function ‘mqtt_tls_cb’:
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: error: ‘WOLFSSL_FAILURE’ undeclared (first use in this function); did you mean ‘SSL_FAILURE’?
| int rc = WOLFSSL_FAILURE;
| ^~~~~~~~~~~~~~~
| SSL_FAILURE
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: note: each undeclared identifier is reported only once for each function it appears in
| ../wolfmqtt-1.2.0/examples/mqttexample.c:388:49: error: ‘WOLFSSL_VERIFY_PEER’ undeclared (first use in this function); did you mean ‘SSL_VERIFY_PEER’?
| wolfSSL_CTX_set_verify(client->tls.ctx, WOLFSSL_VERIFY_PEER,
| ^~~~~~~~~~~~~~~~~~~
| SSL_VERIFY_PEER
| ../wolfmqtt-1.2.0/examples/mqttexample.c:392:14: error: ‘WOLFSSL_SUCCESS’ undeclared (first use in this function); did you mean ‘SSL_SUCCESS’?
| rc = WOLFSSL_SUCCESS;
| ^~~~~~~~~~~~~~~
| SSL_SUCCESS
| ../wolfmqtt-1.2.0/examples/mqttexample.c:388:49: error: ‘WOLFSSL_VERIFY_PEER’ undeclared (first use in this function); did you mean ‘SSL_VERIFY_PEER’?
| wolfSSL_CTX_set_verify(client->tls.ctx, WOLFSSL_VERIFY_PEER,
| ^~~~~~~~~~~~~~~~~~~
| SSL_VERIFY_PEER
| ../wolfmqtt-1.2.0/examples/mqttexample.c: In function ‘mqtt_tls_cb’:
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: error: ‘WOLFSSL_FAILURE’ undeclared (first use in this function); did you mean ‘SSL_FAILURE’?
| int rc = WOLFSSL_FAILURE;
| ^~~~~~~~~~~~~~~
| SSL_FAILURE
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: note: each undeclared identifier is reported only once for each function it appears in
| Makefile:1425: recipe for target 'examples/examples_firmware_fwpush-mqttexample.o' failed
| make[1]: *** [examples/examples_firmware_fwpush-mqttexample.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| ../wolfmqtt-1.2.0/examples/mqttexample.c:392:14: error: ‘WOLFSSL_SUCCESS’ undeclared (first use in this function); did you mean ‘SSL_SUCCESS’?
| rc = WOLFSSL_SUCCESS;
| ^~~~~~~~~~~~~~~
| SSL_SUCCESS
| ../wolfmqtt-1.2.0/examples/mqttexample.c:388:49: error: ‘WOLFSSL_VERIFY_PEER’ undeclared (first use in this function); did you mean ‘SSL_VERIFY_PEER’?
| wolfSSL_CTX_set_verify(client->tls.ctx, WOLFSSL_VERIFY_PEER,
| ^~~~~~~~~~~~~~~~~~~
| SSL_VERIFY_PEER
| Makefile:1383: recipe for target 'examples/examples_firmware_fwclient-mqttexample.o' failed
| make[1]: *** [examples/examples_firmware_fwclient-mqttexample.o] Error 1
| ../wolfmqtt-1.2.0/examples/mqttexample.c:392:14: error: ‘WOLFSSL_SUCCESS’ undeclared (first use in this function); did you mean ‘SSL_SUCCESS’?
| rc = WOLFSSL_SUCCESS;
| ^~~~~~~~~~~~~~~
| SSL_SUCCESS
| ../wolfmqtt-1.2.0/examples/mqttexample.c: In function ‘mqtt_tls_cb’:
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: error: ‘WOLFSSL_FAILURE’ undeclared (first use in this function); did you mean ‘SSL_FAILURE’?
| int rc = WOLFSSL_FAILURE;
| ^~~~~~~~~~~~~~~
| SSL_FAILURE
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: note: each undeclared identifier is reported only once for each function it appears in
| Makefile:1299: recipe for target 'examples/examples_aws_awsiot-mqttexample.o' failed
| make[1]: *** [examples/examples_aws_awsiot-mqttexample.o] Error 1
| ../wolfmqtt-1.2.0/examples/mqttexample.c:388:49: error: ‘WOLFSSL_VERIFY_PEER’ undeclared (first use in this function); did you mean ‘SSL_VERIFY_PEER’?
| wolfSSL_CTX_set_verify(client->tls.ctx, WOLFSSL_VERIFY_PEER,
| ^~~~~~~~~~~~~~~~~~~
| SSL_VERIFY_PEER
| ../wolfmqtt-1.2.0/examples/mqttexample.c:392:14: error: ‘WOLFSSL_SUCCESS’ undeclared (first use in this function); did you mean ‘SSL_SUCCESS’?
| rc = WOLFSSL_SUCCESS;
| ^~~~~~~~~~~~~~~
| SSL_SUCCESS
| ../wolfmqtt-1.2.0/examples/mqttexample.c: In function ‘mqtt_tls_cb’:
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: error: ‘WOLFSSL_FAILURE’ undeclared (first use in this function); did you mean ‘SSL_FAILURE’?
| int rc = WOLFSSL_FAILURE;
| ^~~~~~~~~~~~~~~
| SSL_FAILURE
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: note: each undeclared identifier is reported only once for each function it appears in
| Makefile:1341: recipe for target 'examples/examples_azure_azureiothub-mqttexample.o' failed
| make[1]: *** [examples/examples_azure_azureiothub-mqttexample.o] Error 1
| ../wolfmqtt-1.2.0/examples/mqttexample.c: In function ‘mqtt_tls_cb’:
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: error: ‘WOLFSSL_FAILURE’ undeclared (first use in this function); did you mean ‘SSL_FAILURE’?
| int rc = WOLFSSL_FAILURE;
| ^~~~~~~~~~~~~~~
| SSL_FAILURE
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: note: each undeclared identifier is reported only once for each function it appears in
| ../wolfmqtt-1.2.0/examples/aws/awsiot.c: In function ‘mqtt_aws_tls_cb’:
| ../wolfmqtt-1.2.0/examples/aws/awsiot.c:200:14: error: ‘WOLFSSL_FAILURE’ undeclared (first use in this function); did you mean ‘SSL_FAILURE’?
| int rc = WOLFSSL_FAILURE;
| ^~~~~~~~~~~~~~~
| SSL_FAILURE
| ../wolfmqtt-1.2.0/examples/aws/awsiot.c:200:14: note: each undeclared identifier is reported only once for each function it appears in
| ../wolfmqtt-1.2.0/examples/mqttexample.c:388:49: error: ‘WOLFSSL_VERIFY_PEER’ undeclared (first use in this function); did you mean ‘SSL_VERIFY_PEER’?
| wolfSSL_CTX_set_verify(client->tls.ctx, WOLFSSL_VERIFY_PEER,
| ^~~~~~~~~~~~~~~~~~~
| SSL_VERIFY_PEER
| ../wolfmqtt-1.2.0/examples/mqttexample.c:388:49: error: ‘WOLFSSL_VERIFY_PEER’ undeclared (first use in this function); did you mean ‘SSL_VERIFY_PEER’?
| wolfSSL_CTX_set_verify(client->tls.ctx, WOLFSSL_VERIFY_PEER,
| ^~~~~~~~~~~~~~~~~~~
| SSL_VERIFY_PEER
| ../wolfmqtt-1.2.0/examples/mqttexample.c: In function ‘mqtt_tls_cb’:
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: error: ‘WOLFSSL_FAILURE’ undeclared (first use in this function); did you mean ‘SSL_FAILURE’?
| int rc = WOLFSSL_FAILURE;
| ^~~~~~~~~~~~~~~
| SSL_FAILURE
| ../wolfmqtt-1.2.0/examples/mqttexample.c:384:14: note: each undeclared identifier is reported only once for each function it appears in
| ../wolfmqtt-1.2.0/examples/aws/awsiot.c:204:49: error: ‘WOLFSSL_VERIFY_PEER’ undeclared (first use in this function); did you mean ‘SSL_VERIFY_PEER’?
| wolfSSL_CTX_set_verify(client->tls.ctx, WOLFSSL_VERIFY_PEER,
| ^~~~~~~~~~~~~~~~~~~
| SSL_VERIFY_PEER
| ../wolfmqtt-1.2.0/examples/mqttexample.c:392:14: error: ‘WOLFSSL_SUCCESS’ undeclared (first use in this function); did you mean ‘SSL_SUCCESS’?
| rc = WOLFSSL_SUCCESS;
| ^~~~~~~~~~~~~~~
| SSL_SUCCESS
| ../wolfmqtt-1.2.0/examples/mqttexample.c:392:14: error: ‘WOLFSSL_SUCCESS’ undeclared (first use in this function); did you mean ‘SSL_SUCCESS’?
| rc = WOLFSSL_SUCCESS;
| ^~~~~~~~~~~~~~~
| SSL_SUCCESS
| ../wolfmqtt-1.2.0/examples/mqttexample.c:388:49: error: ‘WOLFSSL_VERIFY_PEER’ undeclared (first use in this function); did you mean ‘SSL_VERIFY_PEER’?
| wolfSSL_CTX_set_verify(client->tls.ctx, WOLFSSL_VERIFY_PEER,
| ^~~~~~~~~~~~~~~~~~~
| SSL_VERIFY_PEER
| Makefile:1509: recipe for target 'examples/examples_nbclient_nbclient-mqttexample.o' failed
| make[1]: *** [examples/examples_nbclient_nbclient-mqttexample.o] Error 1
| ../wolfmqtt-1.2.0/examples/aws/awsiot.c:209:59: error: ‘WOLFSSL_FILETYPE_PEM’ undeclared (first use in this function); did you mean ‘SSL_FILETYPE_PEM’?
| (const byte*)root_ca, (long)XSTRLEN(root_ca), WOLFSSL_FILETYPE_PEM);
| ^~~~~~~~~~~~~~~~~~~~
| SSL_FILETYPE_PEM
| Makefile:1467: recipe for target 'examples/examples_mqttclient_mqttclient-mqttexample.o' failed
| make[1]: *** [examples/examples_mqttclient_mqttclient-mqttexample.o] Error 1
| ../wolfmqtt-1.2.0/examples/mqttexample.c:392:14: error: ‘WOLFSSL_SUCCESS’ undeclared (first use in this function); did you mean ‘SSL_SUCCESS’?
| rc = WOLFSSL_SUCCESS;
| ^~~~~~~~~~~~~~~
| SSL_SUCCESS
| ../wolfmqtt-1.2.0/examples/aws/awsiot.c:212:19: error: ‘WOLFSSL_SUCCESS’ undeclared (first use in this function); did you mean ‘SSL_SUCCESS’?
| if (rc == WOLFSSL_SUCCESS)
| ^~~~~~~~~~~~~~~
| SSL_SUCCESS
| Makefile:1593: recipe for target 'examples/examples_wiot_wiot-mqttexample.o' failed
| make[1]: *** [examples/examples_wiot_wiot-mqttexample.o] Error 1
| ../wolfmqtt-1.2.0/src/mqtt_socket.c: In function ‘MqttSocket_Connect’:
| ../wolfmqtt-1.2.0/src/mqtt_socket.c:357:18: error: ‘WOLFSSL_SUCCESS’ undeclared (first use in this function); did you mean ‘SSL_SUCCESS’?
| rc = WOLFSSL_SUCCESS;
| ^~~~~~~~~~~~~~~
| SSL_SUCCESS
| ../wolfmqtt-1.2.0/src/mqtt_socket.c:357:18: note: each undeclared identifier is reported only once for each function it appears in
| ../wolfmqtt-1.2.0/src/mqtt_socket.c:375:53: error: ‘WOLFSSL_VERIFY_NONE’ undeclared (first use in this function); did you mean ‘SSL_VERIFY_NONE’?
| wolfSSL_CTX_set_verify(client->tls.ctx, WOLFSSL_VERIFY_NONE, 0);
| ^~~~~~~~~~~~~~~~~~~
| SSL_VERIFY_NONE
| Makefile:1271: recipe for target 'examples/aws/examples_aws_awsiot-awsiot.o' failed
| make[1]: *** [examples/aws/examples_aws_awsiot-awsiot.o] Error 1
| ../wolfmqtt-1.2.0/src/mqtt_socket.c:424:28: error: ‘WOLFSSL_ERROR_WANT_READ’ undeclared (first use in this function); did you mean ‘SSL_ERROR_WANT_READ’?
| if ((errnum == WOLFSSL_ERROR_WANT_READ) ||
| ^~~~~~~~~~~~~~~~~~~~~~~
| SSL_ERROR_WANT_READ
| ../wolfmqtt-1.2.0/src/mqtt_socket.c:425:28: error: ‘WOLFSSL_ERROR_WANT_WRITE’ undeclared (first use in this function); did you mean ‘WOLFSSL_ERROR_WANT_READ’?
| (errnum == WOLFSSL_ERROR_WANT_WRITE)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
| WOLFSSL_ERROR_WANT_READ
| Makefile:1264: recipe for target 'src/src_libwolfmqtt_la-mqtt_socket.lo' failed
| make[1]: *** [src/src_libwolfmqtt_la-mqtt_socket.lo] Error 1
| make[1]: Leaving directory '/home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/build'
| Makefile:855: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/temp/run.do_compile.17264:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/prateekkhatri/tisdk/build/arago-tmp-external-linaro-toolchain/work/aarch64-linux/wolfmqtt/1.2.0-r0/temp/log.do_compile.17264)
ERROR: Task (/home/prateekkhatri/tisdk/sources/meta-wolfssl/recipes-wolfssl/wolfmqtt/wolfmqtt_1.2.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 681 tasks of which 680 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/prateekkhatri/tisdk/sources/meta-wolfssl/recipes-wolfssl/wolfmqtt/wolfmqtt_1.2.0.bb:do_compile
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Please adivse.

Thanks!

@kaleb-himes
Copy link
Contributor

Hi @prateek-khatri,

Thank you for reaching out to wolfSSL. Can you tell us a bit about who this effort is for and what you are working on? If you do not wish to disclose publicly feel free to reach out to us at [email protected] for a more private venue.

I'll have one of the wolfSSH developers review your notes and post some feedback shortly.

Regards,

K

@prateek-khatri
Copy link
Author

We are designing an MQTT client for streaming some logs. At this point we are evaluating performance and ease of use for MQTT Client libraries. If WolfSSL and WolfMqtt meets our needs we may buy the commercial license. I am afraid I won't be able to disclose more details at this point.

@kaleb-himes
Copy link
Contributor

kaleb-himes commented Jun 14, 2019

@prateek-khatri,

Not a problem, thanks for sharing what you can, it helps us to understand the nature of the inquiry and we appreciate what details you can provide.

Do you have a specific device or linux distro you are targeting at the moment? If not I have a test script I could send over that builds for qemux86. I just ran it to see if there was something changed that broke the build steps but everything checks out. If it helps we specifically target yocto-2.6 of the git://git.yoctoproject.org/poky project. (We haven't yet tested with newer versions yet).

Regards,

K

@prateek-khatri
Copy link
Author

Hi Kaleb,

I am targetting the AM65x EVM from TI. It is using the processor SDK for Linux provided by TI.
The build configuration can also be seen in the original post:
Build Configuration: BB_VERSION = "1.36.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-18.04" TARGET_SYS = "aarch64-linux" MACHINE = "am65xx-evm" DISTRO = "arago" DISTRO_VERSION = "2018.10" TUNE_FEATURES = "aarch64" TARGET_FPU = ""

@kaleb-himes
Copy link
Contributor

@prateek-khatri,

Thanks, sorry I overlooked it. Here are the build specs I'm using, quite different as you can see:

===== Compiling wolfSSH Recipe ==========================================
WARNING: Host distribution "ubuntu-18.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |############################################################################| Time: 0:00:00
Loaded 1276 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.40.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "i586-poky-linux"
MACHINE              = "qemux86"
DISTRO               = "poky"
DISTRO_VERSION       = "2.6"
TUNE_FEATURES        = "m32 i586"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "my-yocto-2.6:84eecb017ef92ef36b4df730908828e54aeff85c"
meta-wolfssl         = "master:f4842e35cf7d69563d0f5c985cd2a7638ba69c00"

Could you try building with distro version 2.6 and let us know if you see the same errors as you are getting with 2018.10?

@prateek-khatri
Copy link
Author

The build environment is provided by TI as processor SDK. I am not sure if I can change the distro version.

@kaleb-himes
Copy link
Contributor

kaleb-himes commented Jun 14, 2019

@prateek-khatri,

Is there a guide or instructions for building that one of our engineers could use to try and reproduce the issue on our side?

Regards,

K

@kaleb-himes
Copy link
Contributor

Thanks! I'll try to reproduce the issue and let you know if we can find a solution for it.

@prateek-khatri
Copy link
Author

Thanks Kaleb, let me know if you have more questions along the way.

Please make note for the MACHINE variable I am using for bitbake:

MACHINE=am65xx-evm bitbake wolfssh

@kaleb-himes
Copy link
Contributor

NOTE 1) Selected ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-05.03.00.07-config.txt from guide (Not sure which version you used) I got stuck on this step though and testing on a VM it ran out of memory :-(

Moved over to a physical machine with more memory and trying again.

@prateek-khatri
Copy link
Author

Hi Kaleb,

Yes that is the version I used. You would need around 200 GB hard drive space for this build.

Thanks for going through the trouble of building the whole thing, I really appreciate it.

Prateek

@kaleb-himes
Copy link
Contributor

@prateek-khatri,

No problem, I got the toolchain nearly built but it's close to the end of the day here so I won't be able to test wolfSSL till the beginning or middle of next week (My Mondays and Tuesdays are pretty booked at the moment) Would an update by next Wed or Thursday be OK for your timeline?

  • KH

@prateek-khatri
Copy link
Author

Hi Kaleb,

I was able to build wolfssl, however SSH and MQTT were giving the issue.

Yes, Wed or Thursday would work.

Thank you so much!

@prateek-khatri
Copy link
Author

@kaleb-himes
Hi Kaleb,
Any update regarding this?

@kaleb-himes
Copy link
Contributor

@prateek-khatri ,

I am so very sorry no, I had some priorities come through that tied up my week. Thank you so much for the reminder and bringing this back to the top of my work queue. I just logged into the machine and the step $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-05.03.00.07-config.txt did finish successfully so I am ready to perform next steps. Will post an update ASAP.

  • KH

@kaleb-himes
Copy link
Contributor

kaleb-himes commented Jun 21, 2019

UPDATE:

I can reproduce the successful build of wolfSSL and am now working to reproduce the failure of wolfSSH bitbake build.

(Very slow build process sorry for the delay again)

@prateek-khatri
Copy link
Author

Hi Kaleb,

Yes the SSH and MQTT were the ones failing.

Thanks,
Prateek

@kaleb-himes
Copy link
Contributor

kaleb-himes commented Jun 22, 2019

Update: Still working late on my Friday trying to sort this out, Can easily reproduce the errors but the TISDK is downloading wolfSSL-3.12.0 a much older version when I build SSH and I am unable to determine where that is coming from when our bitbake file specifies to use 4.0.0. I suspect that TI is distributing an older version of wolfSSL with this SDK.

@kaleb-himes
Copy link
Contributor

In the older version of wolfSSL (3.12.0) we had not yet updated to WC_SHA, we were still using just SHA. The wolfSSH product assumes the newer defines WC_SHA so it is failing to build with the older wolfSSL library.

@prateek-khatri
Copy link
Author

prateek-khatri commented Jun 22, 2019 via email

@kaleb-himes
Copy link
Contributor

kaleb-himes commented Jun 22, 2019

I noticed it when I saw this warning:

WARNING: wolfssl-3.12.0-r0 do_configure: QA Issue: wolfssl: configure was passed unrecognised options: --enable-ssh --enable-cryptodev [unknown-configure-option]

wolfssl-3.12.0 doesn't even know about wolfSSH, we hadn't added the config for it yet. I suspect we are going to have to contact TI support and have them put wolfSSL-4.0.0 into their SDK to get this resolved since meta-wolfssl is resolving to wolfssl-3.12.0 when used with their SDK.

@kaleb-himes
Copy link
Contributor

Update: Trying two other things:

  1. Can we replace the meta-wolfSSL ourselves in the SDK.
  2. If not 1, going to see if using a different name will by-pass the wolfssl-3.12 in the SDK

Will post results when testing complete.

@kaleb-himes
Copy link
Contributor

Update:

  1. May work.
  • Replaced sources/meta-openembedded/meta-networking/recipes-connectivity/wolfssl/wolfssl-3.12.0.bb with wolfssl-4.0.0.bb (@cconlon sent an update to meta-openembedded to get this updated)

  • add --enable-singlethreaded to wolfssl%.bb.append in meta-wolfssh directory, working to get SINGLE_THREADED set in CFLAGS in wolfssh-1.3.0.bb, ran out of time to test before end-of-day

@kaleb-himes
Copy link
Contributor

@prateek-khatri

Just wanted to let you know I’m out of the office till Monday but will resume trying to identify a resolution to the noted issue as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants