[Digikam-devel] Cannot compile digikam: undefined reference to pthread lib

Gerhard Kulzer gerhard at kulzer.net
Sun Jun 26 07:32:55 BST 2011


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

[ 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
...

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.

I'm running

   - libc6 version  2.13-6ubuntu2
   - gcc 4:4.6.0-5ubuntu1

Anybody any idea?

Gerhard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20110626/9c87af66/attachment.html>


More information about the Digikam-devel mailing list