[PATCH] fix build error

José Fonseca jose.r.fonseca at gmail.com
Mon Mar 11 14:37:11 PDT 2013


Pushed. Thanks.

I used "${CMAKE_THREAD_LIBS_INIT}" instead of "-lpthread" for
cross-platform portability, but the net result on linux should be the same.

Jose

On Mon, Mar 11, 2013 at 5:21 PM, Rob Clark <robdclark at gmail.com> wrote:

> /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
>
> _______________________________________________
> apitrace mailing list
> apitrace at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/apitrace
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/apitrace/attachments/20130311/19906630/attachment.html>


More information about the apitrace mailing list