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?