+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/ocaml-ssl.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.PpFY94 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ocaml-ssl-0.5.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/ocaml-ssl-0.5.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ocaml-ssl-0.5.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-Stalkd-example.patch):' Patch #1 (0001-Stalkd-example.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file examples/stalkd.ml + echo 'Patch #2 (0002-Remove-duplicate-declaration-of-write.patch):' Patch #2 (0002-Remove-duplicate-declaration-of-write.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/ssl.mli + echo 'Patch #3 (0003-Bump-version-number.patch):' Patch #3 (0003-Bump-version-number.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file configure.ac + echo 'Patch #4 (0004-Remove-ansi-flag.patch):' Patch #4 (0004-Remove-ansi-flag.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file CHANGES patching file src/Makefile.in + echo 'Patch #5 (0005-Use-accessor-functions-for-X509_STORE_CTX.patch):' Patch #5 (0005-Use-accessor-functions-for-X509_STORE_CTX.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file CHANGES patching file src/ssl_stubs.c + echo 'Patch #6 (0006-Change-CLIBS-order-to-allow-static-linking.patch):' Patch #6 (0006-Change-CLIBS-order-to-allow-static-linking.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file CHANGES patching file src/Makefile.in patching file src/ssl_stubs.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.YN9xln + umask 022 + cd /builddir/build/BUILD + cd ocaml-ssl-0.5.2 + autoconf + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --libdir=/usr/lib64 configure: WARNING: unrecognized options: --disable-dependency-tracking configuring ocaml-ssl 0.5.3 checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for pthread_create in -lpthread... yes checking for ocamlc... /usr/bin/ocamlc ocaml version is 4.06.0 ocaml library path is /usr/lib64/ocaml checking for ocamlopt... /usr/bin/ocamlopt checking ocamlopt version... ok checking for ocamlc.opt... /usr/bin/ocamlc.opt checking ocamlc.opt version... ok checking for ocamlopt.opt... /usr/bin/ocamlopt.opt checking ocamlc.opt version... ok checking for ocamldep... /usr/bin/ocamldep checking for ocamllex... /usr/bin/ocamllex checking for ocamlyacc... /usr/bin/ocamlyacc checking for ocamldoc... no checking for ocamlmktop... /usr/bin/ocamlmktop checking for riscv64-redhat-linux-gnu-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking for SSL_new in -lssl... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking for TLSv1_1_method in -lssl... yes checking for TLSv1_2_method in -lssl... yes checking for EC_KEY_free in -lcrypto... yes checking whether SSL_set_tlsext_host_name is declared... yes checking for ocamlfind... /usr/bin/ocamlfind checking for ocamlcp... /usr/bin/ocamlcp checking for latex... no checking for dvips... no checking for ps2pdf... no configure: creating ./config.status config.status: creating src/Makefile config.status: creating src/META configure: WARNING: unrecognized options: --disable-dependency-tracking + unset MAKEFLAGS + export 'OCAMLC=ocamlc -g' + OCAMLC='ocamlc -g' + export 'OCAMLOPT=ocamlopt -g' + OCAMLOPT='ocamlopt -g' + make make -C src all make[1]: Entering directory '/builddir/build/BUILD/ocaml-ssl-0.5.2/src' make[2]: Entering directory '/builddir/build/BUILD/ocaml-ssl-0.5.2/src' make[3]: Entering directory '/builddir/build/BUILD/ocaml-ssl-0.5.2/src' make[4]: Entering directory '/builddir/build/BUILD/ocaml-ssl-0.5.2/src' making ._bcdi/ssl.di from ssl.mli making ._d/ssl.d from ssl.ml ocamlc -g -c -cc "gcc" -ccopt "-fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DHAVE_TLS11 -DHAVE_TLS12 -DHAVE_EC -DHAVE_SNI -DCAML_NAME_SPACE -Wall \ -DPIC \ -o ssl_stubs.o " ssl_stubs.c ssl_stubs.c: In function 'get_method': ssl_stubs.c:295:11: warning: 'SSLv3_client_method' is deprecated [-Wdeprecated-declarations] method = SSLv3_client_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl_stubs.c:46: /usr/include/openssl/ssl.h:1616:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void)) /* SSLv3 */ ^ ssl_stubs.c:299:11: warning: 'SSLv3_server_method' is deprecated [-Wdeprecated-declarations] method = SSLv3_server_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl_stubs.c:46: /usr/include/openssl/ssl.h:1615:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_server_method(void)) /* SSLv3 */ ^ ssl_stubs.c:303:11: warning: 'SSLv3_method' is deprecated [-Wdeprecated-declarations] method = SSLv3_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl_stubs.c:46: /usr/include/openssl/ssl.h:1614:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_method(void)) /* SSLv3 */ ^ ssl_stubs.c:313:11: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] method = TLSv1_client_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl_stubs.c:46: /usr/include/openssl/ssl.h:1631:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */ ^ ssl_stubs.c:317:11: warning: 'TLSv1_server_method' is deprecated [-Wdeprecated-declarations] method = TLSv1_server_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl_stubs.c:46: /usr/include/openssl/ssl.h:1630:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) /* TLSv1.0 */ ^ ssl_stubs.c:321:11: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations] method = TLSv1_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl_stubs.c:46: /usr/include/openssl/ssl.h:1629:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ ssl_stubs.c:331:11: warning: 'TLSv1_1_client_method' is deprecated [-Wdeprecated-declarations] method = TLSv1_1_client_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl_stubs.c:46: /usr/include/openssl/ssl.h:1637:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void)) /* TLSv1.1 */ ^ ssl_stubs.c:335:11: warning: 'TLSv1_1_server_method' is deprecated [-Wdeprecated-declarations] method = TLSv1_1_server_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl_stubs.c:46: /usr/include/openssl/ssl.h:1636:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_server_method(void)) /* TLSv1.1 */ ^ ssl_stubs.c:339:11: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations] method = TLSv1_1_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl_stubs.c:46: /usr/include/openssl/ssl.h:1635:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */ ^ ssl_stubs.c:350:11: warning: 'TLSv1_2_client_method' is deprecated [-Wdeprecated-declarations] method = TLSv1_2_client_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl_stubs.c:46: /usr/include/openssl/ssl.h:1643:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void)) /* TLSv1.2 */ ^ ssl_stubs.c:354:11: warning: 'TLSv1_2_server_method' is deprecated [-Wdeprecated-declarations] method = TLSv1_2_server_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl_stubs.c:46: /usr/include/openssl/ssl.h:1642:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void)) /* TLSv1.2 */ ^ ssl_stubs.c:358:11: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations] method = TLSv1_2_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl_stubs.c:46: /usr/include/openssl/ssl.h:1641:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */ ^ At top level: ssl_stubs.c:196:13: warning: 'dyn_destroy_function' defined but not used [-Wunused-function] static void dyn_destroy_function(struct CRYPTO_dynlock_value *l, const char *file, int line) ^~~~~~~~~~~~~~~~~~~~ ssl_stubs.c:188:13: warning: 'dyn_lock_function' defined but not used [-Wunused-function] static void dyn_lock_function(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line) ^~~~~~~~~~~~~~~~~ ssl_stubs.c:176:37: warning: 'dyn_create_function' defined but not used [-Wunused-function] static struct CRYPTO_dynlock_value *dyn_create_function(const char *file, int line) ^~~~~~~~~~~~~~~~~~~ ssl_stubs.c:171:22: warning: 'id_function' defined but not used [-Wunused-function] static unsigned long id_function(void) ^~~~~~~~~~~ ssl_stubs.c:163:13: warning: 'locking_function' defined but not used [-Wunused-function] static void locking_function(int mode, int n, const char *file, int line) ^~~~~~~~~~~~~~~~ ar rcs libssl_stubs.a ssl_stubs.o /usr/bin/ocamlfind ocamlc -g -package bytes -c -thread ssl.mli /usr/bin/ocamlfind ocamlc -g -package bytes -c -thread ssl.ml File "ssl.ml", line 249, characters 39-40: Error: This expression has type Bytes.t = bytes but an expression was expected of type string make[4]: *** [OCamlMakefile:951: ssl.cmo] Error 2 make[4]: Leaving directory '/builddir/build/BUILD/ocaml-ssl-0.5.2/src' make[3]: *** [OCamlMakefile:716: byte-code-library] Error 2 make[3]: Leaving directory '/builddir/build/BUILD/ocaml-ssl-0.5.2/src' make[2]: *** [OCamlMakefile:1094: subproj_ssl] Error 2 make[2]: Leaving directory '/builddir/build/BUILD/ocaml-ssl-0.5.2/src' make[1]: *** [Makefile:73: bcl] Error 2 make[1]: Leaving directory '/builddir/build/BUILD/ocaml-ssl-0.5.2/src' make: *** [Makefile:9: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.YN9xln (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.YN9xln (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff