Ah, this error is much more subtle than the others. :) I believe this one is
caused by using the wrong version of the HDF5 library. You are probably
using version 1.8.2 and need something like version 1.6.2.
There were some updates to the HDF5 API when they did version 1.8.
Jay
On Wed, Sep 9, 2009 at 5:20 PM, Dimitry Ayzenberg
<dayzenbe_at_andrew.cmu.edu>wrote:
>
> So I think I have all the libraries and whatever else I need properly
> installed and linked. But when I run make I get an odd error that I have
> no idea how to fix. This is the full display when I do "make":
>
> dimitry_at_Phoenix:~/Desktop/Gadget-2.0.4/Gadget2$ sudo make
> mpicc -O3 -Wall -DPERIODIC -DUNEQUALSOFTENINGS -DPEANOHILBERT
> -DWALLCLOCK -DPMGRID=128 -DSYNCHRONIZATION -DHAVE_HDF5
> -I/usr/local/include -I/usr/local/include
> -I/home/dimitry/Desktop/hdf5-1.8.3/hdf5/include -c -o main.o main.c
> mpicc -O3 -Wall -DPERIODIC -DUNEQUALSOFTENINGS -DPEANOHILBERT
> -DWALLCLOCK -DPMGRID=128 -DSYNCHRONIZATION -DHAVE_HDF5
> -I/usr/local/include -I/usr/local/include
> -I/home/dimitry/Desktop/hdf5-1.8.3/hdf5/include -c -o run.o run.c
> run.c: In function ‘run’:
> run.c:102: warning: ignoring return value of ‘system’, declared with
> attribute warn_unused_result
> mpicc -O3 -Wall -DPERIODIC -DUNEQUALSOFTENINGS -DPEANOHILBERT
> -DWALLCLOCK -DPMGRID=128 -DSYNCHRONIZATION -DHAVE_HDF5
> -I/usr/local/include -I/usr/local/include
> -I/home/dimitry/Desktop/hdf5-1.8.3/hdf5/include -c -o predict.o
> predict.c
> mpicc -O3 -Wall -DPERIODIC -DUNEQUALSOFTENINGS -DPEANOHILBERT
> -DWALLCLOCK -DPMGRID=128 -DSYNCHRONIZATION -DHAVE_HDF5
> -I/usr/local/include -I/usr/local/include
> -I/home/dimitry/Desktop/hdf5-1.8.3/hdf5/include -c -o begrun.o begrun.c
> begrun.c: In function ‘read_parameter_file’:
> begrun.c:602: warning: ignoring return value of ‘fgets’, declared with
> attribute warn_unused_result
> begrun.c:653: warning: ignoring return value of ‘system’, declared with
> attribute warn_unused_result
> mpicc -O3 -Wall -DPERIODIC -DUNEQUALSOFTENINGS -DPEANOHILBERT
> -DWALLCLOCK -DPMGRID=128 -DSYNCHRONIZATION -DHAVE_HDF5
> -I/usr/local/include -I/usr/local/include
> -I/home/dimitry/Desktop/hdf5-1.8.3/hdf5/include -c -o endrun.o endrun.c
> mpicc -O3 -Wall -DPERIODIC -DUNEQUALSOFTENINGS -DPEANOHILBERT
> -DWALLCLOCK -DPMGRID=128 -DSYNCHRONIZATION -DHAVE_HDF5
> -I/usr/local/include -I/usr/local/include
> -I/home/dimitry/Desktop/hdf5-1.8.3/hdf5/include -c -o global.o global.c
> mpicc -O3 -Wall -DPERIODIC -DUNEQUALSOFTENINGS -DPEANOHILBERT
> -DWALLCLOCK -DPMGRID=128 -DSYNCHRONIZATION -DHAVE_HDF5
> -I/usr/local/include -I/usr/local/include
> -I/home/dimitry/Desktop/hdf5-1.8.3/hdf5/include -c -o timestep.o
> timestep.c
> mpicc -O3 -Wall -DPERIODIC -DUNEQUALSOFTENINGS -DPEANOHILBERT
> -DWALLCLOCK -DPMGRID=128 -DSYNCHRONIZATION -DHAVE_HDF5
> -I/usr/local/include -I/usr/local/include
> -I/home/dimitry/Desktop/hdf5-1.8.3/hdf5/include -c -o init.o init.c
> mpicc -O3 -Wall -DPERIODIC -DUNEQUALSOFTENINGS -DPEANOHILBERT
> -DWALLCLOCK -DPMGRID=128 -DSYNCHRONIZATION -DHAVE_HDF5
> -I/usr/local/include -I/usr/local/include
> -I/home/dimitry/Desktop/hdf5-1.8.3/hdf5/include -c -o restart.o
> restart.c
> restart.c: In function ‘restart’:
> restart.c:78: warning: ignoring return value of ‘system’, declared with
> attribute warn_unused_result
> mpicc -O3 -Wall -DPERIODIC -DUNEQUALSOFTENINGS -DPEANOHILBERT
> -DWALLCLOCK -DPMGRID=128 -DSYNCHRONIZATION -DHAVE_HDF5
> -I/usr/local/include -I/usr/local/include
> -I/home/dimitry/Desktop/hdf5-1.8.3/hdf5/include -c -o io.o io.c
> io.c: In function ‘write_file’:
> io.c:774: error: too few arguments to function ‘H5Gcreate2’
> io.c:781: error: too few arguments to function ‘H5Gcreate2’
> io.c:880: error: too few arguments to function ‘H5Dcreate2’
> io.c: In function ‘write_header_attributes_in_hdf5’:
> io.c:1005: error: too few arguments to function ‘H5Acreate2’
> io.c:1012: error: too few arguments to function ‘H5Acreate2’
> io.c:1019: error: too few arguments to function ‘H5Acreate2’
> io.c:1027: error: too few arguments to function ‘H5Acreate2’
> io.c:1033: error: too few arguments to function ‘H5Acreate2’
> io.c:1039: error: too few arguments to function ‘H5Acreate2’
> io.c:1045: error: too few arguments to function ‘H5Acreate2’
> io.c:1051: error: too few arguments to function ‘H5Acreate2’
> io.c:1057: error: too few arguments to function ‘H5Acreate2’
> io.c:1063: error: too few arguments to function ‘H5Acreate2’
> io.c:1069: error: too few arguments to function ‘H5Acreate2’
> io.c:1075: error: too few arguments to function ‘H5Acreate2’
> io.c:1081: error: too few arguments to function ‘H5Acreate2’
> io.c:1087: error: too few arguments to function ‘H5Acreate2’
> io.c:1093: error: too few arguments to function ‘H5Acreate2’
> io.c:1099: error: too few arguments to function ‘H5Acreate2’
> io.c:1108: error: too few arguments to function ‘H5Acreate2’
> make: *** [io.o] Error 1
>
> Can someone please help me?
> Thanks,
> Dimitry
>
>
>
>
> -----------------------------------------------------------
>
> If you wish to unsubscribe from this mailing, send mail to
> minimalist_at_MPA-Garching.MPG.de with a subject of: unsubscribe gadget-list
> A web-archive of this mailing list is available here:
> http://www.mpa-garching.mpg.de/gadget/gadget-list
>
Received on 2009-09-10 00:00:31