Fwd: kdelibs compilation error

David Faure faure at kde.org
Tue Oct 5 14:57:05 CEST 2010


On Sunday 03 October 2010, Alexander Neundorf wrote:
> On Friday 01 October 2010, David Faure wrote:
> > On Friday 01 October 2010, Tomas Vavra wrote:
> > > I have problem with building kdelibs it always finishes with this
> > > error: * [while linking kded4]
> > > /backup/devel/kde4/build/kdelibs/lib/libnepomuk.so.4: undefined
> > > reference to `Soprano::Vocabulary::NAO::userVisible()'
> 
> It says "undefined reference", not that it couldn't find libsoprano ?

That's because it's not even looking for libsoprano. There's no -lsoprano in 
the link line at all. So the undefined symbol is, well, still undefined.

> Stupid question: might the be multiple versions of libsoprano on the
> system, and a wrong one is used here ?

No, we checked that. No libsoprano is being linked in at all.

> I'll be on a business trip until Wednesday, so no time before that.
> I'll have a look afterwards, but I'm always confused by Soprano and
> friends.

OK.

> > I spent some time on IRC with Tomas, and I have no idea why he gets this
> > error. Well, nepomuk and soprano are both missing on the link line, but
> > why, and why not for others... (they are both present on my machine, when
> > linking kded4).
> > 
> > kio links to nepomuk and soprano just fine,
> > then other things link ok, but then kded4 doesn't link because it links
> > to kio, which links to nepomuk, and when this happens it fails as above,
> > due to a missing -lsoprano. In fact -lnepomuk is missing too, but
> > apparently it finds it as a direct dependency of libkio?
> 
> Maybe some RPATH is missing somewhere ?
> Somewhere I had a similar problem not too long ago...

I don't think so, that would be a "lib not found", not a "not trying to link 
the lib at all".

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).


More information about the Kde-buildsystem mailing list