Discussion:
make error - please help
nuffnough
2013-03-28 01:04:15 UTC
Permalink
Hi,

I am compiling lftp 4.4.5 on CentOS 5.6

openssl and openssl-devel are both installed.

I ran ./configure --prefix=/usr/local --with-openssl=/usr/lib which seemed fine,

but when I run make I get the following error:

/bin/sh ../libtool --silent --tag=CXX --mode=compile gcc
-DHAVE_CONFIG_H -I. -I../lib -I../lib -I../trio -I/usr/lib/include
-O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions
-fno-rtti -fno-implement-inlines -MT lftp_ssl.lo -MD -MP -MF
.deps/lftp_ssl.Tpo -c -o lftp_ssl.lo lftp_ssl.cc
lftp_ssl.cc: In constructor 'lftp_ssl_openssl::lftp_ssl_openssl(int,
lftp_ssl_base::handshake_mode_t, const char*)':
lftp_ssl.cc:835: error: 'SSL_set_tlsext_host_name' was not declared in
this scope
make[1]: *** [lftp_ssl.lo] Error 1
make[1]: Leaving directory `/root/build/install/lftp-4.4.5/src'
make: *** [all-recursive] Error 1


What can I do to fix this problem and install lftp with ssl?

TIA

Nuffi
SanskritFritz
2013-03-28 08:47:48 UTC
Permalink
Post by nuffnough
Hi,
I am compiling lftp 4.4.5 on CentOS 5.6
openssl and openssl-devel are both installed.
I ran ./configure --prefix=/usr/local --with-openssl=/usr/lib which seemed fine,
/bin/sh ../libtool --silent --tag=CXX --mode=compile gcc
-DHAVE_CONFIG_H -I. -I../lib -I../lib -I../trio -I/usr/lib/include
-O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions
-fno-rtti -fno-implement-inlines -MT lftp_ssl.lo -MD -MP -MF
.deps/lftp_ssl.Tpo -c -o lftp_ssl.lo lftp_ssl.cc
lftp_ssl.cc: In constructor 'lftp_ssl_openssl::lftp_ssl_openssl(int,
lftp_ssl.cc:835: error: 'SSL_set_tlsext_host_name' was not declared in
this scope
make[1]: *** [lftp_ssl.lo] Error 1
make[1]: Leaving directory `/root/build/install/lftp-4.4.5/src'
make: *** [all-recursive] Error 1
What can I do to fix this problem and install lftp with ssl?
Maybe you have an old version of ssl? SSL_set_tlsext_host_name was
introduced in 1.0.0a [01 Jun 2010].
http://www.openssl.org/news/changelog.html
StalkR
2013-03-28 08:50:50 UTC
Permalink
Hi Nuffi,

It looks like your OpenSSL version does not support SNI (which was
added in lftp 4.4.4).
What is the version installed on CentOS 5.6? SNI was added to OpenSSL >= 0.9.8.

Some suggestions to solve this:
1) upgrade SSL library to >= 0.9.8
2) or, locally compile an OpenSSL >= 0.9.8 and link against it using
--with-openssl
3) or, use lftp 4.4.3 (before SNI was added)
Post by nuffnough
Hi,
I am compiling lftp 4.4.5 on CentOS 5.6
openssl and openssl-devel are both installed.
I ran ./configure --prefix=/usr/local --with-openssl=/usr/lib which seemed fine,
/bin/sh ../libtool --silent --tag=CXX --mode=compile gcc
-DHAVE_CONFIG_H -I. -I../lib -I../lib -I../trio -I/usr/lib/include
-O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions
-fno-rtti -fno-implement-inlines -MT lftp_ssl.lo -MD -MP -MF
.deps/lftp_ssl.Tpo -c -o lftp_ssl.lo lftp_ssl.cc
lftp_ssl.cc: In constructor 'lftp_ssl_openssl::lftp_ssl_openssl(int,
lftp_ssl.cc:835: error: 'SSL_set_tlsext_host_name' was not declared in
this scope
make[1]: *** [lftp_ssl.lo] Error 1
make[1]: Leaving directory `/root/build/install/lftp-4.4.5/src'
make: *** [all-recursive] Error 1
What can I do to fix this problem and install lftp with ssl?
TIA
Nuffi
_______________________________________________
lftp mailing list
http://univ.uniyar.ac.ru/mailman/listinfo/lftp
Loading...