[PATCH] fix build error

Rob Clark robdclark at gmail.com
Mon Mar 11 10:21:25 PDT 2013


/usr/bin/ld: CMakeFiles/qapitrace.dir/apitracecall.cpp.o: undefined
reference to symbol '__pthread_key_create@@GLIBC_2.2.5'
/usr/bin/ld: note: '__pthread_key_create@@GLIBC_2.2.5' is defined in DSO
/lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
---
 gui/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index 773d344..f239647 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -76,6 +76,7 @@ add_executable(qapitrace ${qapitrace_SUBSYSTEM} ${qapitrace_SRCS} ${qapitrace_UI
 target_link_libraries (qapitrace
     image
     common
+    -lpthread
     ${ZLIB_LIBRARIES}
     ${SNAPPY_LIBRARIES}
     ${QJSON_LIBRARIES}
-- 
1.8.1.4



More information about the apitrace mailing list