[FFmpeg-user] Configure says it can't find openssl

Reindl Harald h.reindl at thelounge.net
Mon Aug 12 15:47:27 EEST 2019



Am 12.08.19 um 14:30 schrieb Simon Brown:
> I run the following configure script using the latest ffmpeg pulled from
> github.
> 
> ./configure --disable-decoders --disable-encoders --enable-decoder=h264
> --enable-decoder=vc1 --enable-decoder=aac --disable-ffplay
> --disable-ffprobe --enable-openssl
> 
> It's on an embedded system, hence disabling most of the features.
> It returns with
> ERROR: openssl not found
> 
> If you think configure made a mistake, make sure you are using the latest
> version from Git.  If the latest version fails, report the problem to the
> ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
> Include the log file "ffbuild/config.log" produced by configure as this
> will help
> solve the problem.
> 
> The log file is attached.
> 
> I have made sure that openssl is installed
> opkg list-installed | grep openssl
> openssl - 1.0.1p-r0.0
> openssl-conf - 1.0.1p-r0.0
> openssl-dbg - 1.0.1p-r0.0
> openssl-dev - 1.0.1p-r0.0

you don't say which version of ffmpeg you try to build and your openssl
as well as your compiler are old

BEGIN /tmp/ffconf.wZNnjr13/test.c
    1	#include <openssl/ssl.h>
    2	#include <stdint.h>
    3	long check_OPENSSL_init_ssl(void) { return (long) OPENSSL_init_ssl; }
    4	int main(void) { int ret = 0;
    5	 ret |= ((intptr_t)check_OPENSSL_init_ssl) & 0xFFFF;
    6	return ret; }
END /tmp/ffconf.wZNnjr13/test.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -march=armv7-a -std=c11
-fomit-frame-pointer -marm -pthread -c -o /tmp/ffconf.wZNnjr13/test.o
/tmp/ffconf.wZNnjr13/test.c
gcc -march=armv7-a -Wl,--as-needed -Wl,-z,noexecstack -o
/tmp/ffconf.wZNnjr13/test /tmp/ffconf.wZNnjr13/test.o -lssl -lcrypto
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_free'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_push'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_new_null'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_delete'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_num'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_value'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_find'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_dup'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'EVP_MD_CTX_init'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'CRYPTO_add_lock'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'EVP_MD_CTX_cleanup'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_set_cmp_func'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'OpenSSLDie'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'EVP_CIPHER_CTX_init'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'BUF_strdup'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'BUF_strndup'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'HMAC_CTX_init'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_pop_free'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_shift'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'EVP_CIPHER_CTX_cleanup'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'HMAC_CTX_cleanup'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_new'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'EVP_MD_CTX_create'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'BUF_memdup'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'EVP_MD_CTX_destroy'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'EVP_CIPHER_CTX_flags'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'CRYPTO_lock'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'EVP_dss1'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'EVP_ecdsa'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'pqueue_pop'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'pitem_free'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'pqueue_free'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'pqueue_new'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'pqueue_size'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'pqueue_peek'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'pqueue_insert'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'pitem_new'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'pqueue_iterator'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'pqueue_find'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'pqueue_next'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'lh_retrieve'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'lh_num_items'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_zero'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'lh_free'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'lh_new'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_set'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'X509_STORE_CTX_get_ex_new_index'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'ERR_load_crypto_strings'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'lh_delete'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'lh_insert'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'lh_doall_arg'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'sk_sort'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'asn1_GetSequence'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'asn1_const_Finish'
/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.9.3/../../../libssl.so: error:
undefined reference to 'asn1_add_error'
/tmp/ffconf.wZNnjr13/test.o:test.c:function check_OPENSSL_init_ssl:
error: undefined reference to 'OPENSSL_init_ssl'
/tmp/ffconf.wZNnjr13/test.o:test.c:function check_OPENSSL_init_ssl:
error: undefined reference to 'OPENSSL_init_ssl'
collect2: error: ld returned 1 exit status


More information about the ffmpeg-user mailing list