Topic: Error while Building wolfssl 3.11.0

Hi,

I am trying to build wolfssl 3.11.0-stable In windows 7 64-bit OS using command prompt. But i got error in ssl.c File at Line 1743.

    /* read all protocol name from the list */
    token[idx] = XSTRTOK(list, ",", &ptr);
    while (token[idx] != NULL)
        token[++idx] = XSTRTOK(NULL, ",", &ptr);
Post's attachments

bildError01.png
bildError01.png 31.37 kb, 2 downloads since 2017-08-28 

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

Share

Re: Error while Building wolfssl 3.11.0

Hi Nimesh,

We recently implemented a custom strtok replacement to resolve build environments that do not have an implementation. We found MINGW and a few other build environments are missing this, so we wrote our own.

This change was merged into master on Aug 17, 2017. You can find the pull request here:
https://github.com/wolfSSL/wolfssl/pull/1105

To force use of this define `USE_WOLF_STRTOK`. With configure this would be `./configure CFLAGS="-D USE_WOLF_STRTOK"`.

Let me know if this helps.

Thanks,
David Garske, wolfSSL

Share

Re: Error while Building wolfssl 3.11.0

Hi David,

Thanks For Reply.

I made all change in "wc_port.c", "wc_port.h" and "types.h" File as described in Link.

But I didnt know where to configure this ,

To force use of this define `USE_WOLF_STRTOK`. With configure this would be `./configure CFLAGS="-D USE_WOLF_STRTOK"`.

I am Building WOLFSSL Library using command prompt In windows 7 64-bit OS.


Regards,
Nimesh

Share

Re: Error while Building wolfssl 3.11.0

Hi Nimesh,

I see you are using the tirtos package build. You'll need to add `gnuOpts += "-DUSE_WOLF_STRTOK";` to `tirtos/wolfssl.bld`.

Let me know if that helps.

Thanks, David G.

Share

5 (edited by Nimesh 2017-12-21 20:36:59)

Re: Error while Building wolfssl 3.11.0

Hi David,

Sorry for the Late Post.

I made changes as per your last post But i am still getting Error.


Regards,
Nimesh

Post's attachments

Untitled_1.png
Untitled_1.png 74.76 kb, 1 downloads since 2017-12-22 

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

Share