lftp-4.7.5 compiling fails/ x509/openssl
"Justin Piszcz" <[email protected]> Tue, 3 Jan 2017 03:43:39 -0500
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <[email protected]> |
Version: lftp-4.7.5
Dist: Debian testing x86-64
$ make
make all-recursive
make[1]: Entering directory '/tmp/lftp-4.7.5'
Making all in m4
make[2]: Entering directory '/tmp/lftp-4.7.5/m4'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/lftp-4.7.5/m4'
Making all in doc
make[2]: Entering directory '/tmp/lftp-4.7.5/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/lftp-4.7.5/doc'
Making all in lib
make[2]: Entering directory '/tmp/lftp-4.7.5/lib'
make all-recursive
make[3]: Entering directory '/tmp/lftp-4.7.5/lib'
make[4]: Entering directory '/tmp/lftp-4.7.5/lib'
make[4]: Leaving directory '/tmp/lftp-4.7.5/lib'
make[3]: Leaving directory '/tmp/lftp-4.7.5/lib'
make[2]: Leaving directory '/tmp/lftp-4.7.5/lib'
Making all in src
make[2]: Entering directory '/tmp/lftp-4.7.5/src'
/bin/bash ../libtool --silent --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -I. -I../lib -I../lib -I../trio -I/usr/include
-O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions
-fno-rtti -fno-implement-inlines -MT liblftp_network_la-lftp_ssl.lo
-MD -MP -MF .deps/liblftp_network_la-lftp_ssl.Tpo -c -o
liblftp_network_la-lftp_ssl.lo `test -f 'lftp_ssl.cc' || echo
'./'`lftp_ssl.cc
lftp_ssl.cc: In static member function 'static int
lftp_ssl_openssl::verify_crl(X509_STORE_CTX*)':
lftp_ssl.cc:1069:17: error: aggregate 'X509_OBJECT obj' has incomplete
type and cannot be defined
X509_OBJECT obj;
^~~
lftp_ssl.cc:1075:20: error: aggregate 'X509_STORE_CTX store_ctx' has
incomplete type and cannot be defined
X509_STORE_CTX store_ctx;
^~~~~~~~~
lftp_ssl.cc:1141:43: error: 'X509_OBJECT_free_contents' was not
declared in this scope
X509_OBJECT_free_contents(&obj);
^
lftp_ssl.cc:1148:35: warning: 'ASN1_TIME*
X509_CRL_get_nextUpdate(X509_CRL*)' is deprecated
[-Wdeprecated-declarations]
i = X509_cmp_current_time(X509_CRL_get_nextUpdate(crl));
^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/x509_vfy.h:20:0,
from /usr/include/openssl/x509.h:309,
from /usr/include/openssl/ssl.h:50,
from lftp_ssl.h:27,
from lftp_ssl.cc:30:
/usr/include/openssl/x509.h:709:1: note: declared here
DEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_nextUpdate(X509_CRL *crl))
^
lftp_ssl.cc:1148:62: warning: 'ASN1_TIME*
X509_CRL_get_nextUpdate(X509_CRL*)' is deprecated
[-Wdeprecated-declarations]
i = X509_cmp_current_time(X509_CRL_get_nextUpdate(crl));
^
In file included from /usr/include/openssl/x509_vfy.h:20:0,
from /usr/include/openssl/x509.h:309,
from /usr/include/openssl/ssl.h:50,
from lftp_ssl.h:27,
from lftp_ssl.cc:30:
/usr/include/openssl/x509.h:709:1: note: declared here
DEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_nextUpdate(X509_CRL *crl))
^
lftp_ssl.cc:1152:43: error: 'X509_OBJECT_free_contents' was not
declared in this scope
X509_OBJECT_free_contents(&obj);
^
lftp_ssl.cc:1158:43: error: 'X509_OBJECT_free_contents' was not
declared in this scope
X509_OBJECT_free_contents(&obj);
^
lftp_ssl.cc:1161:39: error: 'X509_OBJECT_free_contents' was not
declared in this scope
X509_OBJECT_free_contents(&obj);
^
lftp_ssl.cc:1180:41: error: invalid use of incomplete type
'X509_REVOKED {aka struct x509_revoked_st}'
if (ASN1_INTEGER_cmp(revoked->serialNumber,
X509_get_serialNumber(xs)) == 0) {
^~
In file included from /usr/include/openssl/crypto.h:31:0,
from /usr/include/openssl/comp.h:16,
from /usr/include/openssl/ssl.h:47,
from lftp_ssl.h:27,
from lftp_ssl.cc:30:
/usr/include/openssl/ossl_typ.h:123:16: note: forward declaration of
'X509_REVOKED {aka struct x509_revoked_st}'
typedef struct x509_revoked_st X509_REVOKED;
^~~~~~~~~~~~~~~
lftp_ssl.cc:1181:50: error: invalid use of incomplete type
'X509_REVOKED {aka struct x509_revoked_st}'
serial = ASN1_INTEGER_get(revoked->serialNumber);
^~
In file included from /usr/include/openssl/crypto.h:31:0,
from /usr/include/openssl/comp.h:16,
from /usr/include/openssl/ssl.h:47,
from lftp_ssl.h:27,
from lftp_ssl.cc:30:
/usr/include/openssl/ossl_typ.h:123:16: note: forward declaration of
'X509_REVOKED {aka struct x509_revoked_st}'
typedef struct x509_revoked_st X509_REVOKED;
^~~~~~~~~~~~~~~
lftp_ssl.cc:1189:47: error: 'X509_OBJECT_free_contents' was not
declared in this scope
X509_OBJECT_free_contents(&obj);
^
lftp_ssl.cc:1193:39: error: 'X509_OBJECT_free_contents' was not
declared in this scope
X509_OBJECT_free_contents(&obj);
^
lftp_ssl.cc: In member function 'void
lftp_ssl_openssl::check_certificate()':
lftp_ssl.cc:1425:38: warning: 'unsigned char*
ASN1_STRING_data(ASN1_STRING*)' is deprecated
[-Wdeprecated-declarations]
const char *altptr = (char *)ASN1_STRING_data(check->d.ia5);
^~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/bn.h:31:0,
from /usr/include/openssl/asn1.h:24,
from /usr/include/openssl/objects.h:916,
from /usr/include/openssl/evp.h:27,
from /usr/include/openssl/x509.h:23,
from /usr/include/openssl/ssl.h:50,
from lftp_ssl.h:27,
from lftp_ssl.cc:30:
/usr/include/openssl/asn1.h:553:1: note: declared here
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
lftp_ssl.cc:1425:67: warning: 'unsigned char*
ASN1_STRING_data(ASN1_STRING*)' is deprecated
[-Wdeprecated-declarations]
const char *altptr = (char *)ASN1_STRING_data(check->d.ia5);
^
In file included from /usr/include/openssl/bn.h:31:0,
from /usr/include/openssl/asn1.h:24,
from /usr/include/openssl/objects.h:916,
from /usr/include/openssl/evp.h:27,
from /usr/include/openssl/x509.h:23,
from /usr/include/openssl/ssl.h:50,
from lftp_ssl.h:27,
from lftp_ssl.cc:30:
/usr/include/openssl/asn1.h:553:1: note: declared here
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
lftp_ssl.cc:1504:31: warning: 'unsigned char*
ASN1_STRING_data(ASN1_STRING*)' is deprecated
[-Wdeprecated-declarations]
memcpy(peer_CN, ASN1_STRING_data(tmp), j);
^~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/bn.h:31:0,
from /usr/include/openssl/asn1.h:24,
from /usr/include/openssl/objects.h:916,
from /usr/include/openssl/evp.h:27,
from /usr/include/openssl/x509.h:23,
from /usr/include/openssl/ssl.h:50,
from lftp_ssl.h:27,
from lftp_ssl.cc:30:
/usr/include/openssl/asn1.h:553:1: note: declared here
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
lftp_ssl.cc:1504:51: warning: 'unsigned char*
ASN1_STRING_data(ASN1_STRING*)' is deprecated
[-Wdeprecated-declarations]
memcpy(peer_CN, ASN1_STRING_data(tmp), j);
^
In file included from /usr/include/openssl/bn.h:31:0,
from /usr/include/openssl/asn1.h:24,
from /usr/include/openssl/objects.h:916,
from /usr/include/openssl/evp.h:27,
from /usr/include/openssl/x509.h:23,
from /usr/include/openssl/ssl.h:50,
from lftp_ssl.h:27,
from lftp_ssl.cc:30:
/usr/include/openssl/asn1.h:553:1: note: declared here
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
Makefile:2256: recipe for target 'liblftp_network_la-lftp_ssl.lo' failed
make[2]: *** [liblftp_network_la-lftp_ssl.lo] Error 1
make[2]: Leaving directory '/tmp/lftp-4.7.5/src'
Makefile:1637: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/lftp-4.7.5'
Makefile:1582: recipe for target 'all' failed
make: *** [all] Error 2
Command exited with non-zero status 2
0.53user 0.05system 0:00.62elapsed 94%CPU (0avgtext+0avgdata
48976maxresident)k
0inputs+8outputs (0major+24228minor)pagefaults 0swaps
$
_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp