Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2009 08:14:19 +0900 (JST)
From:      "Shin'ya Murakami" <murashin@gfd-dennou.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/130760: science/netcdf: link problem with fortran library
Message-ID:  <20090120.081419.209905640.murashinln@gmail.com>
Resent-Message-ID: <200901192340.n0JNe3M4063143@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         130760
>Category:       ports
>Synopsis:       science/netcdf: link problem with fortran library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 19 23:40:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Shin'ya Murakami
>Release:        FreeBSD 7.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD qgpv 7.1-STABLE FreeBSD 7.1-STABLE #1: Mon Jan 19 09:14:27 JST 2009 murashin@qgpv:/zpool0/obj/usr/src/sys/QGPV i386

>Description:
	'make regression-test' fails due to link problem with 
	fortran library. gfortran 4.3 need the flag -DpgiFortran 
	in CPPFLAGS instead of -Df2cFortran. see netcdf website 
	http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html#gfortran_43
	for reference.

>How-To-Repeat:
	N/A
>Fix:

--- netcdf.diff begins here ---
diff -urN /usr/ports/science/netcdf/Makefile netcdf/Makefile
--- /usr/ports/science/netcdf/Makefile	2009-01-20 08:03:25.000000000 +0900
+++ netcdf/Makefile	2009-01-20 08:05:07.000000000 +0900
@@ -7,7 +7,7 @@
 
 PORTNAME=	netcdf
 PORTVERSION=	3.6.3
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	science
 MASTER_SITES=	ftp://ftp.unidata.ucar.edu/pub/netcdf/	\
 		http://sunpoet.net/distfiles/
@@ -18,7 +18,7 @@
 CONFLICTS=	hdf-4.* netcdf-4.*
 
 CONFIGURE_ARGS=	--enable-shared
-CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran"
+CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -DpgiFortran"
 
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
--- netcdf.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090120.081419.209905640.murashinln>