OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.61k stars 883 forks source link

RPi2 compilation error when building cmake-3.6.2 #4976

Closed ooOJust4FunOoo closed 7 years ago

ooOJust4FunOoo commented 7 years ago

Hello, I have issue when running "PROJECT=RPi2 ARCH=arm make image" on UBUNTU 16.04

lib/libcmcurl.a(openssl.c.o): In function `ossl_connect_common': openssl.c:(.text+0x1358): undefined reference to `SSLv3_client_method'
lib/libcmcurl.a(openssl.c.o): In function `Curl_ossl_cleanup': openssl.c:(.text+0x372f): undefined reference to `SSL_COMP_free_compression_methods'
collect2: error: ld returned 1 exit status

This occurs when building cmake. For the first error I change the line 1740 in file /build.OpenELEC-RPi2.arm-8.0-devel/cmake-3.6.2/Utilities/cmcurl/lib/vtls/openssl.c

1739   case CURL_SSLVERSION_SSLv3:
1740 #ifdef OPENSSL_NO_SSL3_METHOD
1741    failf(data, OSSL_PACKAGE " was built without SSLv3 support");

by

1739   case CURL_SSLVERSION_SSLv3:
1740 #ifdef OPENSSL_NO_SSL3
1741    failf(data, OSSL_PACKAGE " was built without SSLv3 support");

for the second error I change the line 764 in file /build.OpenELEC-RPi2.arm-8.0-devel/cmake-3.6.2/Utilities/cmcurl/lib/vtls/openssl.c

763 #ifdef HAVE_SSL_COMP_FREE_COMPRESSION_METHODS
764   SSL_COMP_free_compression_methods();
765 #endif

by

763 #ifdef HAVE_SSL_COMP_FREE_COMPRESSION_METHODS
764   void SSL_COMP_free_compression_methods(void);
765 #endif

I don't know if it's the solution but the compilation is running for know, without errors and I don't test it on my RPi2

Excuse me for my bad english.