[FFmpeg-devel] [PATCH] Fix static linking openssl library
Alexandr Topilski
atopilski at gmail.com
Sat Jun 10 15:51:10 EEST 2017
Hi, on my machine i have built openssl libraries in static mode only, after
that i want to build ffmpeg library with https protocol support and
configuration failed (undefined reference to 'dlopen') in check_lib openssl
because for linking needed dl library, if linked .so libraries first
check(check_lib
openssl openssl/ssl.h SSL_library_init -lssl -lcrypto) successful.
ldd output is:
ldd /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
linux-vdso.so.1 => (0x00007fff82a6a000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6795038000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6794c70000)
/lib64/ld-linux-x86-64.so.2 (0x0000562ba7b11000)
small description of issue: https://github.com/FFmpeg/FFmpeg/pull/261
On Sat, Jun 10, 2017 at 2:38 PM, Ricardo Constantino <wiiaboo at gmail.com>
wrote:
> On 10 June 2017 at 09:13, <atopilski at gmail.com> wrote:
>
> > From: topilski <atopilski at gmail.com>
> >
> > ---
> > configure | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/configure b/configure
> > index 4ec8f21..c92dd1f 100755
> > --- a/configure
> > +++ b/configure
> > @@ -5942,6 +5942,7 @@ enabled omx && { check_header
> > OMX_Core.h || die "ERROR: OpenMAX IL
> > enabled openssl && { use_pkg_config openssl openssl/ssl.h
> > OPENSSL_init_ssl ||
> > use_pkg_config 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 -lssl -lcrypto -ldl ||
> >
>
> Why not just use the pkg-config with the proper --static flag?
>
>
> > 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"; }
> > --
> > 2.10.2
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
More information about the ffmpeg-devel
mailing list