Bug 269903

Summary: RawEngine no longer compiles due to a linking error [patch]
Product: [Applications] digikam Reporter: Raymond Wooninck <tittiatcoke>
Component: Portability-CompilationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 2.0.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 2.0.0
Sentry Crash Report:
Attachments: fix linking problem

Description Raymond Wooninck 2011-04-01 23:04:38 UTC
Version:           2.0.0 (using Devel) 
OS:                Linux

When building the latest libkdcraw library, the following compiler error occurs :

/usr/bin/c++  -fPIC -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Werror=return-type -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -O4 -DNDEBUG -DQT_NO_DEBUG -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,-Bsymbolic-functions  -shared -Wl,-soname,libkdcraw.so.20 -o ../lib/libkdcraw.so.20.0.0 CMakeFiles/kdcraw.dir/kdcraw_automoc.o CMakeFiles/kdcraw.dir/kdcraw.o CMakeFiles/kdcraw.dir/kdcraw_p.o CMakeFiles/kdcraw.dir/dcrawsettingswidget.o CMakeFiles/kdcraw.dir/dcrawinfocontainer.o CMakeFiles/kdcraw.dir/rawdecodingsettings.o CMakeFiles/kdcraw.dir/rcombobox.o CMakeFiles/kdcraw.dir/rnuminput.o CMakeFiles/kdcraw.dir/rexpanderbox.o CMakeFiles/kdcraw.dir/squeezedcombobox.o -L/usr/src/packages/BUILD/libkdcraw-4.6.41_20110401/build/lib ../lib/liblibraw.a /usr/lib64/libkdeui.so.5.7.0 /usr/lib64/libkio.so.5.7.0 -lm -llcms -ljpeg -lgomp /usr/lib64/libQtNetwork.so /usr/lib64/libQtXml.so /usr/lib64/libkdeui.so.5.7.0 /usr/lib64/libkdecore.so.5.7.0 /usr/lib64/libQtDBus.so /usr/lib64/libQtCore.so -lpthread /usr/lib64/libQtGui.so /usr/lib64/libQtSvg.so 
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: ../lib/liblibraw.a(libraw_cxx.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
../lib/liblibraw.a: could not read symbols: Bad value

As that libkdcraw no longer compiles, also digikam and kipi-plugins no longer builds. This happened only after the changes of today, 

Reproducible: Always
Comment 1 david ross 2011-04-02 09:27:24 UTC
Created attachment 58514 [details]
fix linking problem
Comment 2 caulier.gilles 2011-04-02 10:23:24 UTC
Thanks for the patch

Gilles Caulier
Comment 3 caulier.gilles 2011-04-02 10:32:18 UTC
Git commit 9061f79a6da25ce497bc8e8fd4cb6457f02883f6 by Gilles Caulier.
Committed on 02/04/2011 at 10:35.
Pushed by cgilles into branch 'master'.

apply patch #58514
BUGS: 269903

M  +2    -1    CMakeLists.txt     

http://commits.kde.org/libkdcraw/9061f79a6da25ce497bc8e8fd4cb6457f02883f6