ports/130760: science/netcdf: link problem with fortran library

Shin'ya Murakami murashin at gfd-dennou.org
Mon Jan 19 23:40:09 UTC 2009


>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 at 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:



More information about the freebsd-ports-bugs mailing list