when using zephyr with wolfssl -> error: 'CONFIG_NET_BUF_USER_DATA_SIZE' undeclared here


Stefan Hristozov
 

Hi
I want to use wolfssl in my zephyr project. My proj.conf looks like that:

CONFIG_ENTROPY_GENERATOR=y
CONFIG_TEST_RANDOM_GENERATOR=y

CONFIG_TINYCBOR=y
CONFIG_WOLFSSL=y


Unfortunately I get this error:

In file included from /home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/include/net/net_l2.h:15,
from /home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/include/net/net_if.h:29,
from /home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/include/net/net_context.h:27,
from /home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/include/net/dns_resolve.h:17,
from /home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/include/net/socket.h:27,
from /home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/ext/lib/crypto/wolfssl/include/wolfssl/wolfcrypt/settings.h:1480,
from /home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/ext/lib/crypto/wolfssl/library/wolfcrypt/src/cpuid.c:27:
/home/stefan/workspaces/zephyrproject/zephyrproject/zephyr/include/net/buf.h:528:17: error: 'CONFIG_NET_BUF_USER_DATA_SIZE' undeclared here (not in a function); did you mean 'CONFIG_HEAP_MEM_POOL_SIZE'?
u8_t user_data[CONFIG_NET_BUF_USER_DATA_SIZE] __net_buf_align;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_HEAP_MEM_POOL_SIZE
[49/203] Building C object zephyr/arch/arch/arm/core/CMakeFiles/arch__arm__core.dir/prep_c.c.obj

I already have contacted the wolfssl support. According to them it is an zephyr issue.

Best regards
Stefan

Join users@lists.zephyrproject.org to automatically receive all group messages.