From nobody@FreeBSD.org  Tue Mar 30 08:47:07 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C6F7A106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Mar 2010 08:47:07 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id B6F298FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Mar 2010 08:47:07 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o2U8l7ER010992
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 30 Mar 2010 08:47:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o2U8l71t010991;
	Tue, 30 Mar 2010 08:47:07 GMT
	(envelope-from nobody)
Message-Id: <201003300847.o2U8l71t010991@www.freebsd.org>
Date: Tue, 30 Mar 2010 08:47:07 GMT
From: Pascal Stumpf <Pascal.Stumpf@cubes.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: x11/kdelibs4 fails if qt3 is installed
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         145195
>Category:       ports
>Synopsis:       x11/kdelibs4 fails if qt3 is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 30 08:50:03 UTC 2010
>Closed-Date:    Wed Apr 28 15:51:29 UTC 2010
>Last-Modified:  Wed Apr 28 15:51:29 UTC 2010
>Originator:     Pascal Stumpf
>Release:        8.0-STABLE
>Organization:
-
>Environment:
>Description:
Ok, I think this problem has been around for a while but still not fixed:
http://osdir.com/ml/kde-freebsd/2010-02/msg00175.html
http://lists.freebsd.org/pipermail/freebsd-ports/2009-December/058037.html


If you have qt3 installed, kdelibs4 will try to use qt3 headers (in /usr/local/include) instead of qt4 headers (/usr/local/kde4/include) and, of course, fail.

In file included from /usr/ports/x11/kdelibs4/work/kdelibs-4.3.5/kio/bookmarks/k
bookmark.cc:33:
/usr/local/include/qdatetime.h:51: error: function definition does not declare p
arameters
/usr/local/include/qdatetime.h:123: error: function definition does not declare
parameters
/usr/local/include/qdatetime.h:184: error: function definition does not declare
parameters
/usr/local/include/qdatetime.h:241: error: expected initializer before '&' token
/usr/local/include/qdatetime.h:242: error: expected initializer before '&' token
/usr/local/include/qdatetime.h:243: error: expected initializer before '&' token
/usr/local/include/qdatetime.h:244: error: expected initializer before '&' token
/usr/local/include/qdatetime.h:245: error: expected initializer before '&' token
/usr/local/include/qdatetime.h:246: error: expected initializer before '&' token
/usr/ports/x11/kdelibs4/work/kdelibs-4.3.5/kio/bookmarks/kbookmark.cc: In member
 function 'void KBookmark::updateAccessMetadata()':
/usr/ports/x11/kdelibs4/work/kdelibs-4.3.5/kio/bookmarks/kbookmark.cc:515: error
: incomplete type 'QDateTime' used in nested name specifier
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 1

Stop in /usr/ports/x11/kdelibs4.

>How-To-Repeat:

>Fix:
I think cmake should check for presence of qt3 on the system and adjust include dirs accordingly.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kde 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Mar 30 08:50:19 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145195 

From: Dima Panov <fluffy@freebsd.org>
To: freebsd-ports-bugs@freebsd.org
Cc: Pascal Stumpf <Pascal.Stumpf@cubes.de>, freebsd-gnats-submit@freebsd.org
Subject: Re: ports/145195: x11/kdelibs4 fails if qt3 is installed
Date: Tue, 30 Mar 2010 20:02:47 +1100

 On Tuesday 30 March 2010 19:47:07 Pascal Stumpf wrote:
 > >Number:         145195
 > >Category:       ports
 > >Synopsis:       x11/kdelibs4 fails if qt3 is installed
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       low
 > >Responsible:    freebsd-ports-bugs
 > >State:          open
 > >Quarter:
 > >Keywords:
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Tue Mar 30 08:50:03 UTC 2010
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Pascal Stumpf
 > >Release:        8.0-STABLE
 > 
 > >Organization:
 > -
 > 
 > >Environment:
 > 
 > >Description:
 > Ok, I think this problem has been around for a while but still not fixed:
 > http://osdir.com/ml/kde-freebsd/2010-02/msg00175.html
 > http://lists.freebsd.org/pipermail/freebsd-ports/2009-December/058037.html
 > 
 > 
 > If you have qt3 installed, kdelibs4 will try to use qt3 headers (in
 > /usr/local/include) instead of qt4 headers (/usr/local/kde4/include) and,
 > of course, fail.
 > 
 > In file included from
 > /usr/ports/x11/kdelibs4/work/kdelibs-4.3.5/kio/bookmarks/k bookmark.cc:33:
 > /usr/local/include/qdatetime.h:51: error: function definition does not
 > declare p arameters
 > /usr/local/include/qdatetime.h:123: error: function definition does not
 > declare parameters
 > /usr/local/include/qdatetime.h:184: error: function definition does not
 > declare parameters
 > /usr/local/include/qdatetime.h:241: error: expected initializer before '&'
 > token /usr/local/include/qdatetime.h:242: error: expected initializer
 > before '&' token /usr/local/include/qdatetime.h:243: error: expected
 > initializer before '&' token /usr/local/include/qdatetime.h:244: error:
 > expected initializer before '&' token /usr/local/include/qdatetime.h:245:
 > error: expected initializer before '&' token
 > /usr/local/include/qdatetime.h:246: error: expected initializer before '&'
 > token
 > /usr/ports/x11/kdelibs4/work/kdelibs-4.3.5/kio/bookmarks/kbookmark.cc: In
 > member function 'void KBookmark::updateAccessMetadata()':
 > /usr/ports/x11/kdelibs4/work/kdelibs-4.3.5/kio/bookmarks/kbookmark.cc:515:
 > error
 > 
 > : incomplete type 'QDateTime' used in nested name specifier
 > 
 > *** Error code 1
 > 1 error
 > *** Error code 2
 > 1 error
 > *** Error code 2
 > 1 error
 > *** Error code 1
 > 
 > Stop in /usr/ports/x11/kdelibs4.
 > 
 > >How-To-Repeat:
 > 
 > >Fix:
 > I think cmake should check for presence of qt3 on the system and adjust
 > include dirs accordingly.
 > 
 
 
 Looks your /etc/make.conf polluted with include path override 
 (for example, CFLAGS = -O -pipe -I/usr/local/include) of incorrect qt3 installtion. 
 please deinstall/reinstall qt3 and try again
 
 
 -- 
 Dima "Red Fox" Panov @ Home | C73E 2B72 1FFD 61BD E206 1234 A626 76ED 93E3 B018
 Khabarovsk, Russia          | 2D30 2CCB 9984 130C 6F87 BAFC FB8B A09D D539 8F29
 KDE@FreeBSD Team | FreeBSD committer since 10.08.2009 | FreeBSD since Sept 1995
 Twitter.com:fluffy_khv | Skype:dima.panov | Jabber.org:fluffy.khv | ICQ:1745024
State-Changed-From-To: open->closed 
State-Changed-By: makc 
State-Changed-When: Wed Apr 28 15:51:28 UTC 2010 
State-Changed-Why:  
Can't repoduce this on my box. Come back with patches, until then close 
PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145195 
>Unformatted:
