NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[netcdfgroup] a compile error with netcdf-4.0.1

Hi

I met a compile error with netcdf-4.0.1

this is the configure used to compile netcdf source code
./configure --with-hdf5=/home/qiuxb/program/hdf5-1.8.3
--with-zlib=/home/qiuxb/program/zlib-1.2.3
--prefix=/home/qiuxb/program/netcdf-4.0.1 --disable-f90 --enable-netcdf-4
netcdf and hdf5 are both compiled by icc

this is the compile option for ifort
-L$(NETCDF_LIB) -lnetcdf _L$(HDF5_LIB) -lhdf5_hl -lhdf5 -lz

the error information is:
ifort -o `pwd`/rnc.x ./r.o -L/home/qiuxb/program/netcdf-4.0.1/lib -lnetcdf
_L/home/qiuxb/program/hdf5-1.8.3/lib -lhdf5_hl -lhdf5
-lz
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4var.o): In function
`nc_rename_var':

nc4var.c:(.text+0x7c51): undefined reference to
`H5Gmove'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4file.o): In function
`nc__open':
nc4file.c:(.text+0x883): undefined reference to
`H5Eset_auto1'
nc4file.c:(.text+0xa32): undefined reference to
`H5Pset_libver_bounds'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4file.o): In function
`nc_open':
nc4file.c:(.text+0xbd4): undefined reference to
`H5Eset_auto1'
nc4file.c:(.text+0xd81): undefined reference to
`H5Pset_libver_bounds'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4file.o): In function
`nc_open_par':

nc4file.c:(.text+0xf5e): undefined reference to
`H5Eset_auto1'
nc4file.c:(.text+0x110b): undefined reference to
`H5Pset_libver_bounds'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4file.o): In function
`nc__open_mp':

nc4file.c:(.text+0x12c4): undefined reference to
`H5Eset_auto1'
nc4file.c:(.text+0x146f): undefined reference to
`H5Pset_libver_bounds'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4file.o): In function
`nc_create_par':

nc4file.c:(.text+0x1655): undefined reference to
`H5Eset_auto1'
nc4file.c:(.text+0x17eb): undefined reference to
`H5Pset_libver_bounds'
nc4file.c:(.text+0x181c): undefined reference to
`H5Pset_link_creation_order'
nc4file.c:(.text+0x182d): undefined reference to
`H5Pset_attr_creation_order'
nc4file.c:(.text+0x1865): undefined reference to
`H5Gopen2'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4file.o): In function
`nc__create_mp':

nc4file.c:(.text+0x1963): undefined reference to
`H5Eset_auto1'
nc4file.c:(.text+0x1ae7): undefined reference to
`H5Pset_libver_bounds'
nc4file.c:(.text+0x1b15): undefined reference to
`H5Pset_link_creation_order'
nc4file.c:(.text+0x1b25): undefined reference to
`H5Pset_attr_creation_order'
nc4file.c:(.text+0x1b5d): undefined reference to
`H5Gopen2'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4file.o): In function
`nc__create':

nc4file.c:(.text+0x1c5e): undefined reference to
`H5Eset_auto1'
nc4file.c:(.text+0x1de4): undefined reference to
`H5Pset_libver_bounds'
nc4file.c:(.text+0x1e0e): undefined reference to
`H5Pset_link_creation_order'
nc4file.c:(.text+0x1e1e): undefined reference to
`H5Pset_attr_creation_order'
nc4file.c:(.text+0x1e54): undefined reference to
`H5Gopen2'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4file.o): In function
`nc_create':

nc4file.c:(.text+0x1f2f): undefined reference to
`H5Eset_auto1'
nc4file.c:(.text+0x20c5): undefined reference to
`H5Pset_libver_bounds'
nc4file.c:(.text+0x20f6): undefined reference to
`H5Pset_link_creation_order'
nc4file.c:(.text+0x2107): undefined reference to
`H5Pset_attr_creation_order'
nc4file.c:(.text+0x213f): undefined reference to
`H5Gopen2'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`nc4_open_var_grp':

nc4hdf.c:(.text+0xfd1): undefined reference to
`H5Dopen1'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`nc4_rec_read_metadata':

