[kde-freebsd] i cant compile qt-4.4 in FreBSD-7.PRERELEASE :(

David Johnson david at usermode.org
Thu Mar 13 05:24:57 CET 2008

On Tuesday 11 March 2008 05:27:16 am Manolo Valdes wrote:
> g++ -c -pipe -fno-exceptions -D_REENTRANT -I/usr/local/include/glib-2.0
> -I/usr/local/lib/glib-2.0/include -O2 -Wall -W -pthread -D_THREAD_SAFE
> -I../../mkspecs/freebsd-g++ -I. -I../../include -I../../include/QtCore
> -Iconcurrent -Iglobal -I../3rdparty/harfbuzz/src -I.moc/release-shared
> -I.uic/release-shared -I/usr/local/include -o
> .obj/release-shared/qtconcurrentiteratekernel.o
> concurrent/qtconcurrentiteratekernel.cpp
> concurrent/qtconcurrentiteratekernel.cpp: In function 'qint64 getticks()':
> concurrent/qtconcurrentiteratekernel.cpp:104: error:
> 'CLOCK_THREAD_CPUTIME_ID' was not declared in this scope
> *** Error code 1
> 1 error
> *** Error code 2
> i already have instaled pthreads but qmake seems to not find the right
> included path /usr/local/include/pth

There is no need to install pthreads under FreeBSD, since it is already 
included. That is not where your problem lies.

The CLOCK_THREAD_CPUTIME_ID name is new in FreeBSD, only a few weeks old 
(http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/time.h). It looks like a 
define somewhere is out of whack. I would update to FreeBSD 7.0-RELEASE 
before reporting it as a bug to Qt.

David Johnson

More information about the kde-freebsd mailing list