In file included from /usr/include/openssl/e_os2.h:13:0,from /usr/include/openssl/ssl.h:45,from ../libdroplet/include/droplet.h:49,from ../libdroplet/include/dropletp.h:40,from src/profile.c:34:/usr/include/openssl/ssl.h:1639:1: note: declared hereDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */^src/profile.c: In function ‘ssl_verify_cert’:src/profile.c:814:47: error: dereferencing pointer to incomplete type ‘X509_STORE_CTX {aka struct x509_store_ctx_st}’X509_NAME_oneline(X509_get_subject_name(cert->cert), buffer, sizeof(buffer));^~src/profile.c:814:47: error: request for member ‘cert’ in something not a structure or unionsrc/profile.c:814:43: warning: passing argument 1 of ‘X509_get_subject_name’ from incompatible pointer type [-Wincompatible-pointer-types]X509_NAME_oneline(X509_get_subject_name(cert->cert), buffer, sizeof(buffer));^~~~In file included from /usr/include/openssl/ssl.h:50:0,from ../libdroplet/include/droplet.h:49,from ../libdroplet/include/dropletp.h:40,from src/profile.c:34:/usr/include/openssl/x509.h:623:12: note: expected ‘const X509 * {aka const struct x509_st *}’ but argument is of type ‘struct ssl_method_authorized *’X509_NAME *X509_get_subject_name(const X509 *a);^~~~~~~~~~~~~~~~~~~~~src/profile.c:817:46: error: request for member ‘cert’ in something not a structure or unionX509_NAME_oneline(X509_get_issuer_name(cert->cert), buffer, sizeof(buffer));^~src/profile.c:817:42: warning: passing argument 1 of ‘X509_get_issuer_name’ from incompatible pointer type [-Wincompatible-pointer-types]X509_NAME_oneline(X509_get_issuer_name(cert->cert), buffer, sizeof(buffer));^~~~In file included from /usr/include/openssl/ssl.h:50:0,from ../libdroplet/include/droplet.h:49,from ../libdroplet/include/dropletp.h:40,from src/profile.c:34:/usr/include/openssl/x509.h:621:12: note: expected ‘const X509 * {aka const struct x509_st *}’ but argument is of type ‘struct ssl_method_authorized *’X509_NAME *X509_get_issuer_name(const X509 *a);^~~~~~~~~~~~~~~~~~~~At top level:src/profile.c:807:1: warning: ‘ssl_verify_cert’ defined but not used [-Wunused-function]ssl_verify_cert(X509_STORE_CTX *cert, void *arg)^~~~~~~~~~~~~~~Makefile:993: recipe for target 'src/profile.lo' failedmake[2]: *** [src/profile.lo] Error 1make[2]: Leaving directory '/home/ipin/tmp/Droplet/libdroplet'Makefile:473: recipe for target 'all-recursive' failedmake[1]: *** [all-recursive] Error 1make[1]: Leaving directory '/home/ipin/tmp/Droplet'Makefile:380: recipe for target 'all' failedmake: *** [all] Error 2
makemake all-recursivemake[1]: Entering directory '/home/ipin/tmp/Droplet'Making all in libdropletmake[2]: Entering directory '/home/ipin/tmp/Droplet/libdroplet'CC src/conn.loCC src/converters.loCC src/value.loCC src/dict.loCC src/droplet.losrc/droplet.c: In function ‘dpl_free’:src/droplet.c:145:3: warning: ‘ERR_remove_state’ is deprecated [-Wdeprecated-declarations]ERR_remove_state(0);^~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/e_os2.h:13:0,from /usr/include/openssl/ssl.h:45,from ../libdroplet/include/droplet.h:49,from ../libdroplet/include/dropletp.h:40,
from src/droplet.c:34:/usr/include/openssl/err.h:249:1: note: declared hereDEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))^CC src/httprequest.losrc/httprequest.c: In function ‘dpl_add_range_to_headers_internal’:src/httprequest.c:91:39: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint64_t {aka const long long unsigned int}’ [-Wformat=]snprintf(str, sizeof (str), "-%lu", range->end);^src/httprequest.c:96:38: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint64_t {aka const long long unsigned int}’ [-Wformat=]snprintf(str, sizeof (str), "%lu-", range->start);^src/httprequest.c:101:38: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint64_t {aka const long long unsigned int}’ [-Wformat=]snprintf(str, sizeof (str), "%lu-%lu", range->start, range->end);^src/httprequest.c:101:42: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint64_t {aka const long long unsigned int}’ [-Wformat=]snprintf(str, sizeof (str), "%lu-%lu", range->start, range->end);^CC src/httpreply.loCC src/pricing.loCC src/profile.losrc/profile.c:58:36: error: ‘SSLv3_method’ undeclared here (not in a function){ .name = SSL_TXT_SSLV3, .fn = SSLv3_method },^~~~~~~~~~~~src/profile.c:62:3: warning: ‘TLSv1_method’ is deprecated [-Wdeprecated-declarations]{ .name = SSL_TXT_TLSV1, .fn = TLSv1_method },^
In file included from /usr/include/openssl/e_os2.h:13:0,from /usr/include/openssl/ssl.h:45,from ../libdroplet/include/droplet.h:49,from ../libdroplet/include/dropletp.h:40,from src/profile.c:34:
/usr/include/openssl/ssl.h:1627:1: note: declared hereDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */^src/profile.c:65:3: warning: ‘TLSv1_1_method’ is deprecated [-Wdeprecated-declarations]{ .name = SSL_TXT_TLSV1_1, .fn = TLSv1_1_method },^
In file included from /usr/include/openssl/e_os2.h:13:0,from /usr/include/openssl/ssl.h:45,from ../libdroplet/include/droplet.h:49,from ../libdroplet/include/dropletp.h:40,from src/profile.c:34:
/usr/include/openssl/ssl.h:1633:1: note: declared hereDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */^src/profile.c:68:3: warning: ‘TLSv1_2_method’ is deprecated [-Wdeprecated-declarations]{ .name = SSL_TXT_TLSV1_2, .fn = TLSv1_2_method },^
make
make all-recursive
make[1]: Entering directory '/home/ipin/tmp/Droplet'
Making all in libdroplet
make[2]: Entering directory '/home/ipin/tmp/Droplet/libdroplet'
CC src/conn.lo
CC src/converters.lo
CC src/value.lo
CC src/dict.lo
CC src/droplet.lo
CC src/httprequest.lo
src/httprequest.c: In function ‘dpl_add_range_to_headers_internal’:
src/httprequest.c:91:39: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint64_t {aka const long long unsigned int}’ [-Wformat=]
snprintf(str, sizeof (str), "-%lu", range->end);
^
src/httprequest.c:96:38: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint64_t {aka const long long unsigned int}’ [-Wformat=]
snprintf(str, sizeof (str), "%lu-", range->start);
^
src/httprequest.c:101:38: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint64_t {aka const long long unsigned int}’ [-Wformat=]
snprintf(str, sizeof (str), "%lu-%lu", range->start, range->end);
^
src/httprequest.c:101:42: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint64_t {aka const long long unsigned int}’ [-Wformat=]
snprintf(str, sizeof (str), "%lu-%lu", range->start, range->end);
^
CC src/httpreply.lo
CC src/pricing.lo
CC src/profile.lo
src/profile.c:58:36: error: ‘SSLv3_method’ undeclared here (not in a function)
{ .name = SSL_TXT_SSLV3, .fn = SSLv3_method },
^~~~~~~~~~~~
src/profile.c:807:1: warning: ‘ssl_verify_cert’ defined but not used [-Wunused-function]
ssl_verify_cert(X509_STORE_CTX *cert, void *arg)
^~~~~~~~~~~~~~~
Makefile:993: recipe for target 'src/profile.lo' failed
make[2]: *** [src/profile.lo] Error 1
make[2]: Leaving directory '/home/ipin/tmp/Droplet/libdroplet'
Makefile:473: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ipin/tmp/Droplet'
Makefile:380: recipe for target 'all' failed
make: *** [all] Error 2
On RHEL7 following packages get installed:
[ 31s] [273/447] installing openssl-libs-1:1.0.1e-34.el7
[ 36s] [303/447] installing openssl-1:1.0.1e-34.el7
[ 40s] [331/447] installing openssl-devel-1:1.0.1e-34.el7
Then the spec file from the repository is used to build the package:
https://github.com/bareos/Droplet/blob/bareos-master/libdroplet.obs.spec
Regards,
Jörg
--
Jörg Steffens joerg....@bareos.com