[Digikam-users] Re: svn build fails: testlensiface has undefined reference to lkdecore
Gilles Caulier
caulier.gilles at gmail.com
Tue Sep 28 07:53:24 BST 2010
Done with commit #1180475. But it's abnormal, because testlensfuniface
is already linked with KExiv2, through digikamcore internal library.
No need to duplicate it. Look there :
http://lxr.kde.org/source/extragear/graphics/digikam/digikam/CMakeLists.txt#186
Sound like your CMake or devel env has a problem. Both Linux and
Windows version compile fine there...
Gilles Caulier
2010/9/28 sean darcy <seandarcy2 at gmail.com>:
> Thanks. That fix worked. But now libexiv2:
>
> /usr/bin/ld: CMakeFiles/testlensfuniface.dir/testlensfuniface.o:
> undefined reference to symbol 'KExiv2Iface::KExiv2Data::~KExiv2Data()'
> /usr/bin/ld: note: 'KExiv2Iface::KExiv2Data::~KExiv2Data()' is defined
> in DSO /usr/lib64/libkexiv2.so.9 so try adding it to the linker command line
> /usr/lib64/libkexiv2.so.9: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> make[2]: *** [libs/dimg/filters/lens/testlensfuniface] Error 1
> make[2]: Leaving directory
> `/home/photo/rpmbuild/BUILD/digikam/x86_64-redhat-linux-gnu'
> make[1]: ***
> [libs/dimg/filters/lens/CMakeFiles/testlensfuniface.dir/all] Error 2
>
> sean
>
> On 09/27/2010 02:42 AM, Gilles Caulier wrote:
>> Fixed in svn...
>>
>> Gilles Caulier
>>
>> 2010/9/26 sean darcy<seandarcy2 at gmail.com>:
>>> Today's svn fails as below. AFAICS this is because Fedora no longer
>>> permits implicit linking. See:
>>> https://fedoraproject.org/wiki/UnderstandingDSOLinkChange
>>>
>>> How do I set up libkdecore as an explicit link?
>>>
>>> sean
>>>
>>> BTW, I tried posting this on the dev mailing list, but it disappeared
>>> into the ether. So if you're seeing it twice, I apologize.
>>>
>>> /usr/lib64/ccache/c++ -O3 -march=native -mtune=native -fopenmp -msse4.1
>>> -mfpmath=sse -ftree-vectorize -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 -Woverloaded-virtual -fno-threadsafe-statics
>>> -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG
>>> -DQT_NO_DEBUG -Wl,--enable-new-dtags
>>> CMakeFiles/testlensfuniface.dir/testlensfuniface_automoc.o
>>> CMakeFiles/testlensfuniface.dir/testlensfuniface.o -o testlensfuniface
>>> -rdynamic -L/usr/lib64/kde4/devel
>>> -L/home/photo/rpmbuild/BUILD/digikam/x86_64-redhat-linux-gnu/lib
>>> ../../../../lib/libdigikamcore.so.1.0.0 /usr/lib64/libQtCore.so
>>> -lpthread /usr/lib64/libQtGui.so
>>> -Wl,-rpath,/usr/lib64/kde4/devel:/home/photo/rpmbuild/BUILD/digikam/x86_64-redhat-linux-gnu/lib
>>> /usr/bin/ld: CMakeFiles/testlensfuniface.dir/testlensfuniface.o:
>>> undefined reference to symbol 'KDebug::hasNullOutput(QtMsgType, bool,
>>> int, bool)'
>>> /usr/bin/ld: note: 'KDebug::hasNullOutput(QtMsgType, bool, int, bool)'
>>> is defined in DSO /usr/lib64/libkdecore.so.5 so try adding it to the
>>> linker command line
>>> /usr/lib64/libkdecore.so.5: could not read symbols: Invalid operation
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [libs/dimg/filters/lens/testlensfuniface] Error 1
>>>
>>> _______________________________________________
>>> Digikam-users mailing list
>>> Digikam-users at kde.org
>>> https://mail.kde.org/mailman/listinfo/digikam-users
>>>
>
>
> _______________________________________________
> Digikam-users mailing list
> Digikam-users at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-users
>
More information about the Digikam-users
mailing list