Airs2m3 error 2 while compiling ioapi3.2

Hello,

I am trying to compile m3tools of ioapi 3.2. I have successfully installed ioapi by following Availability/Download of the BAMS/Models-3 I/O API (note: for the netcdf4.7.4, I added **-DIOAPI_NCF4=1 either to the ARCHFLAGS of Makeinclude.Linux file ).

But when I try to ‘make’ in m3tools, it is giving me following error :
[root@adeq m3tools]# make
cd /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3; pgf90 /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/airs2m3.o -L/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3 -lioapi -lnetcdff -lnetcdf -o airs2m3

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:340: undefined reference to nf_put_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:350: undefined reference to nf_put_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crtfil3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:360: more undefined references to nf_put_att_int__' follow /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crtfil3.o): In function crtfil3_’:
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:400: undefined reference to nf_put_att_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:410: undefined reference to nf_put_att_double__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:420: undefined reference to nf_put_att_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:430: undefined reference to nf_put_att_double__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:440: undefined reference to nf_put_att_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crtfil3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:450: more undefined references to nf_put_att_double__’ follow
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crtfil3.o): In function crtfil3_': /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:489: undefined reference to nf_put_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:499: undefined reference to nf_put_att_real__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:510: undefined reference to nf_put_att_real__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:523: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:532: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:542: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:552: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:561: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:592: undefined reference to nf_def_dim__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:599: undefined reference to nf_def_dim__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:606: undefined reference to nf_def_dim__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:613: undefined reference to nf_def_dim__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:642: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:649: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:657: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:664: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:(.text+0x195f): undefined reference to nf_def_dim__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1020: undefined reference to nf_def_dim__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:676: undefined reference to nf_def_dim__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:693: undefined reference to nf_def_dim__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:719: undefined reference to nf_def_dim__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crtfil3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1027: more undefined references to nf_def_dim__' follow /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crtfil3.o): In function crtfil3_’:
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1045: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1057: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1064: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1071: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1078: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:735: undefined reference to nf_def_dim__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:744: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:754: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:770: undefined reference to nf_def_dim__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:777: undefined reference to nf_def_dim__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:786: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:796: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:803: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:841: undefined reference to nf_def_dim__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:932: undefined reference to nf_def_dim__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:810: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:817: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:824: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:848: undefined reference to nf_def_dim__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:939: undefined reference to nf_def_dim__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:857: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:951: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:867: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:963: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:874: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crtfil3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:881: more undefined references to nf_def_var__’ follow
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crtfil3.o): In function crtfil3_': /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1127: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1135: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1143: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1160: undefined reference to nf_put_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1170: undefined reference to nf_put_att_real__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1189: undefined reference to nf_enddef__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1210: undefined reference to nf_put_vara_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crtfil3.F90:1258: undefined reference to nf_sync__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(rdvars.o): In function rdvars_’:
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/rdvars.F90:344: undefined reference to nf_get_vara_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/rdvars.F90:310: undefined reference to nf_get_vara_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/rdvars.F90:312: undefined reference to nf_get_vara_real__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/rdvars.F90:314: undefined reference to nf_get_vara_double__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/rdvars.F90:316: undefined reference to nf_get_vara_int64__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/rdvars.F90:346: undefined reference to nf_get_vara_real__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/rdvars.F90:348: undefined reference to nf_get_vara_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/rdvars.F90:350: undefined reference to nf_get_vara_int64__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(wrtflag.o): In function wrtflag_': /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/wrtflag.F90:162: undefined reference to nf_put_vara_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function modatts3_iscmaq_': /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2054: undefined reference to nf_inq_attid__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function modatts3_getcmaq1_': /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2172: undefined reference to nf_get_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2178: undefined reference to nf_get_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2184: undefined reference to nf_get_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2190: undefined reference to nf_get_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2196: undefined reference to nf_get_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2202: undefined reference to nf_get_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2208: more undefined references to nf_get_att_text__’ follow
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function modatts3_getcmaq1_': /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2256: undefined reference to nf_get_att_real__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2262: undefined reference to nf_get_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2268: undefined reference to nf_get_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2274: undefined reference to nf_get_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2280: undefined reference to nf_get_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2286: undefined reference to nf_get_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2292: more undefined references to nf_get_att_int__’ follow
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function modatts3_getcmaq1_': /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2310: undefined reference to nf_get_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2316: undefined reference to nf_get_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2322: undefined reference to nf_get_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2328: undefined reference to nf_get_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2334: undefined reference to nf_get_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2340: more undefined references to nf_get_att_text__' follow /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function modatts3_getcmaq1_’:
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2502: undefined reference to nf_get_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2508: undefined reference to nf_get_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2514: undefined reference to nf_get_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2520: undefined reference to nf_get_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2526: undefined reference to nf_get_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:2532: more undefined references to nf_get_att_int__’ follow
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function modatts3_setcmaq2_': /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3673: undefined reference to nf_redef__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3682: undefined reference to nf_put_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3689: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3696: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3703: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3710: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3717: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3724: more undefined references to nf_put_att_text__' follow /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function modatts3_setcmaq2_’:
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3778: undefined reference to nf_put_att_real__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3785: undefined reference to nf_put_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3792: undefined reference to nf_put_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3799: undefined reference to nf_put_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3806: undefined reference to nf_put_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3813: undefined reference to nf_put_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3820: more undefined references to nf_put_att_int__' follow /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function modatts3_setcmaq2_’:
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3841: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3848: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3855: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3862: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3869: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3876: more undefined references to nf_put_att_text__’ follow
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function modatts3_setcmaq2_': /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4065: undefined reference to nf_put_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4072: undefined reference to nf_put_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4079: undefined reference to nf_put_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4086: undefined reference to nf_put_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4093: undefined reference to nf_put_att_int__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4100: more undefined references to nf_put_att_int__' follow /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function modatts3_setcmaq2_’:
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4204: undefined reference to nf_enddef__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function modatts3_setmtext_’:
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5432: undefined reference to nf_redef__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5442: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5452: undefined reference to nf_enddef__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function modatts3_setcf1_’:
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5644: undefined reference to nf_redef__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5659: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5669: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5694: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5711: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6234: undefined reference to nf_inq_dimid__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6059: undefined reference to nf_inq_dimid__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5803: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5812: undefined reference to nf_put_att_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5865: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5874: undefined reference to nf_put_att_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5927: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1bb23): undefined reference to nf_put_att_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6001: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6070: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6010: undefined reference to nf_put_att_double__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6019: undefined reference to nf_put_att_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6242: undefined reference to nf_inq_dimid__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1be38): undefined reference to nf_put_att_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6078: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5821: undefined reference to nf_put_att_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5883: undefined reference to nf_put_att_double__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6252: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c0ce): undefined reference to nf_put_att_double__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c130): undefined reference to nf_put_att_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c201): undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c263): undefined reference to nf_put_att_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c2dd): undefined reference to nf_put_att_double__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6270: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6279: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c475): undefined reference to nf_put_att_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c4d2): undefined reference to nf_put_att_double__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c578): undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6288: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c6fd): undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c78f): undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6297: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6308: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6315: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6324: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6333: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6342: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6351: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6364: undefined reference to nf_enddef__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6383: undefined reference to nf_put_vara_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6399: undefined reference to nf_put_vara_double__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6415: undefined reference to nf_put_vara_double__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crdict3.o): In function crdict3_’:
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:78: undefined reference to nf_def_dim__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:89: undefined reference to nf_def_dim__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:100: undefined reference to nf_def_dim__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:115: undefined reference to nf_def_dim__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:126: undefined reference to nf_def_dim__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crdict3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:137: more undefined references to nf_def_dim__’ follow
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crdict3.o): In function crdict3_': /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:153: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:164: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:175: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:298: undefined reference to nf_put_att_int__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:309: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:328: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:(.text+0x11e3): undefined reference to nf_abort__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:343: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:343: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:343: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:343: undefined reference to nf_def_var__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:343: undefined reference to nf_def_var__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crdict3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:343: more undefined references to nf_def_var__’ follow
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crdict3.o): In function crdict3_': /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:483: undefined reference to nf_put_att_text__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:494: undefined reference to nf_put_att_text__' /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:510: undefined reference to nf_enddef__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(rdatt3.o): In function _master___rdatt3___': pgf90egdKmnsGP8-X.ll:(.text+0x491): undefined reference to nf_inq_att__’
pgf90egdKmnsGP8-X.ll:(.text+0x77a): undefined reference to nf_get_att_text__' pgf90egdKmnsGP8-X.ll:(.text+0x7d6): undefined reference to nf_get_att_int__’
pgf90egdKmnsGP8-X.ll:(.text+0x7f3): undefined reference to nf_get_att_double__' pgf90egdKmnsGP8-X.ll:(.text+0x810): undefined reference to nf_get_att_real__’
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(wratt3.o): In function _master___wratt3___': pgf90TbeKh9E9yCOl.ll:(.text+0x44d): undefined reference to nf_redef__’
pgf90TbeKh9E9yCOl.ll:(.text+0x89b): undefined reference to nf_put_att_text__' pgf90TbeKh9E9yCOl.ll:(.text+0x8c3): undefined reference to nf_put_att_int__’
pgf90TbeKh9E9yCOl.ll:(.text+0x8eb): undefined reference to nf_put_att_real__' pgf90TbeKh9E9yCOl.ll:(.text+0x913): undefined reference to nf_put_att_double__’
pgf90TbeKh9E9yCOl.ll:(.text+0xb9f): undefined reference to `nf_enddef__’
make: *** [airs2m3] Error 2

I found a topic related to this at Airs2m3 compiling error / ioapi-3.2 - #4 by cjcoats
But couldn’t understand the solution.

Please help

Where did your libnetcdff.a come from?

See https://cjcoats.github.io/ioapi/ERRORS.html#pgi and also https://cjcoats.github.io/ioapi/AVAIL.html#build:
8> . Acquire and build the netCDF library, libnetcdf.a (and libnetcdff.a for netCDF-4.1 or later), for each configuration. The netCDF home page is Unidata | NetCDF For each configuration,copy or link the resulting libnetcdf.a (and libnetcdff.a, if you’re building netCDF version 4.1 or later) to the appropriate object directory BASEDIR/{BIN}.

Vendor supplied netCDF libraries frequently cause problems, in part because they are compiled with compilers that are not link-compatible with the Fortran compilers used by the I/O API and the various models (CMAQ, SMOKE, etc.) that use it…

This strongly looks like a GNU-compiler libnetcdff.a being used with a Portland Group compiled everything else; as has been documented extensively elsewhere, vendor supplied libnetcdf* cause problems and almost certainly are not link compatible with non-GNU compilers.

What does the command nm libnetcdff.a | grep nf_put_att_int say – particularly in regards the number of trailing underscores? I’ll bet it’s not a perfect match with your error-messages…

Build your own netCDF using the compilers you’re using for the I/O API and your models.

Thank you for the reply. I built my own netcdf by using the following commands:

setenv CFLAGS -I/usr/local/hdf5-1.8.18/include
setenv LDFLAGS -L/usr/local/hdf5-1.8.18/lib
setenv FC pgf90
./configure --prefix=/usr/local/netcdf-4.7.4
make
make install

tar xvzf netcdf-fortran-4.5.3.tar.gz
cd netcdf-fortran-4.5.3
setenv CPPFLAGS -I/usr/local/netcdf-4.7.4/include
setenv LDFLAGS -L/usr/local/netcdf-4.7.4/lib
setenv LD_LIBRARY_PATH /usr/local/netcdf-4.7.4/lib
setenv FC pgf90
./configure --prefix=/usr/local/netcdf-4.7.4
make
make install

Then I copied the libnetcdf.a & libnetcdff.a in the BASEDIR/BIN directory of ioapi.
The output of nm libnetcdff.a | grep nf_put_att_int is following :

0000000000000060 r .C284_nf_put_att_int_
0000000000000030 r .C284_nf_put_att_int1_
0000000000000048 r .C284_nf_put_att_int2_
0000000000000078 r .C284_nf_put_att_int64_
0000000000000070 r .C286_nf_put_att_int_
0000000000000040 r .C286_nf_put_att_int1_
0000000000000058 r .C286_nf_put_att_int2_
0000000000000088 r .C286_nf_put_att_int64_
0000000000000068 r .C400_nf_put_att_int_
0000000000000080 r .C400_nf_put_att_int64_
0000000000000038 r .C403_nf_put_att_int1_
0000000000000050 r .C403_nf_put_att_int2_
00000000000009c0 T nf_put_att_int_
00000000000004e0 T nf_put_att_int1_
0000000000000750 T nf_put_att_int2_
0000000000000c20 T nf_put_att_int64_
U nf_put_att_int_
U nf_put_att_int1_
U nf_put_att_int2_
U nf_put_att_int64_

Please help

OK: this is a PGI-compiler-configuration problem: your library uses single trailing underscores for nf_put_att_int__ etc., whereas in the I/O API compile pgf90 is generating double trailing underscores.
[There are various Makeinclude.pg to go with various C-compiler choices…]

You need to make sure that your ioapi/Makeinclude.$BIN has the following, so that pgf90 does not generate double trailing underscores:

FOPTFLAGS = -O2 -V -Mnosecond_underscore

1 Like

Thanks.
Looks like I successfully installed it (no error messages). I have changed following parameters while doing it:

  1. In Makeinclude.$BIN file , I added -DIOAPI_NCF4=1 to the ARCHFLAGS as i did not create my netcdf library with --disable-netcdf-4 --disable-dap.
  2. Used, FOPTFLAGS = -O2 -V -Mnosecond_underscore in ioapi/Makeinclude.$BIN

When I try to test the installation in cd tests/ folder, using the command csh ioapitest.csh {BIN} {BASEDIR}

I get error, BASEDIR = /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828 not found
But my installation BASEDIR is:
echo $BASEDIR
/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828

Am I missing anything?

Thanks in advance

That needs to be

ioapitest.csh ${BASEDIR} ${BIN}

Sorry, I missed that.

It’s working now.

Thank you very much

Hi @cjcoats
After successful installation of ioapi as mentioned above, I am trying to use the library to a software called camx2iopi.
It is giving me the following error:

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3862: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3869: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:3876: more undefined references to `nf_put_att_text_’ follow

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function `modatts3_setcmaq2_’:

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4065: undefined reference to `nf_put_att_int_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4072: undefined reference to `nf_put_att_int_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4079: undefined reference to `nf_put_att_int_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4086: undefined reference to `nf_put_att_int_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4093: undefined reference to `nf_put_att_int_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4100: more undefined references to `nf_put_att_int_’ follow

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function `modatts3_setcmaq2_’:

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:4204: undefined reference to `nf_enddef_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function `modatts3_setmtext_’:

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5432: undefined reference to `nf_redef_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5442: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5452: undefined reference to `nf_enddef_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(modatts3.o): In function `modatts3_setcf1_’:

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5644: undefined reference to `nf_redef_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5659: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5669: undefined reference to `nf_def_var_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5694: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5711: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6234: undefined reference to `nf_inq_dimid_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6059: undefined reference to `nf_inq_dimid_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5803: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5812: undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5865: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5874: undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5927: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1bb23): undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6001: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6070: undefined reference to `nf_def_var_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6010: undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6019: undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6242: undefined reference to `nf_inq_dimid_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1be38): undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6078: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5821: undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:5883: undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6252: undefined reference to `nf_def_var_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c0ce): undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c130): undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c201): undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c263): undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c2dd): undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6270: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6279: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c475): undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c4d2): undefined reference to `nf_put_att_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c578): undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6288: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c6fd): undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:(.text+0x1c78f): undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6297: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6308: undefined reference to `nf_def_var_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6315: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6324: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6333: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6342: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6351: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6364: undefined reference to `nf_enddef_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6383: undefined reference to `nf_put_vara_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6399: undefined reference to `nf_put_vara_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/modatts3.F90:6415: undefined reference to `nf_put_vara_double_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crdict3.o): In function `crdict3_’:

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:78: undefined reference to `nf_def_dim_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:89: undefined reference to `nf_def_dim_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:100: undefined reference to `nf_def_dim_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:115: undefined reference to `nf_def_dim_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:126: undefined reference to `nf_def_dim_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crdict3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:137: more undefined references to `nf_def_dim_’ follow

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crdict3.o): In function `crdict3_’:

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:153: undefined reference to `nf_def_var_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:164: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:175: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:298: undefined reference to `nf_put_att_int_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:309: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:328: undefined reference to `nf_def_var_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:(.text+0x11e3): undefined reference to `nf_abort_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:343: undefined reference to `nf_def_var_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:343: undefined reference to `nf_def_var_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:343: undefined reference to `nf_def_var_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:343: undefined reference to `nf_def_var_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:343: undefined reference to `nf_def_var_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crdict3.o):/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:343: more undefined references to `nf_def_var_’ follow

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(crdict3.o): In function `crdict3_’:

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:483: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:494: undefined reference to `nf_put_att_text_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/crdict3.f90:510: undefined reference to `nf_enddef_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(rdatt3.o): In function `master___rdatt3_’:

