KDE/kdelibs/cmake/modules

Dirk Mueller mueller at kde.org
Thu Mar 23 10:46:56 CET 2006


On Wednesday, 22. March 2006 18:42, Alexander Neundorf wrote:

> Dirk, why is this required for you ?
> It really shouldn't.

I don't see how, there are no rpaths anywhere, and it only finds the installed 
KDE 3 libraries (because they have the same SONAME, which is a bug on its own 
I'm currently fixing). 

Anyway, the error is: 

cd /suse/dmueller/src/kde/4.0/kdelibs/bgcc/dcop/dcopidl2cpp 
&& /opt/icecream/bin/c++   -pipe -Wstrict-aliasing=2 -Wall -Wextra -D_FORTIFY_SOURCE=2  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-exceptions -fno-check-new -fno-common -O2 -g  -fPIC "CMakeFiles/dcopidl2cpp.dir/main.o" "CMakeFiles/dcopidl2cpp.dir/skel.o" "CMakeFiles/dcopidl2cpp.dir/stub.o" "CMakeFiles/dcopidl2cpp.dir/stubimpl.o"   -o ../../bin/dcopidl2cpp -rdynamic -L/suse/dmueller/src/kde/4.0/kdelibs/bgcc/lib -L/suse/dmueller/src/kde/4.0/kdelibs/bgcc/lib/. -L/usr/local/lib -lQtCore -lpthread -lQtXml -lDCOP -lQtCore -lpthread
bin/sh: line 1: 32259 Segmentation fault      ../bin/dcopidl2cpp --c++-suffix 
cpp --no-signals --no-stub /suse/dmueller/src/kde/4.0/kdelibs/bgcc/kdecore/ksycoca.kidl
make[2]: *** [kdecore/ksycoca_skel.cpp] Error 139

which is because ../bin/dcopidl2cpp links against the KDE3 libraries:

$ldd bin/dcopidl2cpp | grep DCO
        libDCOP.so.4 => /opt/kde-35/lib/libDCOP.so.4 (0xb7d3f000)

which is because bin/dcopidl2cpp doesn't have any RPATHs:
$ objdump -p bin/dcopidl2cpp  | grep RPATH | wc -l
0

.. as you can obviously see with the link statement above

$ cmake --version
cmake version 2.3-20060317

$ grep -i RPATH CMakeCache.txt
CMAKE_SKIP_RPATH:BOOL=NO
RPATH_STYLE:STRING=default
//Advanced flag for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1


I don't see how thats supposed to work, given that there is not even the 
slightest attempt to set a RPATH at all..



-- 
Dirk//\


More information about the Kde-buildsystem mailing list