Justin Ross created PROTON-2544:
-----------------------------------
Summary: Build fails on Fedora 36
Key: PROTON-2544
URL: https://issues.apache.org/jira/browse/PROTON-2544
Project: Qpid Proton
Issue Type: Bug
Reporter: Justin Ross
Fedora 36 has GCC 12 and OpenSSL 3.
{noformat}
~/code/qpid-proton/bld$ cmake .. -DCMAKE_INSTALL_PREFIX=~/.local
-- The C compiler identification is GNU 12.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "3.0.2")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found SWIG: /usr/bin/swig (found version "4.0.2")
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0")
-- Found CyrusSASL: /usr/lib64/libsasl2.so (found version "2.1.27")
-- Found Python: /usr/bin/python3.10 (found suitable version "3.10.4", minimum
required is "3.6") found components: Interpreter Development Development.Module
Development.Embed
-- Looking for a CXX compiler
-- Looking for a CXX compiler - /usr/bin/c++
-- The CXX compiler identification is GNU 12.1.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type is "RelWithDebInfo" (has debug symbols)
-- PN_VERSION: 0.38.0 (dev)
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for epoll_wait
-- Looking for epoll_wait - found
-- Building the epoll proactor
-- Found Doxygen: /usr/bin/doxygen (found version "1.9.1") found components:
doxygen dot
CMake Deprecation Warning at CMakeLists.txt:374 (cmake_policy):
The OLD behavior for policy CMP0078 will be removed from a future version
of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Deprecation Warning at CMakeLists.txt:377 (cmake_policy):
The OLD behavior for policy CMP0086 will be removed from a future version
of CMake. The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Found Ruby: /usr/bin/ruby (found suitable version "3.1.2", minimum required
is "1.8.0")
-- Found JsonCpp: /lib64/libjsoncpp.so (found version "1.9.5")
-- Looking for Python module sphinx - found
-- Looking for Python module setuptools - found
-- Looking for Python module wheel - not found
-- Looking for Python module flake8 - not found
-- Looking for Python module tox - not found
-- The tox tool is not available; skipping the python-tox-tests
-- Ruby tests will not run, minitest is not installed
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/jross/code/qpid-proton/bld~/code/qpid-proton/bld$ make -j $(nproc)
Scanning dependencies of target cproton_swig_compilation
Scanning dependencies of target cproton-ruby_swig_compilation
[ 1%] Building C object
c/CMakeFiles/qpid-proton-platform-io-objects.dir/src/reactor/io/posix/io.c.o
[ 1%] Building C object
c/CMakeFiles/qpid-proton-proactor-objects.dir/src/proactor/epoll.c.o
[ 1%] Building C object
c/CMakeFiles/qpid-proton-platform-io-objects.dir/src/platform/platform.c.o
[ 1%] Generating src/protocol.h
[ 2%] Generating src/encodings.h
[ 2%] Generating src/core/frame_generators.c, src/core/frame_generators.h
[ 3%] Generating src/core/frame_consumers.c, src/core/frame_consumers.h
[ 3%] Building CXX object c/tests/CMakeFiles/test_main.dir/test_main.cpp.o
[ 3%] Building C object
c/tests/fuzz/CMakeFiles/StandaloneFuzzTargetMain.dir/StandaloneFuzzTargetMain.c.o
[ 3%] Building C object
c/CMakeFiles/qpid-proton-proactor-objects.dir/src/proactor/epoll_timer.c.o
[ 3%] Building C object
c/CMakeFiles/qpid-proton-proactor-objects.dir/src/proactor/netaddr-internal.c.o
[ 4%] Building C object
c/CMakeFiles/qpid-proton-proactor-objects.dir/src/proactor/proactor-internal.c.o
[ 4%] Building C object
c/CMakeFiles/qpid-proton-proactor-objects.dir/src/proactor/raw_connection.c.o
[ 5%] Building C object
c/tests/fuzz/CMakeFiles/StandaloneFuzzTargetMain.dir/StandaloneFuzzTargetInit.c.o
[ 5%] Building C object
c/CMakeFiles/qpid-proton-platform-io-objects.dir/src/reactor/io/posix/selector.c.o
[ 5%] Building C object
c/CMakeFiles/qpid-proton-proactor-objects.dir/src/proactor/epoll_raw_connection.c.o
[ 5%] Swig compile cproton.i for python
[ 5%] Swig compile cproton.i for ruby
[ 6%] Linking C static library libStandaloneFuzzTargetMain.a
[ 6%] Built target qpid-proton-platform-io-objects
[ 6%] Built target StandaloneFuzzTargetMain
[ 6%] Building C object c/tests/fuzz/CMakeFiles/fuzz-url.dir/fuzz-url.c.o
[ 6%] Building C object
c/tests/fuzz/CMakeFiles/fuzz-sniff-header.dir/fuzz-sniff-header.c.o
[ 7%] Building C object
c/tests/fuzz/CMakeFiles/fuzz-sniff-header.dir/__/__/src/core/autodetect.c.o
[ 7%] Building C object
c/tests/fuzz/CMakeFiles/fuzz-url.dir/__/__/src/core/memory.c.o
[ 8%] Building C object
c/tests/fuzz/CMakeFiles/fuzz-url.dir/__/__/src/extra/url.c.o
[ 8%] Building C object
c/tests/fuzz/CMakeFiles/fuzz-url.dir/__/__/src/core/object/object.c.o
[ 9%] Building C object
c/tests/fuzz/CMakeFiles/fuzz-url.dir/__/__/src/core/object/string.c.o
[ 9%] Building C object
c/tests/fuzz/CMakeFiles/fuzz-url.dir/__/__/src/core/util.c.o
[ 9%] Built target generated_c_files
[ 10%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/logger.c.o
[ 10%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/object/iterator.c.o
[ 10%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/object/list.c.o
[ 11%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/memory.c.o
[ 12%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/init.c.o
[ 12%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/object/string.c.o
[ 12%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/util.c.o
[ 12%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/object/map.c.o
[ 13%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/object/object.c.o
[ 13%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/object/record.c.o
[ 13%] Linking CXX executable fuzz-sniff-header
[ 13%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/error.c.o
[ 14%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/buffer.c.o
[ 14%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/types.c.o
[ 14%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/framing.c.o
[ 15%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/value_dump.c.o
[ 15%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/codec.c.o
[ 15%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/decoder.c.o
[ 16%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/encoder.c.o
[ 16%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/dispatcher.c.o
[ 16%] Built target qpid-proton-proactor-objects
[ 17%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/connection_driver.c.o
[ 17%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/engine.c.o
[ 17%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/autodetect.c.o
[ 17%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/event.c.o
[ 18%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/transport.c.o
[ 18%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/message.c.o
[ 18%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/frame_generators.c.o
[ 19%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/core/frame_consumers.c.o
[ 19%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/sasl/sasl.c.o
[ 20%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/sasl/default_sasl.c.o
[ 20%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/sasl/cyrus_sasl.c.o
[ 22%] Linking CXX executable fuzz-url
[ 22%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/compiler/gcc/start.c.o
[ 22%] Building C object
c/CMakeFiles/qpid-proton-core-objects.dir/src/ssl/openssl.c.o
[ 22%] Built target fuzz-sniff-header
[ 22%] Built target fuzz-url
/home/jross/code/qpid-proton/c/src/ssl/openssl.c: In function ‘get_dh2048’:
/home/jross/code/qpid-proton/c/src/ssl/openssl.c:416:3: error: ‘DH_new’ is
deprecated: Since OpenSSL 3.0
[]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Werror=deprecated-declarations]8;;]
416 | DH *dh = DH_new();
| ^~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/ssl.h:31,
from /home/jross/code/qpid-proton/c/src/ssl/openssl.c:47:
/usr/include/openssl/dh.h:199:27: note: declared here
199 | OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
| ^~~~~~
/home/jross/code/qpid-proton/c/src/ssl/openssl.c:424:7: error: ‘DH_set0_pqg’ is
deprecated: Since OpenSSL 3.0
[]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Werror=deprecated-declarations]8;;]
424 | || !DH_set0_pqg(dh, dhp_bn, NULL, dhg_bn)) {
| ^~
/usr/include/openssl/dh.h:255:27: note: declared here
255 | OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q,
BIGNUM *g);
| ^~~~~~~~~~~
/home/jross/code/qpid-proton/c/src/ssl/openssl.c:425:5: error: ‘DH_free’ is
deprecated: Since OpenSSL 3.0
[]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Werror=deprecated-declarations]8;;]
425 | DH_free(dh);
| ^~~~~~~
/usr/include/openssl/dh.h:200:28: note: declared here
200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
| ^~~~~~~
/home/jross/code/qpid-proton/c/src/ssl/openssl.c: In function
‘pni_init_ssl_domain’:
/home/jross/code/qpid-proton/c/src/ssl/openssl.c:566:5: error: ‘DH_free’ is
deprecated: Since OpenSSL 3.0
[]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Werror=deprecated-declarations]8;;]
566 | DH_free(dh);
| ^~~~~~~
/usr/include/openssl/dh.h:200:28: note: declared here
200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
| ^~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [c/CMakeFiles/qpid-proton-core-objects.dir/build.make:520:
c/CMakeFiles/qpid-proton-core-objects.dir/src/ssl/openssl.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1269:
c/CMakeFiles/qpid-proton-core-objects.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 22%] Built target cproton-ruby_swig_compilation
[ 22%] Built target cproton_swig_compilation
[ 22%] Built target test_main
make: *** [Makefile:146: all] Error 2~/code/qpid-proton/bld$ {noformat}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]