Comments (5)
I used -- disable benchmark to compile Wolfssl successfully, but now there is an error in compiling the demo
└─# /etc/xcompile/armv5l/bin/armv5l-gcc -o demo demo.c -lwolfssl -static -lpthread -lm -DWC_NO_HARDEN
In file included from /etc/xcompile/armv5l/bin/../include/wolfssl/wolfcrypt/hash.h:41,
from /etc/xcompile/armv5l/bin/../include/wolfssl/wolfcrypt/hmac.h:29,
from /etc/xcompile/armv5l/bin/../include/wolfssl/openssl/compat_types.h:31,
from /etc/xcompile/armv5l/bin/../include/wolfssl/ssl.h:42,
from demo.c:40:
/etc/xcompile/armv5l/bin/../include/wolfssl/wolfcrypt/sha512.h:141: error: expected specifier-qualifier-list before 'word64'
In file included from /etc/xcompile/armv5l/bin/../include/wolfssl/openssl/ssl.h:46,
from /etc/xcompile/armv5l/bin/../include/wolfssl/openssl/asn1.h:27,
from /etc/xcompile/armv5l/bin/../include/wolfssl/ssl.h:4178,
from demo.c:40:
/etc/xcompile/armv5l/bin/../include/wolfssl/openssl/crypto.h:71: error: expected ')' before 'opts'
In file included from demo.c:40:
/etc/xcompile/armv5l/bin/../include/wolfssl/ssl.h:4952: error: expected ')' before 'opts'
from wolfssl.
Hi @1756816846 ,
It looks like you are linking wolfSSL to your application and seeing build errors there. You need to include our options.h and settings.h headers before all other wolf/OpenSSL headers in all files which include these headers:
#include <wolfssl/options.h>
#include <wolfssl/wolfcrypt/settings.h>
I would also recommend removing WC_NO_HARDEN as this define should not be needed.
from wolfssl.
#include <wolfssl/options.h>
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/ssl.h>
/include/wolfssl/wolfcrypt/sha512.h:141: error: expected specifier-qualifier-list before 'word64'
from wolfssl.
Hi @1756816846 ,
The SHA2-512 requires a 64-bit type. Most 32-bit systems support a "long long" or "uint64_t". I suspect your compiler and configure is not properly detecting "long long" as 64-bit.
You can try adding CFLAGS="-DSIZEOF_LONG_LONG=8"
to the ./configure.
If that doesn't work please share your config.log
from ./configure.
Thanks,
David Garske, wolfSSL
from wolfssl.
Yes, you have successfully helped me solve this problem. Thank you
from wolfssl.
Related Issues (20)
- esp32_sha errors -> 5.6.6-stable-update2-esp32 HOT 54
- How to compile chacha_asm.S for Windows x86_64? HOT 14
- [Bug]: Variable size typo in GetCipherSpec() HOT 2
- [Bug]: `make check` fails on OpenBSD 7.4 HOT 5
- [Bug]: ERROR -308: failed to connect to wolfSSL -1 HOT 7
- [Bug]: armv7l build error: wolfcrypt/src/src_libwolfssl_la-sp_int.lo] Error 1 HOT 1
- [Bug]: include/wolfssl/wolfcrypt/sha512.h:141: error: expected specifier-qualifier-list before 'word64' HOT 1
- [Bug]: DTLS Anti-Replay Mechanism Corner Cases HOT 3
- [Bug]: ClientHello's status_request extension handling issue HOT 10
- [Bug]: ClientHello's handshake version issue HOT 7
- ld: warning: alignment (4) of atom '_cpuFlagsSet' from '...x25519_asm.o' is too small and may result in unaligned pointers HOT 1
- gpg --verify failure HOT 2
- [Bug]: Chacha20_poly1305 WolfSSL and OpenSSL produce same ciphertext but different tags HOT 8
- How to bundle this lib with FetchContent/ExternalProject to find it later with pkg_check_modules? HOT 5
- Arduino Nano ESP32 examples fail to build in Arduino IDE HOT 1
- [Suggestion] Consider defaulting WOLFSSL_ALT_CERT_CHAINS to ON ( Failed to verify CA from chain error ) HOT 2
- [Bug]: a potiential divide by zero exception HOT 1
- [OpenSSL compatibility]: 5.6.6 and/or v5.6.6-stable-564-g3129e29a1 do not fill int pointed to by 2nd argument to SSL_CIPHER_get_bits(sc, &bitsalg); HOT 2
- Add a function to derive default ciphers HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wolfssl.