Bug 280860

Summary: compile fails due to DSO error with pthread
Product: [Applications] digikam Reporter: Thomas Caswell <tcaswell>
Component: Portability-CompilationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 2.1.0
Attachments: adds pthread to target_link

Description Thomas Caswell 2011-08-27 02:39:30 UTC
Created attachment 63166 [details]
adds pthread to target_link

Version:           2.1.0 (using KDE 4.7.0) 
OS:                Linux

When compiling, I get an error about pthread symbols being undefined.  I believe this is related to B.K.O #258931 and the changes to DSO

Reproducible: Always

Steps to Reproduce:
1) checkout
2) compile


$ ld --version
GNU ld (GNU Binutils for Ubuntu) 2.21.53.20110810
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
$ gcc --version
gcc (Ubuntu/Linaro 4.6.1-7ubuntu2) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Actual Results:  
[ 40%] Built target raw2dng_automoc
Linking CXX executable raw2dng
/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
make: *** [all] Error 2


Expected Results:  
successful compile

This came up on the mailing list in June
Comment 1 caulier.gilles 2011-08-27 06:19:30 UTC
Git commit 568e28dd237697b5680a8bc7f7273966e5d0f7aa by Gilles Caulier.
Committed on 27/08/2011 at 08:18.
Pushed by cgilles into branch 'master'.

apply patch #63166
BUGS: 280860

M  +1    -1    dngconverter/CMakeLists.txt

http://commits.kde.org/kipi-plugins/568e28dd237697b5680a8bc7f7273966e5d0f7aa