Topic: [SOLVED] Compile Error mbed

Hey guys,

I'm trying to set up the WolfSSL library on a with  OM13098: LPCXpresso54628 mbed OS 5. I'm working with the online armMbed Compiler imported this version of WolfSSL: https://os.mbed.com/users/wolfSSL/code/wolfSSL/.

When trying to compile the library i get the following error:
Incomplete type is not allowed "MEMSET(certTime, 0, sizeof(struct tm));" in asn.c
It probably has to do with the struct tm definition. Are there any settings i have to configure first (#defines)?

thanks for your help

Share

Re: [SOLVED] Compile Error mbed

Hi dervin,

Thank you for contacting wolfSSL via the forums with your questions!

It looks like that might simply be a typo in the code. Could you try changing the line to use

XMEMSET

instead of

MEMSET

and let us know if that resolves the issues?

Warm Regards,

K

3 (edited by dervin 2018-11-29 07:01:07)

Re: [SOLVED] Compile Error mbed

hi Kaleb,

XMEMSET is just a Macro: 

define XMEMSET(pmem, data_val, size) \
                    ((void)Mem_Set((void *)(pmem), (CPU_INT08U) (data_val), \
                    (CPU_SIZE_T)(size)))

I got still the same error. Do I have to configurate the files settings.h, options.h? I uncommented the #define mbed line in settings.h but this didn't resolved my problem.

thanks for your help

edit:
Found the error, I had to uncomment:

    /* Options for Sample program */
    #define WOLFSSL_NO_VERIFYSERVER
    #define NO_FILESYSTEM

Share

Re: [SOLVED] Compile Error mbed

Dervin,

Glad to see you resolved by defining NO_FILESYSTEM, WOLFSSL_NO_VERIFYSERVER

- K

Re: [SOLVED] Compile Error mbed

dervin,

Can you share a few details about what it is you are working on the end goals of your project?

- KH