Date: Thu, 2 May 2002 15:17:46 -0500 (CDT) From: Dan Nelson <dnelson@allantgroup.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: will@FreeBSD.org Subject: ports/37681: bsd.kde.mk should not add -I/usr/include Message-ID: <200205022017.g42KHkQb061186@dan.emsphone.com>
next in thread | raw e-mail | index | archive | help
>Number: 37681 >Category: ports >Synopsis: bsd.kde.mk should not add -I/usr/include >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 02 13:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Dan Nelson >Release: FreeBSD 5.0-CURRENT i386 >Organization: The Allant Group >Environment: System: FreeBSD dan.emsphone.com 5.0-CURRENT FreeBSD 5.0-CURRENT #162: Thu Apr 25 17:06:47 CDT 2002 dan@dan.emsphone.com:/usr/src/sys/i386/compile/DANSMP i386 >Description: bsd.kde.mk adds -I/usr/include to QTCPPFLAGS when there is no reason to. /usr/include is always in the compiler's path, so adding it doesn't usually hurt. The gcc* ports _don't_ want /usr/include first in the path, though, since they have painstakingly adjusted some files to match their requirements and put the corrected copies in /usr/local/lib/gcc-lib/OSVER/GCCVER/include/. For more info, see the gcc documentation (info gcc trouble interoperation ), and http://gcc.gnu.org/ml/gcc-bugs/2001-03/msg00914.html >How-To-Repeat: cd /usr/ports/any_port_using_kde make WITH_GCC30=yes and watch the compiler die trying to redefine the gcc3 internal wchar_t type. >Fix: Index: bsd.kde.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.kde.mk,v retrieving revision 1.11 diff -b -u -r1.11 bsd.kde.mk --- bsd.kde.mk 19 Apr 2002 02:29:28 -0000 1.11 +++ bsd.kde.mk 2 May 2002 19:56:02 -0000 @@ -93,7 +93,7 @@ BUILD_DEPENDS+= ${QT_PREFIX}/bin/moc:${PORTSDIR}/x11-toolkits/qt30 RUN_DEPENDS+= ${QT_PREFIX}/bin/moc:${PORTSDIR}/x11-toolkits/qt30 USE_NEWGCC= yes -QTCPPFLAGS+= -I/usr/include -I${LOCALBASE}/include -I${PREFIX}/include \ +QTCPPFLAGS+= -I${LOCALBASE}/include -I${PREFIX}/include \ -I${QT_PREFIX}/include/qt QTCFGLIBS+= -Wl,-export-dynamic -L${LOCALBASE}/lib -L${X11BASE}/lib -ljpeg \ -L${QT_PREFIX}/lib @@ -114,7 +114,7 @@ USE_NEWGCC= yes QTNAME= qt2 MOC?= ${X11BASE}/bin/moc2 -QTCPPFLAGS+= -I/usr/include -D_GETOPT_H -D_PTH_H_ -D_PTH_PTHREAD_H_ \ +QTCPPFLAGS+= -D_GETOPT_H -D_PTH_H_ -D_PTH_PTHREAD_H_ \ -I${LOCALBASE}/include -I${PREFIX}/include -I${X11BASE}/include/qt2 QTCFGLIBS+= -Wl,-export-dynamic -L${LOCALBASE}/lib -L${X11BASE}/lib -ljpeg -lgcc -lstdc++ .if !defined(QT_NONSTANDARD) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205022017.g42KHkQb061186>