| Summary: | libtdevnc pthread_mutexattr_settype and CRYPTO_num_locks errors | ||
|---|---|---|---|
| Product: | TDE | Reporter: | Ray Vine <ray-v> |
| Component: | tdenetwork | Assignee: | Slávek Banko <slavek.banko> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bugwatch, ray-v, slavek.banko |
| Priority: | P5 | ||
| Version: | R14.1.x [Trinity] | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Bug Depends on: | |||
| Bug Blocks: | 2247 | ||
| Attachments: | Fix-FTBFS-due-to-new-DSO-linkage-style | ||
Created attachment 2862 [details]
Fix-FTBFS-due-to-new-DSO-linkage-style
I can not reproduce the above problems on my system. Therefore, I can not verify whether attached patch is a solution for both of these issues.
Please, can you check it on your system?
Thanks - that patch fixes both errors. Pushed to GIT in hash a3628aa8 and submodule libtdevnc updated in tdenetwork by hash b07c9747. |
Building tdenetwork: [1] Error: .../bin/ld: ../libtdevnc/libtdevncclient.a(tls_openssl.c.o): undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5' /lib64/libpthread.so.0: error adding symbols: DSO missing from command line An internet search suggested adding -pthread, so I added: -DCMAKE_CXX_FLAGS:STRING="-pthread" to cmake, and it works, but is this something that could/should be added to CMakeLists.txt? [2] Error where openssl is being used: ../libtdevnc/libtdevncclient.a(tls_openssl.c.o): In function `InitializeTLS': /tmp/build/tmp-tdenetwork/tdenetwork/libtdevnc/libvncclient/tls_openssl.c:153: undefined reference to `CRYPTO_num_locks' and lots more 'undefined reference to' .. Fixed with: --- libtdevnc/CMakeLists.txt +++ libtdevnc/CMakeLists.txt @@ -304 +304 @@ - ${ADDITIONAL_LIBS} ${ZLIB_LIBRARIES} ${JPEG_LIBRARIES} ${GNUTLS_LIBRARIES} + ${ADDITIONAL_LIBS} ${ZLIB_LIBRARIES} ${JPEG_LIBRARIES} ${GNUTLS_LIBRARIES} ${OPENSSL_LIBRARIES}