pgf90xILVfJ3FkAxs.ll:(.text+0x491): undefined reference to `nf_inq_att_’

pgf90xILVfJ3FkAxs.ll:(.text+0x77a): undefined reference to `nf_get_att_text_’

pgf90xILVfJ3FkAxs.ll:(.text+0x7d6): undefined reference to `nf_get_att_int_’

pgf90xILVfJ3FkAxs.ll:(.text+0x7f3): undefined reference to `nf_get_att_double_’

pgf90xILVfJ3FkAxs.ll:(.text+0x810): undefined reference to `nf_get_att_real_’

/root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3/libioapi.a(wratt3.o): In function `master___wratt3_’:

pgf90UuMVkVcxBui1.ll:(.text+0x44d): undefined reference to `nf_redef_’

pgf90UuMVkVcxBui1.ll:(.text+0x89b): undefined reference to `nf_put_att_text_’

pgf90UuMVkVcxBui1.ll:(.text+0x8c3): undefined reference to `nf_put_att_int_’

pgf90UuMVkVcxBui1.ll:(.text+0x8eb): undefined reference to `nf_put_att_real_’

pgf90UuMVkVcxBui1.ll:(.text+0x913): undefined reference to `nf_put_att_double_’

pgf90UuMVkVcxBui1.ll:(.text+0xb9f): undefined reference to `nf_enddef_’

make: *** [camx2ioapi] Error 2

Is it because I used FOPTFLAGS = -O2 -V -Mnosecond_underscore in ioapi/Makeinclude.$BIN?.\

Please help

No.

IIRC, camx2ioapi is from Environ, and their Makefile is still living in the NetCDF-3.x era. You need to change their link-flags from -lnetcdf to the -lnetcdff -lnetcdf that netCDF-4-requires.

FORUM NOTE: there should be no spaces between the “-” and the “lnet…” here; that space is a screw-up that the Forum-software insists on inserting. ;-(

1 Like

Great, It works.

Thanks a lot.