Cannot compile digikam: undefined reference to pthread lib

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot compile digikam: undefined reference to pthread lib

Gerhard Kulzer
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


_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: Cannot compile digikam: undefined reference to pthread lib

Gilles Caulier-4
Hi Gerhard,

2011/6/26 Gerhard Kulzer <[hidden email]>
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

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel