CMAQ5.3 MCIP compiling error

Hello,
I find the error when I was compiling MCIP, please help me to figure it out if you know it.

The makefile:
FFLAGS = -O3 -I$(NETCDF_DIR)/include -I$(IOAPI_ROOT)/ioapi/fixed_src
LIBS = -L$(IOAPI_ROOT)/Linux2_x86_64gfort -lioapi
-L$(NETCDF_DIR)/lib -lnetcdff -lnetcdf -lgomp

Thanks.

******* netcdff -lnetcdf -lgomp

/home/jliu/LIBRARIES/netcdf/lib/libnetcdff.a(nf_nc4.o): In function `nf_def_var_chunking_’:

nf_nc4.f90:(.text+0x5ea2): undefined reference to `nc_def_var_chunking_ints’

/home/jliu/LIBRARIES/netcdf/lib/libnetcdff.a(nf_nc4.o): In function `nf_inq_var_chunking_’:

nf_nc4.f90:(.text+0x61bf): undefined reference to `nc_inq_var_chunking_ints’

/home/jliu/LIBRARIES/netcdf/lib/libnetcdff.a(nf_nc4.o): In function `nf_set_chunk_cache_’:

nf_nc4.f90:(.text+0x6c0f): undefined reference to `nc_set_chunk_cache_ints’

/home/jliu/LIBRARIES/netcdf/lib/libnetcdff.a(nf_nc4.o): In function `nf_get_chunk_cache_’:

nf_nc4.f90:(.text+0x6c48): undefined reference to `nc_get_chunk_cache_ints’

/home/jliu/LIBRARIES/netcdf/lib/libnetcdff.a(nf_nc4.o): In function `nf_set_var_chunk_cache_’:

nf_nc4.f90:(.text+0x6cdc): undefined reference to `nc_set_var_chunk_cache_ints’

/home/jliu/LIBRARIES/netcdf/lib/libnetcdff.a(nf_nc4.o): In function `nf_get_var_chunk_cache_’:

nf_nc4.f90:(.text+0x6d37): undefined reference to `nc_get_var_chunk_cache_ints’

collect2: error: ld returned 1 exit status

make[1]: *** [mcip.exe] Error 1

make[1]: Leaving directory `/jwork/jliu/WRF_CMAQ/CMAQ53/PREP/mcip/src’

This may be a netCDF-4.7 bug. This looks like libnetcdf.a has been configured using the flag
--disable-netcdf4
while libnetcdff.a has not. “net.rumor” says that this is a bug in this particular version of netCDF.
netCDF (both C and Fortran) is known to work correctly; perhaps you should try that.

Thanks, I wil look at it

Oops – the known-=to-work version – 4.4 – somehow got lost here.