[FFmpeg-devel] PATCH to configure for openssl-1.1.0

Joseph Parmelee jparmele at wildbear.com
Fri Sep 2 05:52:34 EEST 2016


I found that ffmpeg configure crashes with the new openssl-1.1.0.  This is
due to changes made in openssl-1.1.0 to both the header file ssl.h and to
the libraries libssl.so and libcrypto.so.  The symbol SSL_library_init no
longer exists in either library; it has been replaced by OPENSSL_init_ssl in
libssl.so and is defined as a macro in ssl.h.  Neither symbol exists in

The attached patch fixes the problem for me (building from source) but
further changes may be necessary for others as this patch only fixes the
first part of the OR.  The ffmpeg build and install appear to work correctly
with this patch applied to the source on a 686 linux system.


Joseph W. Parmelee
jparmele at wildbear.com

     [ Part 2, "PATCH"  Text/PLAIN (Name: "configure.patch") ~856 bytes. ]
     [ Unable to print this part. ]
-------------- next part --------------
--- configure.orig	2016-08-08 16:53:00.000000000 -0600
+++ configure	2016-08-31 12:09:34.338899431 -0600
@@ -5781,7 +5781,7 @@
                                     add_cflags -isystem/opt/vc/include/IL ; }
                                 check_header OMX_Core.h ; } ||
                                die "ERROR: OpenMAX IL headers not found"; }
-enabled openssl           && { use_pkg_config openssl openssl/ssl.h SSL_library_init ||
+enabled openssl           && { use_pkg_config openssl openssl/ssl.h OPENSSL_init_ssl ||
                                check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto ||
                                check_lib openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
                                check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||

More information about the ffmpeg-devel mailing list