[Digikam-devel] Re: Cannot compile digikam: undefined reference to pthread lib
Gilles Caulier
caulier.gilles at gmail.com
Sun Jun 26 09:03:12 BST 2011
Hi Gerhard,
2011/6/26 Gerhard Kulzer <gerhard at kulzer.net>
> Hello everybody,
> I've had a problem for the last couple of weeks, I can't compile digikam
> anymore:
>
> ...
> Scanning dependencies of target
> kipiplugin_gpssync
>
>
^^^ why gpssync here. libdng is only used in DNGConverter...
> [ 23%] /usr/bin/ld: ../../../../lib/liblibdng.a(dng_mutex.cpp.o): undefined
> reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'
> /usr/bin/ld: note: 'pthread_key_delete@@GLIBC_2.2.5' is defined in DSO
> /lib/x86_64-linux-gnu/libpthread.so.0 so try adding it to the linker command
> line
> /lib/x86_64-linux-gnu/libpthread.so.0: could not read symbols: Invalid
> operation
> collect2: ld returned 1 exit status
> make[2]: *** [extra/kipi-plugins/dngconverter/test/raw2dng] Error 1
> make[1]: ***
> [extra/kipi-plugins/dngconverter/test/CMakeFiles/raw2dng.dir/all] Error 2
> ...
>
>
It sound like a mess in your local cmake configuration. Clean up all,
checkout software collection and recompile all from scratch.
> I tried to fix it by including -lpthread (or rather adding
> ${CMAKE_USE_PTHREADS_INIT} to the CmakeList.txt) as is proposed by various
> references I found on the web, but to no avail.
>
>
And DNG converter is already linked with Pthread.
Gilles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20110626/2676b493/attachment.html>
More information about the Digikam-devel
mailing list