[Kde-bindings] [PATCH] Ruby linking revisited

Maciej Mrozowski reavertm at gmail.com
Sun May 23 08:33:27 UTC 2010


Hi

I've revisited Ruby bindings one by one, stripped all unnecessary link deps 
and added missing ones. All shared objects dlopen successfully so they 
shouldn't suffer from unresolved symbols issues at runtime when loaded as 
plugins.
Please verify (preferably on non-linux platforms as well)
(see attachment)

The only problem - unlikely CMake related - remains - with Nepomuk, I have no 
idea where to get `qHash(QUrl const&)' from.

Linking CXX shared module ../../lib/nepomuk.so
cd /var/tmp/portage/kde-base/kdebindings-ruby-9999/work/ruby18/kdebindings-
ruby-9999_build/ruby/nepomuk && /usr/bin/cmake -E cmake_link_script 
CMakeFiles/rubynepomuk.dir/link.txt --verbose=1
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++  -fPIC -march=native -O2 -pipe -
msse3 -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 -Wl,--
enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -Wl,--as-needed -
L/usr/kde/live/lib64 -shared -Wl,-soname,nepomuk.so -o ../../lib/nepomuk.so 
CMakeFiles/rubynepomuk.dir/nepomuk.o 
CMakeFiles/rubynepomuk.dir/nepomukhandlers.o -L/var/tmp/portage/kde-
base/kdebindings-ruby-9999/work/ruby18/kdebindings-ruby-9999_build/lib -
L/usr/kde/live/lib64 -L/usr/lib64/qt4 /usr/kde/live/lib64/libnepomuk.so -
lsmokenepomuk ../../lib/libqtruby4shared.so.2.0.0 /usr/lib64/qt4/libQtCore.so 
-lpthread /usr/lib64/qt4/libQtGui.so /usr/lib64/libruby18.so.1.8.7 
/usr/lib64/qt4/libQtNetwork.so -lsmokebase -lsmokeqtcore -lsmokeqtgui -
lsmokeqtxml -lsmokeqtopengl -lsmokeqtsql -lsmokeqtnetwork -lsmokeqtdbus -
lsmokeqtsvg -Wl,-rpath,/var/tmp/portage/kde-base/kdebindings-
ruby-9999/work/ruby18/kdebindings-
ruby-9999_build/lib:/usr/kde/live/lib64:/usr/lib64/qt4: 
CMakeFiles/rubynepomuk.dir/nepomukhandlers.o: In function `QHash<QUrl, 
Nepomuk::Variant>::findNode(QUrl const&, unsigned int*) const':
nepomukhandlers.cpp:
(.text._ZNK5QHashI4QUrlN7Nepomuk7VariantEE8findNodeERKS0_Pj[QHash<QUrl, 
Nepomuk::Variant>::findNode(QUrl const&, unsigned int*) const]+0x15): 
undefined reference to `qHash(QUrl const&)'
collect2: ld returned 1 exit status
make[2]: *** [lib/nepomuk.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/kde-base/kdebindings-
ruby-9999/work/ruby18/kdebindings-ruby-9999_build'
make[1]: *** [ruby/nepomuk/CMakeFiles/rubynepomuk.dir/all] Error 2
make[1]: Leaving directory `/var/tmp/portage/kde-base/kdebindings-
ruby-9999/work/ruby18/kdebindings-ruby-9999_build'
make: *** [all] Error 2

-- 
regards
MM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdebindings-ruby.diff
Type: text/x-patch
Size: 12138 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20100523/5d7838ed/attachment.diff>


More information about the Kde-bindings mailing list