Configure says it can't find openssl

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Configure says it can't find openssl

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
[hidden email] 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

Any help greatly appreciated.

Regards,
Simon Brown

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

config.log (490K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Configure says it can't find openssl

Reindl Harald


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
> [hidden email] 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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Configure says it can't find openssl

Simon Brown
On Mon, 12 Aug 2019 at 13:47, Reindl Harald <[hidden email]> 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
> > [hidden email] 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
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] 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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Configure says it can't find openssl

a@slo.me


On 08/12/2019 01:04 PM, Simon Brown wrote:

> On Mon, 12 Aug 2019 at 13:47, Reindl Harald <[hidden email]> 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
>>> [hidden email] 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
>> [hidden email]
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email] 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
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] 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

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Configure says it can't find openssl

Moritz Barsnick
In reply to this post by Reindl Harald
On Mon, Aug 12, 2019 at 14:47:27 +0200, Reindl Harald wrote:
> Am 12.08.19 um 14:30 schrieb Simon Brown:
> > I run the following configure script using the latest ffmpeg pulled from
> > github.

> you don't say which version of ffmpeg you try to build [...]

Simon did say so.

> [...] and your openssl as well as your compiler are old

I build quite successfully with much older gcc and openssl. (I
shouldn't, but I do.)

> 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'

This looks like libcrypto.so isn't providing the symbols it is supposed
to. My guess is that /usr/lib/libcrypto.so is broken. (Or is
accidentally version 1.1.0, where the symbols were renamed, and which
therefore wouldn't fit to libssl.so 1.0.1.)

Actually, with 1.0.1, you shouldn't be getting this far, because those
quoted lines are the check for OPENSSL_init_ssl we see here:

> /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

This check should fail in compilation (OPENSSL_init_ssl not being
defined in the headers), not in linking.

The subsequent test for SSL_library_init on the other hand should
succeed with 1.0.1, but it fails in your log (in compilation).

This hints at that you, Simon, may have the openssl headers for 1.1.x,
but the libraries for 1.0.x (or even mixed libraries). It looks a bit
broken, sorry. Did you compile openssl yourself? Did you first install
1.0.x, then 1.1.x, or vice versa, and failed to clean up inbetween?

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Configure says it can't find openssl

Simon Brown
On Mon, 12 Aug 2019 at 14:30, Moritz Barsnick <[hidden email]> wrote:

>
> This looks like libcrypto.so isn't providing the symbols it is supposed
> to. My guess is that /usr/lib/libcrypto.so is broken. (Or is
> accidentally version 1.1.0, where the symbols were renamed, and which
> therefore wouldn't fit to libssl.so 1.0.1.)
>
> Actually, with 1.0.1, you shouldn't be getting this far, because those
> quoted lines are the check for OPENSSL_init_ssl we see here:
>
> > /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
>
> This check should fail in compilation (OPENSSL_init_ssl not being
> defined in the headers), not in linking.
>
> The subsequent test for SSL_library_init on the other hand should
> succeed with 1.0.1, but it fails in your log (in compilation).
>
> This hints at that you, Simon, may have the openssl headers for 1.1.x,
> but the libraries for 1.0.x (or even mixed libraries). It looks a bit
> broken, sorry. Did you compile openssl yourself? Did you first install
> 1.0.x, then 1.1.x, or vice versa, and failed to clean up inbetween?
>
> Moritz
>
Hi Moritz,
Many thanks for your reply, and you are right - mixed versions of openssl.
I've cleared out all openssl1.0.1 and rebuilt and installed openssl1.1.1c
and configure now works, (but only with ffmpeg git head, not with 3.15).
I will see if I can run everything else I want with the latest git-head and
go from there.

Regards,
Simon
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Configure says it can't find openssl

Moritz Barsnick
On Mon, Aug 12, 2019 at 15:48:46 +0100, Simon Brown wrote:
> Many thanks for your reply, and you are right - mixed versions of openssl.
> I've cleared out all openssl1.0.1 and rebuilt and installed openssl1.1.1c
> and configure now works,

Nice, thanks for the feedback! My analysis was a bit of guesswork.

> (but only with ffmpeg git head, not with 3.15).

Support for openssl-1.1.x was integrated into ffmpeg 3.3, AFAICT.
ffmpeg version 3.15 does not exist, you may mean 3.1.5, and that won't
build with openssl-1.1.x, indeed. (There's no reason to use 3.1.5
anyway.)

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".