+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/sslscan.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 warning: Macro expanded in comment on line 16: %{name}-%{version}.tgz Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.SS9MK6 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sslscan-89dceb6856e69ac92d24ef787029df109168ce61 + /usr/bin/gzip -dc /builddir/build/SOURCES/sslscan-1.10.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd sslscan-89dceb6856e69ac92d24ef787029df109168ce61 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ViECKO + umask 022 + cd /builddir/build/BUILD + cd sslscan-89dceb6856e69ac92d24ef787029df109168ce61 + make -j4 '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 ' gcc -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 -o sslscan sslscan.c -L/usr/local/ssl/lib -lssl -lcrypto sslscan.c: In function 'populateCipherList': sslscan.c:240:35: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sslCipherPointer->version = SSL_CIPHER_get_version(sk_SSL_CIPHER_value(cipherList, loop)); ^ sslscan.c: In function 'testRenegotiation': sslscan.c:827:28: error: dereferencing pointer to incomplete type 'SSL {aka struct ssl_st}' ssl->s3->flags |= SSL3_FLAGS_ALLOW_UNSAFE_LEGACY_RENEGOTIATION; ^~ sslscan.c:868:51: error: 'SSL_ST_OK' undeclared (first use in this function); did you mean 'TLS_ST_OK'? if (ssl->state == SSL_ST_OK) ^~~~~~~~~ TLS_ST_OK sslscan.c:868:51: note: each undeclared identifier is reported only once for each function it appears in sslscan.c: In function 'testCipher': sslscan.c:1087:56: warning: implicit declaration of function 'SSLv2_client_method'; did you mean 'SSLv3_client_method'? [-Wimplicit-function-declaration] if (sslCipherPointer->sslMethod == SSLv2_client_method()) ^~~~~~~~~~~~~~~~~~~ SSLv3_client_method sslscan.c:1087:53: warning: comparison between pointer and integer if (sslCipherPointer->sslMethod == SSLv2_client_method()) ^~ sslscan.c:1096:21: warning: 'SSLv3_client_method' is deprecated [-Wdeprecated-declarations] else if (sslCipherPointer->sslMethod == SSLv3_client_method()) ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1616:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void)) /* SSLv3 */ ^ sslscan.c:1108:21: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] else if (sslCipherPointer->sslMethod == TLSv1_client_method()) ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1631:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */ ^ sslscan.c:1118:21: warning: 'TLSv1_1_client_method' is deprecated [-Wdeprecated-declarations] else if (sslCipherPointer->sslMethod == TLSv1_1_client_method()) ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /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 */ ^ sslscan.c:1127:21: warning: 'TLSv1_2_client_method' is deprecated [-Wdeprecated-declarations] else if (sslCipherPointer->sslMethod == TLSv1_2_client_method()) ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /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 */ ^ sslscan.c: At top level: sslscan.c:1193:58: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] int defaultCipher(struct sslCheckOptions *options, const const SSL_METHOD *sslMethod) ^~~~~ sslscan.c: In function 'defaultCipher': sslscan.c:1242:43: warning: comparison between pointer and integer if (sslMethod == SSLv2_client_method()) ^~ sslscan.c:1251:29: warning: 'SSLv3_client_method' is deprecated [-Wdeprecated-declarations] else if (sslMethod == SSLv3_client_method()) ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1616:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void)) /* SSLv3 */ ^ sslscan.c:1263:29: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] else if (sslMethod == TLSv1_client_method()) ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1631:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */ ^ sslscan.c:1273:29: warning: 'TLSv1_1_client_method' is deprecated [-Wdeprecated-declarations] else if (sslMethod == TLSv1_1_client_method()) ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /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 */ ^ sslscan.c:1282:29: warning: 'TLSv1_2_client_method' is deprecated [-Wdeprecated-declarations] else if (sslMethod == TLSv1_2_client_method()) ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /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 */ ^ sslscan.c: In function 'getCertificate': sslscan.c:1390:13: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations] sslMethod = TLSv1_method(); ^~~~~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1629:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ sslscan.c:1554:72: error: dereferencing pointer to incomplete type 'X509 {aka struct x509_st}' i2a_ASN1_OBJECT(stdoutBIO, x509Cert->cert_info->signature->algorithm); ^~ sslscan.c:1627:58: error: dereferencing pointer to incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' switch (publicKey->type) ^~ sslscan.c:1727:49: warning: implicit declaration of function 'M_ASN1_OCTET_STRING_print'; did you mean 'ASN1_OCTET_STRING_set'? [-Wimplicit-function-declaration] M_ASN1_OCTET_STRING_print(stdoutBIO, extension->value); ^~~~~~~~~~~~~~~~~~~~~~~~~ ASN1_OCTET_STRING_set sslscan.c:1727:95: error: dereferencing pointer to incomplete type 'X509_EXTENSION {aka struct X509_extension_st}' M_ASN1_OCTET_STRING_print(stdoutBIO, extension->value); ^~ sslscan.c: In function 'testHost': sslscan.c:1880:9: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] testRenegotiation(options, TLSv1_client_method()); ^~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1631:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */ ^ sslscan.c:1938:53: warning: passing argument 2 of 'defaultCipher' makes pointer from integer without a cast [-Wint-conversion] status = defaultCipher(options, SSLv2_client_method()); ^~~~~~~~~~~~~~~~~~~ sslscan.c:1193:5: note: expected 'const SSL_METHOD * {aka const struct ssl_method_st *}' but argument is of type 'int' int defaultCipher(struct sslCheckOptions *options, const const SSL_METHOD *sslMethod) ^~~~~~~~~~~~~ sslscan.c:1941:21: warning: 'SSLv3_client_method' is deprecated [-Wdeprecated-declarations] status = defaultCipher(options, SSLv3_client_method()); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1616:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void)) /* SSLv3 */ ^ sslscan.c:1943:21: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] status = defaultCipher(options, TLSv1_client_method()); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1631:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */ ^ sslscan.c:1947:21: warning: 'TLSv1_1_client_method' is deprecated [-Wdeprecated-declarations] status = defaultCipher(options, TLSv1_1_client_method()); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /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 */ ^ sslscan.c:1949:21: warning: 'TLSv1_2_client_method' is deprecated [-Wdeprecated-declarations] status = defaultCipher(options, TLSv1_2_client_method()); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /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 */ ^ sslscan.c:1956:49: warning: passing argument 2 of 'defaultCipher' makes pointer from integer without a cast [-Wint-conversion] status = defaultCipher(options, SSLv2_client_method()); ^~~~~~~~~~~~~~~~~~~ sslscan.c:1193:5: note: expected 'const SSL_METHOD * {aka const struct ssl_method_st *}' but argument is of type 'int' int defaultCipher(struct sslCheckOptions *options, const const SSL_METHOD *sslMethod) ^~~~~~~~~~~~~ sslscan.c:1960:17: warning: 'SSLv3_client_method' is deprecated [-Wdeprecated-declarations] status = defaultCipher(options, SSLv3_client_method()); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1616:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void)) /* SSLv3 */ ^ sslscan.c:1963:17: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] status = defaultCipher(options, TLSv1_client_method()); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1631:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */ ^ sslscan.c:1968:17: warning: 'TLSv1_1_client_method' is deprecated [-Wdeprecated-declarations] status = defaultCipher(options, TLSv1_1_client_method()); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /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 */ ^ sslscan.c:1971:17: warning: 'TLSv1_2_client_method' is deprecated [-Wdeprecated-declarations] status = defaultCipher(options, TLSv1_2_client_method()); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /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 */ ^ sslscan.c: In function 'main': sslscan.c:2290:13: warning: implicit declaration of function 'SSLeay_add_all_algorithms'; did you mean 'SSLeay_add_ssl_algorithms'? [-Wimplicit-function-declaration] SSLeay_add_all_algorithms(); ^~~~~~~~~~~~~~~~~~~~~~~~~ SSLeay_add_ssl_algorithms sslscan.c:2299:50: warning: passing argument 2 of 'populateCipherList' makes pointer from integer without a cast [-Wint-conversion] populateCipherList(&options, SSLv2_client_method()); ^~~~~~~~~~~~~~~~~~~ sslscan.c:189:5: note: expected 'const SSL_METHOD * {aka const struct ssl_method_st *}' but argument is of type 'int' int populateCipherList(struct sslCheckOptions *options, const SSL_METHOD *sslMethod) ^~~~~~~~~~~~~~~~~~ sslscan.c:2302:21: warning: 'SSLv3_client_method' is deprecated [-Wdeprecated-declarations] populateCipherList(&options, SSLv3_client_method()); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1616:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void)) /* SSLv3 */ ^ sslscan.c:2303:21: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] populateCipherList(&options, TLSv1_client_method()); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1631:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */ ^ sslscan.c:2306:21: warning: 'TLSv1_1_client_method' is deprecated [-Wdeprecated-declarations] populateCipherList(&options, TLSv1_1_client_method()); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /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 */ ^ sslscan.c:2307:21: warning: 'TLSv1_2_client_method' is deprecated [-Wdeprecated-declarations] populateCipherList(&options, TLSv1_2_client_method()); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /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 */ ^ sslscan.c:2313:50: warning: passing argument 2 of 'populateCipherList' makes pointer from integer without a cast [-Wint-conversion] populateCipherList(&options, SSLv2_client_method()); ^~~~~~~~~~~~~~~~~~~ sslscan.c:189:5: note: expected 'const SSL_METHOD * {aka const struct ssl_method_st *}' but argument is of type 'int' int populateCipherList(struct sslCheckOptions *options, const SSL_METHOD *sslMethod) ^~~~~~~~~~~~~~~~~~ sslscan.c:2317:21: warning: 'SSLv3_client_method' is deprecated [-Wdeprecated-declarations] populateCipherList(&options, SSLv3_client_method()); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1616:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void)) /* SSLv3 */ ^ sslscan.c:2320:21: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] populateCipherList(&options, TLSv1_client_method()); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /usr/include/openssl/ssl.h:1631:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */ ^ sslscan.c:2325:21: warning: 'TLSv1_1_client_method' is deprecated [-Wdeprecated-declarations] populateCipherList(&options, TLSv1_1_client_method()); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /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 */ ^ sslscan.c:2328:21: warning: 'TLSv1_2_client_method' is deprecated [-Wdeprecated-declarations] populateCipherList(&options, TLSv1_2_client_method()); ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from sslscan.c:73: /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 */ ^ sslscan.c: In function 'readLine': sslscan.c:270:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(lineFromFile, maxSize, input); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:19: all] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.ViECKO (%build) RPM build errors: Macro expanded in comment on line 16: %{name}-%{version}.tgz Bad exit status from /var/tmp/rpm-tmp.ViECKO (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff