[kde-freebsd] KDE: Problems compiling piklab on FreeBSD 6.2-RELEASE

Michael Nottebrock lofi at freebsd.org
Tue Nov 13 14:15:15 CET 2007


On Tue, Nov 13, 2007 at 11:13:43AM +0000, Bruce M Simpson wrote:
> [Cc to FreeBSD KDE port maintainers as this is an issue affecting the 
> base KDE install]
> 
> Nicolas Hadacek wrote:
> > The first linking problem is causing all the other errors so I would
> > concentrate on it. I don't understand why it happens though.
> >   
> It seems to be related to the -pthread option.  This seems to be a 
> semi-known issue with using libtool on FreeBSD, and possibly also OpenBSD.
> 
> Solution:
>  * FINALLY! What worked was removing -pthread from 
> /usr/local/lib/libkdecore.la, in fact, any reference to the -pthread 
> option from *.la files installed on the system.
> 
> For piklab this includes:
> empiric:~/tmp/px/piklab-0.15.0 % find /usr/local/lib -name '*.la.orig'
> /usr/local/lib/libkdecore.la.orig
> /usr/local/lib/libfam.la.orig
> /usr/local/lib/libkio.la.orig
> /usr/local/lib/libDCOP.la.orig
> /usr/local/lib/libktexteditor.la.orig
> /usr/local/lib/libkhtml.la.orig
> 
> For the piklab binaries which failed to link, finding this information 
> involved recursively walking the Libtool .la files referenced by each 
> link target, and looking for the presence of the -pthread option, 
> usually in the dependency_libs variable -- then removing it. The 
> libraries affected by this are USUALLY imported using -l rather than a 
> direct reference to the .la file.
> 
> [I found that the libtool hack from fruitsalad (link below) to spit out 
> more useful debugging info does not always print the correct target name.]
> 
> This is not an OK solution for a FreeBSD port.. as it changes files 
> installed by the FreeBSD KDE base packages. Perhaps ade@ can suggest a 
> better solution? I imagine we may be able to solve this within piklab by 
> regenerating the libtool in the package.

This all sounds like the piklab distribution is very old and uses some very old
and broken configure checks. If you can provide a shar/tar of your port, I can
take a shot at patching it up properly by the weekend.

Cheers,
-- 
   ,_,   | Michael Nottebrock               | lofi at freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org


More information about the kde-freebsd mailing list