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

a at slo.me a at slo.me
Mon Aug 12 16:29:32 EEST 2019



On 08/12/2019 01:04 PM, Simon Brown wrote:
> On Mon, 12 Aug 2019 at 13:47, Reindl Harald <h.reindl at thelounge.net> wrote:
> 
>>
>>
>> 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
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> 
> 
> Am 12.08.19 um 14:30 schrieb Simon Brown:
>> I run the following configure script using the latest ffmpeg pulled from
>> github.
>  But agreed, gcc and openssl are old.  I have tried with a newer version of
> openssl, but it's no different.
> It also happens on ffmpeg 3.15.
> 
> Regards,
> Simon
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>From the configure script

"""
enabled openssl           && { check_pkg_config openssl openssl
openssl/ssl.h OPENSSL_init_ssl ||
                               check_pkg_config openssl openssl
openssl/ssl.h SSL_library_init ||
                               check_lib openssl openssl/ssl.h
SSL_library_init -lssl -lcrypto ||
                               check_lib openssl openssl/ssl.h
SSL_library_init -lssl32 -leay32 ||
                               check_lib openssl openssl/ssl.h
SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
                               die "ERROR: openssl not found"; }
""

"openssl not found" is the error if any of those tests fail.


I built it from git yesterday, with openssl 1.1.1b.


ffmpeg version N-94501-g33186028fc Copyright (c) 2000-2019 the FFmpeg
developers
  built with OpenBSD clang version 7.0.1 (tags/RELEASE_701/final) (based
on LLVM 7.0.1)
  configuration: --enable-shared --enable-gpl --enable-version3
--enable-nonfree --enable-libx264 --enable-libx265 --disable-debug
--enable-libfdk-aac --enable-openssl --enable-gcrypt --enable-libvorbis
--enable-libopus --enable-libwebp



More information about the ffmpeg-user mailing list