compile problem with Mac OS X 10.6 (64-bit)

Hi all,

I've got some problem in compiling hdf5 with MacOSX10.6 (snow leopard).
I ran a shell script:
export FC='gfortran -DDEC$=DEC_ -DMS$=MS_'
sudo ./configure --prefix=/usr/local/hdf5 --enable-fortran --enable-cxx
sudo make

Then, there are a lot of similar errors like this:
In file included from H5f90.h:23,
                 from H5f90kit.c:19:
H5f90proto.h:48: error: ‘H5_FC_FUNC_’ declared as function returning a
function
H5f90proto.h:48: warning: parameter names (without types) in function
declaration

My compilers are:
gcc: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
gfortran: GNU Fortran (GCC) 4.2.1 (Apple Inc. build 5646)

Is there any advice about this ? Thanks a lot.

Hiusuet

I guess you are using very old version of HDF5. Please use the latest 1.8.4-patch1.

Elena

···

On Mar 1, 2010, at 2:13 PM, HS Kung wrote:

Hi all,

I've got some problem in compiling hdf5 with MacOSX10.6 (snow leopard).
I ran a shell script:
export FC='gfortran -DDEC$=DEC_ -DMS$=MS_'
sudo ./configure --prefix=/usr/local/hdf5 --enable-fortran --enable-cxx
sudo make

Then, there are a lot of similar errors like this:
In file included from H5f90.h:23,
                 from H5f90kit.c:19:
H5f90proto.h:48: error: ‘H5_FC_FUNC_’ declared as function returning a function
H5f90proto.h:48: warning: parameter names (without types) in function declaration

My compilers are:
gcc: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
gfortran: GNU Fortran (GCC) 4.2.1 (Apple Inc. build 5646)

Is there any advice about this ? Thanks a lot.

Hiusuet

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Hi Elena,

Thanks for the advice. I'm using the latest 1.8.4-patch1, however, still had
the same problem. Would you mind telling me where I can find a successful
configuration using gfortran on MacOSX, so that I can try to run on my
macbook ? Thanks a lot!

Hiusuet

···

------------------------------

Message: 2
Date: Tue, 2 Mar 2010 12:45:57 -0600
From: Elena Pourmal <epourmal@hdfgroup.org>
To: Mailing list for users to discuss HDF issues with each other
       <hdf-forum@hdfgroup.org>
Subject: Re: [Hdf-forum] compile problem with Mac OS X 10.6 (64-bit)
Message-ID: <0F3E247B-FEB3-4D1E-A327-6ED68F4CB76F@hdfgroup.org>
Content-Type: text/plain; charset=windows-1252

I guess you are using very old version of HDF5. Please use the latest
1.8.4-patch1.

Elena
On Mar 1, 2010, at 2:13 PM, HS Kung wrote:

> Hi all,
>
> I've got some problem in compiling hdf5 with MacOSX10.6 (snow leopard).
> I ran a shell script:
> export FC='gfortran -DDEC$=DEC_ -DMS$=MS_'
> sudo ./configure --prefix=/usr/local/hdf5 --enable-fortran --enable-cxx
> sudo make
>
> Then, there are a lot of similar errors like this:
> In file included from H5f90.h:23,
> from H5f90kit.c:19:
> H5f90proto.h:48: error: ?H5_FC_FUNC_? declared as function returning a
function
> H5f90proto.h:48: warning: parameter names (without types) in function
declaration
>
> My compilers are:
> gcc: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
> gfortran: GNU Fortran (GCC) 4.2.1 (Apple Inc. build 5646)
>
> Is there any advice about this ? Thanks a lot.
>
> Hiusuet
>
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@hdfgroup.org
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Hi Hiusuet,

Hi Elena,

Thanks for the advice. I'm using the latest 1.8.4-patch1, however, still had the same problem. Would you mind telling me where I can find a successful configuration using gfortran on MacOSX, so that I can try to run on my macbook ? Thanks a lot!

  Hmm, I'm successfully using gfortran 4.4.2 from the "fink" repository to build on my MacBookPro running 10.6.2.

  Quincey