nc4hdf.c:(.text+0x1079): undefined reference to
`H5Gopen2'
nc4hdf.c:(.text+0x10f5): undefined reference to
`H5Oget_info_by_idx'
nc4hdf.c:(.text+0x1129): undefined reference to
`H5Lget_name_by_idx'
nc4hdf.c:(.text+0x116f): undefined reference to
`H5Lget_name_by_idx'
nc4hdf.c:(.text+0x1233): undefined reference to
`H5Gopen2'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`pg_att_grpa':

nc4hdf.c:(.text+0x1b6a): undefined reference to
`H5Acreate1'
nc4hdf.c:(.text+0x1f3c): undefined reference to
`H5Dopen1'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`read_type':
nc4hdf.c:(.text+0x1fef): undefined reference to
`H5Topen2'
nc4hdf.c:(.text+0x2569): undefined reference to
`H5Tget_array_dims1'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`read_dataset':

nc4hdf.c:(.text+0x25e8): undefined reference to
`H5Dopen1'
nc4hdf.c:(.text+0x2687): undefined reference to
`H5DSis_scale'
nc4hdf.c:(.text+0x277f): undefined reference to
`H5DSget_scale_name'
nc4hdf.c:(.text+0x2882): undefined reference to
`H5DSget_num_scales'
nc4hdf.c:(.text+0x2a65): undefined reference to
`H5Pget_filter2'
nc4hdf.c:(.text+0x2d68): undefined reference to
`H5DSiterate_scales'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`nc4_open_var_grp2':

nc4hdf.c:(.text+0x6e5a): undefined reference to
`H5Dopen1'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`nc4_rec_write_metadata':

nc4hdf.c:(.text+0x8bef): undefined reference to
`H5P_CLS_GROUP_CREATE_g'
nc4hdf.c:(.text+0x8c0a): undefined reference to
`H5Pset_link_creation_order'
nc4hdf.c:(.text+0x8c1a): undefined reference to
`H5Pset_attr_creation_order'
nc4hdf.c:(.text+0x8c38): undefined reference to
`H5Gcreate2'
nc4hdf.c:(.text+0x8f0b): undefined reference to
`H5Gopen2'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`commit_type':

nc4hdf.c:(.text+0x90a5): undefined reference to
`H5Tcommit1'
nc4hdf.c:(.text+0x917e): undefined reference to
`H5Tarray_create1'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`write_dim':
nc4hdf.c:(.text+0x972c): undefined reference to
`H5Pset_attr_creation_order'
nc4hdf.c:(.text+0x9754): undefined reference to
`H5Dcreate1'
nc4hdf.c:(.text+0x97ac): undefined reference to
`H5DSset_scale'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`write_var':
nc4hdf.c:(.text+0x9a91): undefined reference to `H5Oget_info_by_idx'
nc4hdf.c:(.text+0x9abe): undefined reference to `H5Lget_name_by_idx'
nc4hdf.c:(.text+0x9afc): undefined reference to `H5Lget_name_by_idx'
nc4hdf.c:(.text+0x9e26): undefined reference to `H5Pset_attr_creation_order'
nc4hdf.c:(.text+0x9e54): undefined reference to `H5Dcreate1'
nc4hdf.c:(.text+0x9e87): undefined reference to `H5DSset_scale'
nc4hdf.c:(.text+0xa008): undefined reference to `H5DSattach_scale'
nc4hdf.c:(.text+0xa1a3): undefined reference to `H5DSattach_scale'
nc4hdf.c:(.text+0xa236): undefined reference to `H5DSdetach_scale'
nc4hdf.c:(.text+0xa2f5): undefined reference to `H5DSdetach_scale'
nc4hdf.c:(.text+0xa8ee): undefined reference to `H5Acreate1'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`rec_reattach_scales':
nc4hdf.c:(.text+0xaa9d): undefined reference to `H5DSattach_scale'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`write_attlist':
nc4hdf.c:(.text+0xadf8): undefined reference to `H5Acreate1'
nc4hdf.c:(.text+0xaffd): undefined reference to `H5Dopen1'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`write_nc3_strict_att':
nc4hdf.c:(.text+0xb0fe): undefined reference to `H5Acreate1'
/home/qiuxb/program/netcdf-4.0.1/lib/libnetcdf.a(nc4hdf.o): In function
`attach_dimscales':
nc4hdf.c:(.text+0xb307): undefined reference to `H5DSattach_scale'
make: *** [`pwd`/rnc.x] Error 1

thanks a lot

brick
  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: