Skip to content
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

Failure when linking C shared library / tests #1779

Closed
mhsm2000 opened this issue May 4, 2024 · 1 comment
Closed

Failure when linking C shared library / tests #1779

mhsm2000 opened this issue May 4, 2024 · 1 comment

Comments

@mhsm2000
Copy link

mhsm2000 commented May 4, 2024

Hello,

I am currently trying to build the repository with Linux Ubuntu, following the README and am receiving the following error when executing the ninja command:

[662/680] Linking C shared library lib/liboqs.so.0.10.1-dev
FAILED: lib/liboqs.so.0.10.1-dev 
: && /usr/bin/cc -fPIC   -Wl,-z,noexecstack -shared -Wl,-soname,liboqs.so.5 -o lib/liboqs.so.0.10.1-dev @CMakeFiles/oqs.rsp  && :
/usr/bin/ld: /usr/bin/openssl: stdin: invalid version 5 (max 0)
/usr/bin/ld: /usr/bin/openssl: error adding symbols: bad value
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

For the cmake before I used cmake -DBUILD_SHARED_LIBS=ON -GNinja ..

Previous to adding the shared library option I received the same error but for different tests as in e.g. tests/example_kem and others.

I've looked up the error and so far have not found a solution that works or any similar error in the issues on this page. Any help or idea for a solution would be greatly appreciated. Thanks!

Environment:

  • OS: Ubuntu 24.04
  • OpenSSL version: 3.0.13
  • Compiler version used: gcc 13.2.0
  • liboqs version main branch
@mhsm2000
Copy link
Author

mhsm2000 commented May 6, 2024

Could actually fix it with the solution from the following issue: #1748

@mhsm2000 mhsm2000 closed this as completed May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant