From nobody@FreeBSD.org  Thu Jan 19 16:03:46 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DCEB316A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Jan 2006 16:03:45 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 00BA743D62
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Jan 2006 16:03:40 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k0JG3eWC074665
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Jan 2006 16:03:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k0JG3eZj074664;
	Thu, 19 Jan 2006 16:03:40 GMT
	(envelope-from nobody)
Message-Id: <200601191603.k0JG3eZj074664@www.freebsd.org>
Date: Thu, 19 Jan 2006 16:03:40 GMT
From: Chris Chou <m2chrischou@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: multimedia/kdemultimedia3 compilation failure when prozilla is installed
X-Send-Pr-Version: www-2.3

>Number:         92002
>Category:       ports
>Synopsis:       multimedia/kdemultimedia3 compilation failure when prozilla is installed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 19 16:10:09 GMT 2006
>Closed-Date:    Fri Jan 20 22:11:37 GMT 2006
>Last-Modified:  Fri Jan 20 22:11:37 GMT 2006
>Originator:     Chris Chou
>Release:        FreeBSD 6.0 i386
>Organization:
Sun Yat-sen University
>Environment:
FreeBSD www.kapv.com 6.0-STABLE FreeBSD 6.0-STABLE #3: Thu Jan 19 14:02:26 CST 2006     chris@www.kapv.com:/home/obj/home/src/sys/CHRIS  i386
>Description:
Port 'multimedia/kdemultimedia3' is failed to compile when prozilla is already installed. Following is the compilation output:

if /bin/sh ../libtool --silent --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -I/usr/local/include/arts -I/usr/local/include -I/usr/X11R6/include  -I/usr/local/include  -D_THREAD_SAFE -pthread -DQT_THREAD_SUPPORT   -I/usr/local/include -I/usr/local/include  -I/usr/X11R6/include -D_GETOPT_H -D_THREAD_SAFE   -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -fno-strict-aliasing -pipe -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT akodearts.lo -MD -MP -MF ".deps/akodearts.Tpo" -c -o akodearts.lo akodearts.cc; \
then mv -f ".deps/akodearts.Tpo" ".deps/akodearts.Plo"; else rm -f ".deps/akodearts.Tpo"; exit 1; fi
In file included from akodearts.h:6,
                 from akodearts.cc:3:
/usr/local/include/common.h:33:5: warning: "HAVE_STDIO_H" is not defined
/usr/local/include/common.h:59:5: warning: "HAVE_CTYPE_H" is not defined
/usr/local/include/common.h:63:5: warning: "HAVE_ERRNO_H" is not defined
/usr/local/include/common.h:75:5: warning: "HAVE_SYS_SOCKET_H" is not defined
/usr/local/include/common.h:79:5: warning: "HAVE_NETINET_IN_H" is not defined
/usr/local/include/common.h:94:5: warning: "HAVE_ARPA_INET_H" is not defined
/usr/local/include/common.h:98:5: warning: "HAVE_NETDB_H" is not defined
/usr/local/include/common.h:117:5: warning: "HAVE_ASSERT_H" is not defined
/usr/local/include/common.h:121:5: warning: "HAVE_PWD_H" is not defined
In file included from /usr/local/include/arts/kmedia2.h:11,
                 from akodearts.h:11,
                 from akodearts.cc:3:
/usr/local/include/arts/artsflow.h:15: error: expected class-name before '{' token
/usr/local/include/arts/artsflow.h:18: error: expected unqualified-id before '&' token
/usr/local/include/arts/artsflow.h:18: error: expected `,' or `...' before '&' token
/usr/local/include/arts/artsflow.h:18: error: ISO C++ forbids declaration of `parameter' with no type

... (there is thousands lines skipped)




>How-To-Repeat:
cd /usr/ports/ftp/prozilla
make install clean


cd /usr/ports/multimedia/kdemultimedia3
make install clean
>Fix:
The port 'ftp/prozilla' installs a c header file in '/usr/local/include' named 'common.h'. Unfortunately another port 'audio/arts' on which 'multimedia/kdemultimedia3' depends installs a c header file with the same name 'common.h' in '/usr/local/include/arts'.
And according to the screen output, the search sequence of include directories is '/usr/local/include', then '/usr/local/include/arts'. So it causes 'multimedia/kdemultimedia3' include incorrent header file 'common.h'.


It is easy to fix it for everyone understand the problem, but others not.

cd /usr/ports/ftp/prozilla
make deinstall

cd /usr/ports/multimedia/kdemultimedia3
make install clean

cd /usr/ports/ftp/prozilla
make install clean

Then everything is ok with 'ftp/prozilla' and 'multimedia/kdemultimedia3'


I hope some one, may be the port maintainers of prozilla or kde would give some patch.^_^


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kde 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Jan 19 16:12:15 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

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

From: Andy Fawcett <andy@athame.co.uk>
To: bug-followup@freebsd.org,
 m2chrischou@gmail.com
Cc:  
Subject: Re: ports/92002: multimedia/kdemultimedia3 compilation failure when prozilla is installed
Date: Thu, 19 Jan 2006 19:11:41 +0200

 MIME-Version: 1.0
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 Message-Id: <200601191911.42562.andy@athame.co.uk>
 
 looks like a prozilla bug, not a KDE one.
 
 At least on my system, several other ports install a "common.h" type 
 file, but all either rename it or place it in a deeper subdirectory.
 
 Some example ports are arts, gnokii, ffmpeg.
 
 "common.h" is, frankly, too common a name to be installed 
 in /usr/local/include
 
State-Changed-From-To: open->analyzed 
State-Changed-By: lofi 
State-Changed-When: Thu Jan 19 19:38:19 UTC 2006 
State-Changed-Why:  
Problem is that prozilla spams the base includedir with a header that really 
shouldn't be there. 

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

From: Michael Nottebrock <lofi@freebsd.org>
To: bug-followup@freebsd.org, m2chrischou@gmail.com
Cc: alejandro@varnet.biz
Subject: Re: ports/92002: multimedia/kdemultimedia3 compilation failure when
 prozilla is installed
Date: Thu, 19 Jan 2006 20:37:53 +0100

 I agree that prozilla should not install common.h into
 ${LOCALBASE}/include or perhaps not install it at all - after all,
 prozilla is an application and it's pretty unlikely there will ever be
 any software that will try to use that header.
 
 Prozilla maintainer is cc'd.

From: Alejandro Pulver <alejandro@varnet.biz>
To: Michael Nottebrock <lofi@freebsd.org>
Cc: bug-followup@freebsd.org, m2chrischou@gmail.com
Subject: Re: ports/92002: multimedia/kdemultimedia3 compilation failure when
 prozilla is installed
Date: Thu, 19 Jan 2006 17:21:20 -0300

 On Thu, 19 Jan 2006 20:37:53 +0100
 Michael Nottebrock <lofi@freebsd.org> wrote:
 
 > I agree that prozilla should not install common.h into
 > ${LOCALBASE}/include or perhaps not install it at all - after all,
 > prozilla is an application and it's pretty unlikely there will ever be
 > any software that will try to use that header.
 > 
 > Prozilla maintainer is cc'd.
 
 Hello,
 
 I have sent a PR which solves this for now (ports/92021).
 
 I will ask the author about renaming/using a subdirectory.
 
 Best Regards,
 Ale
State-Changed-From-To: analyzed->closed 
State-Changed-By: arved 
State-Changed-When: Fri Jan 20 22:11:01 UTC 2006 
State-Changed-Why:  
Alejandro's patch was committed, please try again after updating prozilla 

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