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 - libtdevnc pthread_mutexattr_settype and CRYPTO_num_locks errors
Summary: libtdevnc pthread_mutexattr_settype and CRYPTO_num_locks errors
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdenetwork (show other bugs)
Version: R14.1.x [Trinity]
Hardware: All Linux
: P5 normal
Assignee: Slávek Banko
URL:
Depends on:
Blocks: R14.1.0
  Show dependency treegraph
 
Reported: 2018-06-01 17:35 CDT by Ray Vine
Modified: 2018-06-22 06:34 CDT (History)
3 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments
Fix-FTBFS-due-to-new-DSO-linkage-style (502 bytes, patch)
2018-06-20 16:06 CDT, Slávek Banko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.