···

On Mar 4, 2010, at 2:11 PM, HS Kung wrote:

Hiusuet

------------------------------

Message: 2
Date: Tue, 2 Mar 2010 12:45:57 -0600
From: Elena Pourmal <epourmal@hdfgroup.org>
To: Mailing list for users to discuss HDF issues with each other
       <hdf-forum@hdfgroup.org>
Subject: Re: [Hdf-forum] compile problem with Mac OS X 10.6 (64-bit)
Message-ID: <0F3E247B-FEB3-4D1E-A327-6ED68F4CB76F@hdfgroup.org>
Content-Type: text/plain; charset=windows-1252

I guess you are using very old version of HDF5. Please use the latest 1.8.4-patch1.

Elena
On Mar 1, 2010, at 2:13 PM, HS Kung wrote:

> Hi all,
>
> I've got some problem in compiling hdf5 with MacOSX10.6 (snow leopard).
> I ran a shell script:
> export FC='gfortran -DDEC$=DEC_ -DMS$=MS_'
> sudo ./configure --prefix=/usr/local/hdf5 --enable-fortran --enable-cxx
> sudo make
>
> Then, there are a lot of similar errors like this:
> In file included from H5f90.h:23,
> from H5f90kit.c:19:
> H5f90proto.h:48: error: ?H5_FC_FUNC_? declared as function returning a function
> H5f90proto.h:48: warning: parameter names (without types) in function declaration
>
> My compilers are:
> gcc: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
> gfortran: GNU Fortran (GCC) 4.2.1 (Apple Inc. build 5646)
>
> Is there any advice about this ? Thanks a lot.
>
> Hiusuet
>
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@hdfgroup.org
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Hi,

I use gfortran on MacOSX Intel 10.5.8 (32-bit) and 10.6.2 (64-bit) without any problems.

Could you please try

FC=gfortran
export FC
./configure --enable-fortran --enable-cxx

(you shouldn't need -DDEC$=DEC_ -DMS$=MS_ flags, sorry I missed that in your first email)

Elena

···

On Mar 4, 2010, at 2:11 PM, HS Kung wrote:

Hi Elena,

Thanks for the advice. I'm using the latest 1.8.4-patch1, however, still had the same problem. Would you mind telling me where I can find a successful configuration using gfortran on MacOSX, so that I can try to run on my macbook ? Thanks a lot!

Hiusuet

------------------------------

Message: 2
Date: Tue, 2 Mar 2010 12:45:57 -0600
From: Elena Pourmal <epourmal@hdfgroup.org>
To: Mailing list for users to discuss HDF issues with each other
       <hdf-forum@hdfgroup.org>
Subject: Re: [Hdf-forum] compile problem with Mac OS X 10.6 (64-bit)
Message-ID: <0F3E247B-FEB3-4D1E-A327-6ED68F4CB76F@hdfgroup.org>
Content-Type: text/plain; charset=windows-1252

I guess you are using very old version of HDF5. Please use the latest 1.8.4-patch1.

Elena
On Mar 1, 2010, at 2:13 PM, HS Kung wrote:

> Hi all,
>
> I've got some problem in compiling hdf5 with MacOSX10.6 (snow leopard).
> I ran a shell script:
> export FC='gfortran -DDEC$=DEC_ -DMS$=MS_'
> sudo ./configure --prefix=/usr/local/hdf5 --enable-fortran --enable-cxx
> sudo make
>
> Then, there are a lot of similar errors like this:
> In file included from H5f90.h:23,
> from H5f90kit.c:19:
> H5f90proto.h:48: error: ?H5_FC_FUNC_? declared as function returning a function
> H5f90proto.h:48: warning: parameter names (without types) in function declaration
>
> My compilers are:
> gcc: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
> gfortran: GNU Fortran (GCC) 4.2.1 (Apple Inc. build 5646)
>
> Is there any advice about this ? Thanks a lot.
>
> Hiusuet
>
>
>
> _______________________________________________
> Hdf-forum is for HDF software users discussion.
> Hdf-forum@hdfgroup.org
> http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org