open-quantum-safe / oqs-demos

PARTIALLY SUPPORTED Instructions for enabling the use of quantum-safe cryptography in assorted software using the OQS suite. CONTRIBUTORS WANTED.
https://openquantumsafe.org/
132 stars 74 forks source link

OpenLiteSpeed doesn't properly build any more #176

Closed baentsch closed 1 year ago

baentsch commented 1 year ago

@Keelan10 Would you have time to check this demo? It seems the binary is not getting built despite the docker build command succeeding:

[...]
[  2%] Building C object src/lsr/CMakeFiles/lsr.dir/ls_buf.c.o
In file included from /opt/openlitespeed/../third-party/include/openssl/ex_data.h:114,
                 from /opt/openlitespeed/../third-party/include/openssl/bio.h:66,
                 from /opt/openlitespeed/../third-party/include/openssl/ssl.h:147,
                 from /opt/openlitespeed/src/sslpp/ssldef.h:26,
                 from /opt/openlitespeed/src/sslpp/sslconnection.h:23,
                 from /opt/openlitespeed/src/util/httpfetch.h:22,
                 from /opt/openlitespeed/src/util/httpfetchdriver.cpp:19:
/opt/openlitespeed/../third-party/include/openssl/stack.h:514:32: error: 'enable_if_t' is not a member of 'std'; did you mean 'enable_if'?
  514 | struct DeleterImpl<Stack, std::enable_if_t<StackTraits<Stack>::kIsConst>> {
      |                                ^~~~~~~~~~~
      |                                enable_if
/opt/openlitespeed/../third-party/include/openssl/stack.h:514:32: error: 'enable_if_t' is not a member of 'std'; did you mean 'enable_if'?
  514 | struct DeleterImpl<Stack, std::enable_if_t<StackTraits<Stack>::kIsConst>> {
      |                                ^~~~~~~~~~~
      |                                enable_if
[...]
[ 15%] Linking CXX static library liblsr.a
[ 15%] Built target lsr
make: *** [Makefile:130: all] Error 2
cp: cannot stat 'build/src/openlitespeed': No such file or directory
cp: cannot stat 'build/src/modules/modreqparser/*.so': No such file or directory
cp: cannot stat 'build/src/modules/modinspector/*.so': No such file or directory
cp: cannot stat 'build/src/modules/uploadprogress/*.so': No such file or directory
Start to pack files.
-e Building finished, please run ./install.sh for installation.
-e You may want to update the ols.conf to change the settings before installation.
-e Enjoy.
download comamnd is wget -nv -O 
INSTALL_TYPE is reinstall
Cannot find RUBY installation, remember to fix up the ruby path configuration
before you can use our easy RubyOnRails setup.

Target_Dir:/usr/local/lsws User:nobody Group:nogroup 
Admin:admin Password:+sEaTdQF AdminSSL:yes ADMIN_PORT:7080 
LSINSTALL_DIR:/opt/openlitespeed/dist 
TEMP_DIR:/tmp/lshttpd PID_FILE:/tmp/lshttpd/lshttpd.pid

-e Installing, please wait...

Admin SSL enabled!
[...]
Keelan10 commented 1 year ago

Hi, I will have a look at it and get back to you next week.

baentsch commented 1 year ago

OpenLiteSpeed builds again OK. Apparently no further action necessary.