NOTE! This site uses cookies and similar technologies.

If you not change browser settings, you agree to it.

I understand

Welcome, Guest
Username: Password: Remember me

TOPIC: Compiling error

Compiling error 1 year 22 hours ago #1

  • Gis
  • Gis's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hi guys,
I'm compiling GIT master on a Ubuntu 16.04 (x64) and got this error. Just don't know where to begin :

[ 66%] Linking C executable LIBCURL
Scanning dependencies of target CMakeLib
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
make[3]: *** [Utilities/cmcurl/CMakeFiles/LIBCURL.dir/build.make:99: Utilities/cmcurl/LIBCURL] Error 1
make[3]: Leaving directory '/home/osboxes/OpenELEC.tv/build.OpenELEC-Generic.x86_64-8.0-devel/cmake-3.6.2/.x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1434: Utilities/cmcurl/CMakeFiles/LIBCURL.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....


Anyone can help me with this please ?
Thanks a lot,
Gis
The administrator has disabled public write access.

Compiling error 1 year 22 hours ago #2

  • sraue
  • sraue's Avatar
  • Offline
  • Developer
  • Posts: 2094
  • Thank you received: 650
  • Karma: 131
you used latest git master? packages/web/curl/package.mk should contain "PKG_USE_CMAKE="no""
The administrator has disabled public write access.

Compiling error 1 year 37 minutes ago #3

  • Gis
  • Gis's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Well I ran
git clone github.com/OpenELEC/OpenELEC.tv.git

In packages/web/curl/package.mk
I got ;
PKG_USE_CMAKE="no"
The administrator has disabled public write access.

Compiling error 11 months 1 week ago #4

  • szymonciow
  • szymonciow's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
I can confirm this kind of issue on latest openelec, master git.
It occurs since a few latest commits.
lib/libcmcurl.a(openssl.c.o): In function `ossl_connect_common':
openssl.c:(.text+0x1345): undefined reference to `SSLv3_client_method'
lib/libcmcurl.a(openssl.c.o): In function `Curl_ossl_cleanup':
openssl.c:(.text+0x371f): undefined reference to `SSL_COMP_free_compression_methods'
collect2: error: ld returned 1 exit status
I supposed the problem is with cmake. A can comment some lines ( req_method = SSLv3_client_method();) i file:
cmake-3.6.2/Utilities/cmcurl/lib/vtls/openssl.c
and compilation is finished and correct (final openelec target), but of course it isn't solution, my final openelec image has problem with pvr.vnsi
The administrator has disabled public write access.

Compiling error 11 months 6 days ago #5

  • iceman
  • iceman's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 8
  • Karma: 0
Same problem here (cmake 3.6.2, and PKG_USE_CMAKE="no" already set):
[ 31%] Linking C executable LIBCURL
/home/iceman/OpenELEC.tv/build.OpenELEC-Generic.x86_64-8.0-devel/toolchain/lib/libcrypto.so: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[3]: *** [Utilities/cmcurl/CMakeFiles/LIBCURL.dir/build.make:99: Utilities/cmcurl/LIBCURL] Error 1
make[3]: Leaving directory '/home/iceman/OpenELEC.tv/build.OpenELEC-Generic.x86_64-8.0-devel/cmake-3.6.2/.i686-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1434: Utilities/cmcurl/CMakeFiles/LIBCURL.dir/all] Error 2
make[2]: Leaving directory '/home/iceman/OpenELEC.tv/build.OpenELEC-Generic.x86_64-8.0-devel/cmake-3.6.2/.i686-linux-gnu'
make[1]: *** [Makefile:161: all] Error 2
make[1]: Leaving directory '/home/iceman/OpenELEC.tv/build.OpenELEC-Generic.x86_64-8.0-devel/cmake-3.6.2/.i686-linux-gnu'
The administrator has disabled public write access.

Compiling error 5 months 3 weeks ago #6

  • voyo
  • voyo's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
same for me, code from git , last commit 52f65a2bcbf33edaf1c2c298e2c67f1bb2744c66

I managed to fix it with below change:

--- packages/devel/cmake/package.mk~ 2017-03-31 15:48:56.000000000 +0200
+++ packages/devel/cmake/package.mk 2017-04-01 16:16:02.672122250 +0200
@@ -38,7 +38,7 @@
-- \
-DCMAKE_C_FLAGS="-O2 -Wall -pipe -Wno-format-security" \
-DCMAKE_CXX_FLAGS="-O2 -Wall -pipe -Wno-format-security" \
- -DCMAKE_EXE_LINKER_FLAGS="$HOST_LDFLAGS" \
+ -DCMAKE_EXE_LINKER_FLAGS="$HOST_LDFLAGS -lrt" \
-DCMAKE_USE_OPENSSL=ON \
-DBUILD_CursesDialog=0
}
The administrator has disabled public write access.