From owner-freebsd-ports@FreeBSD.ORG Thu Apr 15 23:48:37 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3117816A4D1 for ; Thu, 15 Apr 2004 23:48:37 -0700 (PDT) Received: from mail2.microsoft.com (mail2.microsoft.com [131.107.3.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 023BB43D54 for ; Thu, 15 Apr 2004 23:48:37 -0700 (PDT) (envelope-from dcook@windows.microsoft.com) Received: from INET-VRS-02.redmond.corp.microsoft.com ([157.54.8.110]) by mail2.microsoft.com with Microsoft SMTPSVC(6.0.3790.1041); Thu, 15 Apr 2004 23:48:41 -0700 Received: from 157.54.6.197 by INET-VRS-02.redmond.corp.microsoft.com (InterScan E-Mail VirusWall NT); Thu, 15 Apr 2004 23:48:35 -0700 Received: from RED-IMC-04.redmond.corp.microsoft.com ([157.54.2.168]) by INET-HUB-06.redmond.corp.microsoft.com with Microsoft SMTPSVC(6.0.3790.0); Thu, 15 Apr 2004 23:48:33 -0700 Received: from win-imc-02.wingroup.windeploy.ntdev.microsoft.com ([157.54.0.84]) by RED-IMC-04.redmond.corp.microsoft.com with Microsoft SMTPSVC(6.0.3790.0); Thu, 15 Apr 2004 23:48:20 -0700 Received: from WIN-MSG-10.wingroup.windeploy.ntdev.microsoft.com ([157.54.12.81]) by win-imc-02.wingroup.windeploy.ntdev.microsoft.com with Microsoft SMTPSVC(6.0.3790.1069); Thu, 15 Apr 2004 23:48:38 -0700 x-mimeole: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 15 Apr 2004 23:48:59 -0700 Message-ID: <91D7F2CEE3425A4A9D11311D09FCE2460864633B@WIN-MSG-10.wingroup.windeploy.ntdev.microsoft.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Solved: Error building XFree86 from ports thread-index: AcQjfuV6yAPm0DxqR82ubYzL6TpIzg== From: "Doug Cook" To: X-OriginalArrivalTime: 16 Apr 2004 06:48:38.0009 (UTC) FILETIME=[D89AC690:01C4237E] Subject: Solved: Error building XFree86 from ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2004 06:48:37 -0000 Seems to be a recurring issue (a couple of postings in the archives, but nothing particularly definitive), so here is the problem and the solution. Building XFree86-4 in ports, I ran into two different build problems. First, the build would fail with an error about file "GccWarningOptions" not found. GccWarningOptions was supposed to have been defined and replaced with actual GCC options like "-Wall", but it was undefined and therefore left on the GCC command line, so GCC tried to find the GccWarningOptions file... Patching the FreeBSD.cf file to fix this, I ran into additional trouble with FreeType -- GCC unable to find ft2build.h. I had to add /usr/local/include and /usr/local/include/freetype2 to the include path, and /usr/local/lib to the lib path, then things kindof worked. But at this point, I'm guessing it is more than a glitch in the makefile. To make the story a bit shorter, I had both imake and imake-4 installed, and they seemed to conflict. pkg_delete imake, then a "make deinstall install" in imake-4, and finally a make clean in XFree86-4, and all is well again. Perhaps imake-4 should refuse to install if imake is already installed? Thanks, Doug