[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] libevent-2.1.4-alpha: implicit declaration of function 'SSL_set_tlsext_host_name'



Hello!
I try cross-compile libevent-2.1.4-alpha for ARM CPU.
Follow my configuration options:
./configure --prefix=/tmp/libevent --host=arm-fsl-linux-gnueabi
--disable-debug-mode --disable-libevent-install
--disable-libevent-regress --enable-function-sections
--enable-gcc-hardening
CC=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-gcc
CFLAGS=-I/opt/IMX53/ltib/rpm/BUILD/openssl-0.9.8g/include
LDFLAGS=-L/opt/IMX53/ltib/rpm/BUILD/openssl-0.9.8g -lssl -lcrypto

Unfortunately compilation stopped on samples:
  CCLD     sample/le-proxy
  CC       sample/https-client.o
sample/https-client.c: In function 'main':
sample/https-client.c:350: warning: implicit declaration of function
'SSL_set_tlsext_host_name'
sample/https-client.c:350: warning: nested extern declaration of
'SSL_set_tlsext_host_name'
  CC       sample/hostcheck.o
  CC       sample/openssl_hostname_validation.o
  CCLD     sample/https-client
sample/https-client.o: In function `main':
https-client.c:(.text+0xa78): undefined reference to
`SSL_set_tlsext_host_name'
collect2: ld returned 1 exit status
make[2]: *** [sample/https-client] Error 1

I think I found possible reason - configure search OpenSSL in system:
$ grep SSL_INCS libevent-2.1.4-alpha/configure
OPENSSL_INCS
        OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`

I think problem will be solved after added OpenSSL configuration options
in configuration, e.g. OPENSSL_INCLUDE_DIR and OPENSSK_LIB_DIR.

Or may by I have another way for solving this problem?
Thank you and excuse me for my bad english.

-- 
Best regards,
Brilliantov Kirill Vladimirovich
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.