From owner-freebsd-ports@FreeBSD.ORG Wed Oct 3 17:35:57 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F9DC16A468 for ; Wed, 3 Oct 2007 17:35:57 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu (math.missouri.edu [128.206.184.200]) by mx1.freebsd.org (Postfix) with ESMTP id 0AEF013C48D for ; Wed, 3 Oct 2007 17:35:56 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from [128.206.184.213] (cauchy.math.missouri.edu [128.206.184.213]) by math.missouri.edu (8.13.1/8.13.1) with ESMTP id l93GtjkJ098368; Wed, 3 Oct 2007 11:55:45 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Message-ID: <4703C991.8060408@math.missouri.edu> Date: Wed, 03 Oct 2007 11:55:45 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.6) Gecko/20070930 SeaMonkey/1.1.4 MIME-Version: 1.0 To: Harald Servat References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88/4461/Wed Oct 3 03:50:48 2007 on math.missouri.edu X-Virus-Status: Clean Cc: freebsd-ports@freebsd.org Subject: Re: papi port, fortran issues X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2007 17:35:57 -0000 Harald Servat wrote: > Hello to everybody, > > recently I received an automated mail about a port I'm maintaining. Such > mail includes a full report (which is good in order to review the problems > ;) ) of the port build on amd64/freebsd7. > The program needs fortran compiler, and looking at the report, I see that > fortran compiler is installed, however the compiler name is gfortran42 (due > to the gcc package is 4.2 I think). As the configure of the ported program > does not look for gfortran42 explicitly (but looks for gfortran, g77, > fortran, xlf and so) it fails when trying to compile the fortran code. > > So two questions arise to my mind, > and which is the good way to solve this? Maybe should I look for > gfortran42 (and change it for every compiler version), or should gcc package > install a softlink from gfortran to gfortran42 --or the latest installed > version--? > why this doesn't happen on i386/freebsd7? > > Regards, I think adding a line to your Makefile like this might fix it: CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" F77="${F77}"