From owner-freebsd-ports@freebsd.org Mon May 30 19:01:23 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C8B59B54A8C for ; Mon, 30 May 2016 19:01:23 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B10CF1C9F for ; Mon, 30 May 2016 19:01:23 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id u4UJ1H07093068 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 30 May 2016 12:01:17 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id u4UJ1Hac093067 for freebsd-ports@freebsd.org; Mon, 30 May 2016 12:01:17 -0700 (PDT) (envelope-from sgk) Date: Mon, 30 May 2016 12:01:16 -0700 From: Steve Kargl To: freebsd-ports@freebsd.org Subject: science/hdf5 ABI broken Message-ID: <20160530190116.GA92928@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2016 19:01:23 -0000 The recent update from hdf5 1.8.16 to 1.10.0 has introduced an issue with ABI incompatibility. Thus, anyone that has code written to the 1.8.16 ABI may find that their code no longer functions with 1.10.0. This should have been noted in ports/UPDATING. To fix the problem (currently under testin), one needs to apply the following patches. Index: Makefile =================================================================== --- Makefile (revision 415194) +++ Makefile (working copy) @@ -23,7 +23,8 @@ CONFIGURE_ARGS= --enable-cxx \ --enable-hl \ --enable-instrument \ - --enable-strict-format-checks + --enable-strict-format-checks \ + --with-default-api-version=v18 GNU_CONFIGURE= yes INSTALL_TARGET= install-strip MAKE_JOBS_UNSAFE= yes --- work/hdf5-1.10.0/fortran/src/H5_f.c.orig 2016-05-30 11:51:55.838813000 -0700 +++ work/hdf5-1.10.0/fortran/src/H5_f.c 2016-05-30 11:52:46.901739000 -0700 @@ -227,14 +227,14 @@ /* * FIND H5T_NATIVE_REAL_C_LONG_DOUBLE */ -#if H5_FORTRAN_C_LONG_DOUBLE_IS_UNIQUE!=0 +#if FORTRAN_C_LONG_DOUBLE_IS_UNIQUE!=0 if (sizeof(real_C_LONG_DOUBLE_f) == sizeof(float)) { if ((types[12] = (hid_t_f)H5Tcopy(H5T_NATIVE_FLOAT)) < 0) return ret_value; } /*end if */ else if (sizeof(real_C_LONG_DOUBLE_f) == sizeof(double)) { if ((types[12] = (hid_t_f)H5Tcopy(H5T_NATIVE_DOUBLE)) < 0) return ret_value; } /*end if */ -# if H5_FORTRAN_HAVE_C_LONG_DOUBLE!=0 +# if FORTRAN_HAVE_C_LONG_DOUBLE!=0 else if (sizeof(real_C_LONG_DOUBLE_f) == sizeof(long double)) { if ( H5_PAC_C_MAX_REAL_PRECISION >= H5_PAC_FC_MAX_REAL_PRECISION) { if ((types[12] = (hid_t_f)H5Tcopy(H5T_NATIVE_LDOUBLE)) < 0) return ret_value; Please supply either a science/hdf5-1.8 port, revert the 1.10.0 update, or consider the above patches. -- Steve