Git Product home page Git Product logo

Comments (5)

baentsch avatar baentsch commented on July 28, 2024

This looks like your build setup cannot find liboqs (shared or static). Please post the exact configure command as well as the resultant ld command leading to these error messages. Also helpful would be sharing the output of ls of your oqs-openssl build directory when this error occurred.

from oqs-demos.

ibmo96 avatar ibmo96 commented on July 28, 2024

Latest version of liboqs was built correctly, so the oqs folder embeded in the openssl directory exists (include and lib folder). The configure command was actually run through Nginx (version 1.20.1) so as to compile Nginx and OQS-OpenSSL together:

./configure --pid-path=/run/nginx.pid --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --lock-path=/var/run/nginx.lock --with-openssl=/opt/openssl --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-I/opt/openssl/oqs/include-g -O2 -fdebug-prefix-map=/data/builder/debuild/nginx-1.20.1/debian/debuild-base/nginx-1.20.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-L/opt/openssl/oqs/lib-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'

Notice the --with-cc-opt= and --with-ld-opt= referencing the header and library files of OQS-OpenSSL.

from oqs-demos.

baentsch avatar baentsch commented on July 28, 2024

Very well -- then that doesn't explain the problems immediately. Can you please also paste the actual ld (or linking gcc) command line trigging the error messages above? That's one hell of a software config stack... On second glance, the --with-ld-opt='-L/opt/openssl/oqs/lib-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie piece looks suspicious in my eyes: If there is indeed no space between "-L/opt/openssl/oqs/lib" and "-Wl,-z" (??) I wouldn't want to bet on ´ld´ finding liboqs...

from oqs-demos.

ibmo96 avatar ibmo96 commented on July 28, 2024

The issue was solved with the the space between "-L/opt/openssl/oqs/lib" and "-Wl,-z" . Yes it is a pretty hefty config stack, im currently writing a master thesis on migrating Nginx servers to post-quantum TLS and part of this is a migration tool that takes a users pre-existing Nginx configure arguments and appends the relevant oqs references. Although a bit problematic when the default configure arguments are so hefty when first installing Nginx through a package manager like apt-get.

from oqs-demos.

baentsch avatar baentsch commented on July 28, 2024

OK, so let's close this issue then. As discussed here let's talk about integrating your work into oqs-demos as and when you have time.

from oqs-demos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.