textproc/soprano linking problem

Dominic Fandrey kamikaze at bsdforen.de
Tue Aug 17 08:25:40 UTC 2010


On 16/08/2010 11:49, Dominic Fandrey wrote:
> I wanted to switch to the new k3b-kde4. I ran through a couple
> of problems, most of them ports not accepting spaces in CC, but
> there's a soprano issue I don't get through to:
> 
> Linking CXX executable sopranod
> cd /usr/obj/mobileKamikaze.norad/amd64/usr/ports/textproc/soprano/work/soprano-2.4.4/server && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/sopranod.dir/link.txt --verbose=1
> /usr/bin/c++   -O2 -pipe -march=nocona -fno-strict-aliasing -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden   CMakeFiles/sopranod.dir/sopranod.cpp.o CMakeFiles/sopranod.dir/sopranodcore.cpp.o CMakeFiles/sopranod.dir/lockfile.cpp.o  -o sopranod  ../soprano/libsoprano.so.4.3.0 libsopranoserver.so.1.2.0 ../index/libsopranoindex.so.1.1.0 /usr/local/lib/qt4/libQtNetwork.so /usr/local/lib/qt4/libQtDBus.so ../soprano/libsoprano.so.4.3.0 /usr/local/lib/qt4/libQtCore.so -pthread /usr/local/lib/libclucene.so -Wl,-rpath,/usr/obj/mobileKamikaze.norad/amd64/usr/ports/textproc/soprano/work/soprano-2.4.4/soprano:/usr/obj/mobileKamikaze.norad/amd64/usr/ports/textproc/soprano/work/soprano-2.4.4/server:/usr/obj/mobileKamikaze.norad/amd64/usr/ports/textproc/soprano/work/soprano-2.4.4/index:/usr/local/lib/qt4:/usr/local/lib: 
> CMakeFiles/sopranod.dir/sopranod.cpp.o(.text+0x33): In function `usage()':
> : undefined reference to `Soprano::versionString()'
> CMakeFiles/sopranod.dir/sopranodcore.cpp.o(.gnu.linkonce.r._ZTV12SopranodCore+0xb0): undefined reference to `Soprano::Error::ErrorCache::lastError() const'
> libsopranoserver.so.1.2.0: undefined reference to `Soprano::Error::ErrorCache::ErrorCache()'
> ...


By removing the dependency in kdelibs4 I got a slightly more
useful error message from x11/kdelibs4 that sheds some light:

-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
CMake Error at cmake/modules/FindKDE4Internal.cmake:1170 (message):
  Qt compiled without support for -fvisibility=hidden.  This will break
  plugins and linking of some applications.  Please fix your Qt installation.
Call Stack (most recent call first):
  CMakeLists.txt:36 (find_package)


-- Configuring incomplete, errors occurred!
*** Error code 1

Stop in /usr/ports/x11/kdelibs4.

shell returned 1


After some searching I found that I am not the first person
to have this problem and the solution was to rebuild qt and
everything related without using ccache. Unfortunately this
solution did not work for me. It might be that it's a build
dependency and I missed it.

Unfortunately the error message holds no information whatsoever
about which component is affected. I'm at a dead end and need
some hints where to go next.


-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 


More information about the freebsd-ports mailing list