1 (edited by divyanshu.srivastava 2021-01-11 00:56:02)

Topic: [SOLVED] Errors in building wolfssl-4.5.0-commercial-fips

I am on ubuntu-18.04.5LTS and trying to build wolfssl-4.5.0-commercial-fips. I had executed the following steps

cd wolfssl-directory 
./configure --enable-fips --enable-jni
make

After that, there is an error and the error is: -

make -j5  all-am
make[1]: Entering directory '/home/user/Desktop/wolfssl/wolfssl-4.5.0-commercial-fips-linuxv2'
  CC       wolfcrypt/benchmark/benchmark.o
  CC       ctaocrypt/src/src_libwolfssl_la-hmac.lo
  CC       ctaocrypt/src/src_libwolfssl_la-random.lo
  CC       ctaocrypt/src/src_libwolfssl_la-sha256.lo
  CC       ctaocrypt/src/src_libwolfssl_la-rsa.lo
In file included from wolfcrypt/benchmark/benchmark.c:118:0:
./wolfssl/wolfcrypt/random.h:164:21: error: unknown type name 'OS_Seed'
 int wc_GenerateSeed(OS_Seed* os, byte* seed, word32 sz);
                     ^~~~~~~
In file included from wolfcrypt/benchmark/benchmark.c:23:0:
./wolfssl/wolfcrypt/settings.h:221:24: error: unknown type name 'RNG'
         #define WC_RNG RNG
                        ^
./wolfssl/wolfcrypt/random.h:174:29: note: in expansion of macro 'WC_RNG'
 WOLFSSL_API int  wc_InitRng(WC_RNG*);
                             ^~~~~~
./wolfssl/wolfcrypt/settings.h:221:24: error: unknown type name 'RNG'
         #define WC_RNG RNG
                        ^
...

Makefile:4386: recipe for target 'wolfcrypt/benchmark/benchmark.o' failed
make[1]: *** [wolfcrypt/benchmark/benchmark.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/user/Desktop/wolfssl/wolfssl-4.5.0-commercial-fips-linuxv2'
Makefile:3291: recipe for target 'all' failed
make: *** [all] Error 2

The full output is attached here as a .txt file.

make and GCC version is:-

make --version
GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Can someone help me out with the error?

Post's attachments

wolf-ssl-error-output.txt 64.23 kb, 1 downloads since 2021-01-08 

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

Share

Re: [SOLVED] Errors in building wolfssl-4.5.0-commercial-fips

Hey,

Thanks for contacting wolfSSL!

Can you try
`./configure --enable-fips=v2 --enable-jni` and let me know if it works?

The ' --enable-fips=v2' option should be used to configure the latest commercial FIPS with certificate #3389.


Best Regards,
Tesfa

Share

Re: [SOLVED] Errors in building wolfssl-4.5.0-commercial-fips

Yes it's worked

`./configure --enable-fips=v2 --enable-jni`

Thank you

Share