Topic: WolfSSL + LwIP timeval compiler error

Hi,
This is just not making sense.  I have imported WolfSSL into our LCP54 project in MCUXpresso.  I have configured WolfSSL (hopefully correctly).  When I compile I get the following error.

Description    Resource    Path    Location    Type
redefinition of 'struct timeval'    sockets.h    /Titan_Gateway/LIB/lwip/src/include/lwip    line 440    C/C++ Problem

In wolfssl/callback.h  (~line 5) a structure named WOLFSSL_TIMEVAL is defined.  The search locates 17 matches to "struct timeval", but not are actual definitions of timeval.

Post's attachments

wolfsslCallbacks_timeval.png
wolfsslCallbacks_timeval.png 23.84 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Share

Re: WolfSSL + LwIP timeval compiler error

Adding timeval search result.

Post's attachments

timevalSearch.png
timevalSearch.png 82.16 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Share

Re: WolfSSL + LwIP timeval compiler error

Hmm, could swear I tried this yesterday and the board would not boot.  I have defined

LWIP_TIMEVAL_PRIVATE

to zero.  Code compiles and run on product.

Share