[kde-freebsd] -lpthread linking in kdelis4
David Johnson
david at usermode.org
Sat Apr 18 18:29:03 CEST 2009
On Saturday 18 April 2009 03:13:29 am George 'Nephrite' Potapov wrote:
> Hello!
>
> I'm triyng to build KDE4 from port on FreeBSD 7.0-STABLE i386
> It has trouble building kdelibs-4.2.2/kjs
> Linker exits with error: undefined reference to pthread_attr_get_np
> Apparently, the error is caused by not linking to libpthread library.
FreeBSD uses -pthread, not -lpthread. I don't know why you are seeing this
problem, but it sounds like cmake, or something cmake is using, is not
detecting the right flavor of pthreads.
If you run the command "pkg-config --libs QtCore" it should return a list of
libraries that libQtCore links with. cmake should be using that, and it should
contain -pthread.
--
David Johnson
More information about the kde-freebsd
mailing list