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

2019-08-13 Thread 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

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

2019-08-12 Thread Simon Brown
On Mon, 12 Aug 2019 at 14:30, Moritz Barsnick  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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

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

2019-08-12 Thread Moritz Barsnick
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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

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

2019-08-12 Thread a...@slo.me


On 08/12/2019 01:04 PM, Simon Brown wrote:
> On Mon, 12 Aug 2019 at 13:47, 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.
>>>
>>> ./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@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 
>> 2   #include 
>> 3   long check_OPENSSL_init_ssl(void) { return (long)
>> OPENSSL_init_ssl; }
>> 4   int main(void) { int ret = 0;
>> 5ret |= ((intptr_t)check_OPENSSL_init_ssl) & 0x;
>> 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 

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

2019-08-12 Thread Simon Brown
On Mon, 12 Aug 2019 at 13:47, 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.
> >
> > ./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@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 
> 2   #include 
> 3   long check_OPENSSL_init_ssl(void) { return (long)
> OPENSSL_init_ssl; }
> 4   int main(void) { int ret = 0;
> 5ret |= ((intptr_t)check_OPENSSL_init_ssl) & 0x;
> 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'
>