-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Problems when enabling encryption as flag in cmake command #6420
Comments
Something is very wrong here. |
Well I downloaded the source again from github and was successful with the compilation of the lib. However, now when I try to compile everything(parameters: -lssl -lcrypto -I/usr/lib/ssl), it shows me a lot of undefined reference errors. Do I need to have a specific openssl version? I have installed the latest one. Here are some of the undefined ref errors: /usr/bin/ld: open62541.o: in function |
I think you need to add -lx509… |
I rebuilt the project and the issue was solved after I added the correct parameters for OpenSSL. I woul have another question although, I followed the example of "server_encryption.c". However the terminal still tells the following: So my question is, didnt I corretly added the policy, and if not how can I add it? |
Description
I have troubles enabling encryption with openssl when building the open62541 lib. It doesnt show me any error when running the cmake command itself, however, when I am calling the make command the terminal says pretty fast:
ua_eventfilter_grammar.leg:30343:1: error: conflicting types for ‘UA_OpenSSL_LoadLocalCertificate’
OpenSSL is installed(libssl-dev), I am using ubuntu 20.04.6 LTS.
Background Information / Reproduction Steps
Configuring building flags
Used CMake options:
Checklist
Please provide the following information:
UA_LOGLEVEL
set as low as necessary) attachedThe text was updated successfully, but these errors were encountered: