By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 2927

Summary: libtdevnc pthread_mutexattr_settype and CRYPTO_num_locks errors
Product: TDE Reporter: Ray Vine <ray-v>
Component: tdenetworkAssignee: 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

Description Ray Vine 2018-06-01 17:35:58 CDT
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}
Comment 1 Slávek Banko 2018-06-20 16:06:29 CDT
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?
Comment 2 Ray Vine 2018-06-22 03:41:33 CDT
Thanks - that patch fixes both errors.
Comment 3 Slávek Banko 2018-06-22 06:33:18 CDT
Pushed to GIT in hash a3628aa8 and submodule libtdevnc updated in tdenetwork by hash b07c9747.