-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: ImportError: /usr/lib/python3.9/site-packages/wolfcrypt/_ffi.abi3.so: undefined symbol: wc_DerToPemEx #7437
Comments
I have diffed the configurations used for the manual step (left side) and by the Python package (right side) and I am not experienced enough to guess what could be causing my import error:
|
Hi @stanislaw , wc_DerToPemEx requires that WOLFSSL_DER_TO_PEM is defined, and NO_ASN/NO_CERTS are not defined. Using configure, you can enable either certgen or keygen: --enable-certgen or --enable-keygen to enable this flag. |
Hi @kareem-wolfssl, thanks a lot for your answer. Right now, I have tried the options:
The previous error has gone but now I am getting:
I have already tried the option of UPDATED LATER: Following this issue #7116, I have switched to the latest master and the
The issue that I am facing now is that the encryption is still very slow but I will open a separate issue to track that. Before I close this issue, is there anything that I can do to support documenting the missing information as per your comment? It would have been great to see this documented somewhere. Thanks. |
Contact Details
stanislav@reflexaerospace.com
Version
Cloned from GitHub. Commit: 03ed52b
When I switch to
v5.6.6-stable
, I still get the same import error.Description
Following up on a conversation with a wolfSSL representative at Embedded World 2024, I am trying to improve a performance of our encryption code that uses the
wolfcrypt
Python package.We are using PetaLinux 2022.1 which is running on Xilinx UltraScale+. I am compiling wolfssl using the default instructions (provided below) and getting an import error (see the relevant logs below).
I tried to build both the latest version of
wolfssl
repository as well as the version that is used by the Pip package, which isv5.6.6-stable
. The result is the same, I am getting the import error.At the same time, when I install a Pip package
wolfcrypt
, the latest version5.6.6.post0
, without manually building wolfssl myself, I confirm that the library is working correctly.I am new to building wolfssl, so maybe I am missing something trivial. I tried adding
--enable-asn
with my configure step because I thought that the missing symbolwc_DerToPemEx
had to do with a missing ASN support but I still got the same import error.Thanks for reading this. I would be thankful for any advice.
Reproduction steps
I run my Python like this:
Relevant log output
The import error that I am getting:
The text was updated successfully, but these errors were encountered: