Dear All,
Plz go through the make error and unable to install NCEPLIBS-g2c on centos 8. Plz find the error file.
ANy suggestion will hep a lot.
make
[ 0%] Building C object CMakeFiles/g2c.dir/src/cmplxpack.c.o
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:55:18: error: ‘G2C_SECTION1_ARRAY_LEN’ undeclared here (not in a function)
int section1[G2C_SECTION1_ARRAY_LEN]; /< Section 1 array. */
^~~~~~
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:132:15: error: ‘G2C_MAX_NAME’ undeclared here (not in a function); did you mean ‘G2C_MAX_MESSAGES’?
char path[G2C_MAX_NAME + 1]; /*< Path of the file. /
^~~~
G2C_MAX_MESSAGES
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:142:15: error: ‘G2C_MAX_GRIB_DESC_LEN’ undeclared here (not in a function); did you mean ‘G2C_MAGIC_HEADER_LEN’?
char desc[G2C_MAX_GRIB_DESC_LEN + 1];
^~~~~
G2C_MAGIC_HEADER_LEN
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:143:17: error: ‘G2C_MAX_GRIB_STATUS_LEN’ undeclared here (not in a function); did you mean ‘G2C_MAGIC_HEADER_LEN’?
char status[G2C_MAX_GRIB_STATUS_LEN + 1];
^~~~~~~
G2C_MAGIC_HEADER_LEN
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:144:15: error: ‘G2C_MAX_GRIB_CODE_LEN’ undeclared here (not in a function); did you mean ‘G2C_MAGIC_HEADER_LEN’?
char code[G2C_MAX_GRIB_CODE_LEN + 1];
^~~~~
G2C_MAGIC_HEADER_LEN
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:151:16: error: ‘G2C_MAX_GRIB_TITLE_LEN’ undeclared here (not in a function); did you mean ‘G2C_MAGIC_HEADER_LEN’?
char title[G2C_MAX_GRIB_TITLE_LEN + 1];
^~~~~~
G2C_MAGIC_HEADER_LEN
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:163:17: error: ‘G2C_MAX_NOAA_ABBREV_LEN’ undeclared here (not in a function); did you mean ‘G2C_MAGIC_HEADER_LEN’?
char abbrev[G2C_MAX_NOAA_ABBREV_LEN + 1]; /< NOAA abbreviation for this parameter. */
^~~~~~~
G2C_MAGIC_HEADER_LEN
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:169:8: error: redefinition of ‘struct gtemplate’
struct gtemplate
^~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29,
from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/supplibs/include/grib2.h:163:8: note: originally defined here
struct gtemplate {
^~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:197:26: error: conflicting types for ‘gtemplate’
typedef struct gtemplate gtemplate; /< Struct for GRIB template. /
^~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29,
from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/supplibs/include/grib2.h:179:26: note: previous declaration of ‘gtemplate’ was here
typedef struct gtemplate gtemplate;
^~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:205:12: error: conflicting types for ‘getdrstemplate’
gtemplate getdrstemplate(g2int number);
^~~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29,
from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/supplibs/include/grib2.h:230:19: note: previous declaration of ‘getdrstemplate’ was here
extern gtemplate getdrstemplate(g2int);
^~~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:206:12: error: conflicting types for ‘extdrstemplate’
gtemplate extdrstemplate(g2int number, g2int list);
^~~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29,
from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/supplibs/include/grib2.h:231:19: note: previous declaration of ‘extdrstemplate’ was here
extern gtemplate extdrstemplate(g2int,g2int );
^~~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:207:12: error: conflicting types for ‘getpdstemplate’
gtemplate getpdstemplate(g2int number);
^~~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29,
from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/supplibs/include/grib2.h:228:19: note: previous declaration of ‘getpdstemplate’ was here
extern gtemplate getpdstemplate(g2int);
^~~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:208:12: error: conflicting types for ‘extpdstemplate’
gtemplate extpdstemplate(g2int number, g2int list);
^~~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29,
from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/supplibs/include/grib2.h:229:19: note: previous declaration of ‘extpdstemplate’ was here
extern gtemplate extpdstemplate(g2int,g2int );
^~~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:209:12: error: conflicting types for ‘getgridtemplate’
gtemplate getgridtemplate(g2int number);
^~~~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29,
from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/supplibs/include/grib2.h:232:19: note: previous declaration of ‘getgridtemplate’ was here
extern gtemplate getgridtemplate(g2int);
^~~~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:210:12: error: conflicting types for ‘extgridtemplate’
gtemplate extgridtemplate(g2int number, g2int list);
^~~~~~~
In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29,
from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7:
/home/supplibs/include/grib2.h:233:19: note: previous declaration of ‘extgridtemplate’ was here
extern gtemplate extgridtemplate(g2int,g2int );
^~~~~~~
make[2]: [CMakeFiles/g2c.dir/build.make:76: CMakeFiles/g2c.dir/src/cmplxpack.c.o] Error 1
make[1]: [CMakeFiles/Makefile2:200: CMakeFiles/g2c.dir/all] Error 2
make: [Makefile:146: all] Error 2
(base) [root@localhost build]# make check install
make: *** No rule to make target 'check'. Stop.
Dear All, Plz go through the make error and unable to install NCEPLIBS-g2c on centos 8. Plz find the error file. ANy suggestion will hep a lot.
make [ 0%] Building C object CMakeFiles/g2c.dir/src/cmplxpack.c.o In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:55:18: error: ‘G2C_SECTION1_ARRAY_LEN’ undeclared here (not in a function) int section1[G2C_SECTION1_ARRAY_LEN]; /< Section 1 array. */ ^
~~~~~ /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:132:15: error: ‘G2C_MAX_NAME’ undeclared here (not in a function); did you mean ‘G2C_MAX_MESSAGES’? char path[G2C_MAX_NAME + 1]; /*< Path of the file. / ^~~~ G2C_MAX_MESSAGES /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:142:15: error: ‘G2C_MAX_GRIB_DESC_LEN’ undeclared here (not in a function); did you mean ‘G2C_MAGIC_HEADER_LEN’? char desc[G2C_MAX_GRIB_DESC_LEN + 1]; ^~~~~G2C_MAGIC_HEADER_LEN /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:143:17: error: ‘G2C_MAX_GRIB_STATUS_LEN’ undeclared here (not in a function); did you mean ‘G2C_MAGIC_HEADER_LEN’? char status[G2C_MAX_GRIB_STATUS_LEN + 1]; ^~~~~~~ G2C_MAGIC_HEADER_LEN /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:144:15: error: ‘G2C_MAX_GRIB_CODE_LEN’ undeclared here (not in a function); did you mean ‘G2C_MAGIC_HEADER_LEN’? char code[G2C_MAX_GRIB_CODE_LEN + 1]; ^~~~~G2C_MAGIC_HEADER_LEN /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:151:16: error: ‘G2C_MAX_GRIB_TITLE_LEN’ undeclared here (not in a function); did you mean ‘G2C_MAGIC_HEADER_LEN’? char title[G2C_MAX_GRIB_TITLE_LEN + 1]; ^~~~~~ G2C_MAGIC_HEADER_LEN /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:163:17: error: ‘G2C_MAX_NOAA_ABBREV_LEN’ undeclared here (not in a function); did you mean ‘G2C_MAGIC_HEADER_LEN’? char abbrev[G2C_MAX_NOAA_ABBREV_LEN + 1]; /< NOAA abbreviation for this parameter. */ ^~~~~~~ G2C_MAGIC_HEADER_LEN /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:169:8: error: redefinition of ‘struct gtemplate’ struct gtemplate ^~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29, from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/supplibs/include/grib2.h:163:8: note: originally defined here struct gtemplate { ^~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:197:26: error: conflicting types for ‘gtemplate’ typedef struct gtemplate gtemplate; /< Struct for GRIB template. / ^~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29, from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/supplibs/include/grib2.h:179:26: note: previous declaration of ‘gtemplate’ was here typedef struct gtemplate gtemplate; ^~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:205:12: error: conflicting types for ‘getdrstemplate’ gtemplate getdrstemplate(g2int number); ^~~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29, from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/supplibs/include/grib2.h:230:19: note: previous declaration of ‘getdrstemplate’ was here extern gtemplate getdrstemplate(g2int); ^~~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:206:12: error: conflicting types for ‘extdrstemplate’ gtemplate extdrstemplate(g2int number, g2int list); ^~~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29, from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/supplibs/include/grib2.h:231:19: note: previous declaration of ‘extdrstemplate’ was here extern gtemplate extdrstemplate(g2int,g2int ); ^~~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:207:12: error: conflicting types for ‘getpdstemplate’ gtemplate getpdstemplate(g2int number); ^~~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29, from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/supplibs/include/grib2.h:228:19: note: previous declaration of ‘getpdstemplate’ was here extern gtemplate getpdstemplate(g2int); ^~~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:208:12: error: conflicting types for ‘extpdstemplate’ gtemplate extpdstemplate(g2int number, g2int list); ^~~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29, from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/supplibs/include/grib2.h:229:19: note: previous declaration of ‘extpdstemplate’ was here extern gtemplate extpdstemplate(g2int,g2int ); ^~~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:209:12: error: conflicting types for ‘getgridtemplate’ gtemplate getgridtemplate(g2int number); ^~~~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29, from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/supplibs/include/grib2.h:232:19: note: previous declaration of ‘getgridtemplate’ was here extern gtemplate getgridtemplate(g2int); ^~~~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:210:12: error: conflicting types for ‘extgridtemplate’ gtemplate extgridtemplate(g2int number, g2int list); ^~~~~~~ In file included from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/grib2_int.h:29, from /home/drdinesh/Desktop/WRF-MET/UPP/UPP-Libs/NCEPLIBS-g2c-develop/src/cmplxpack.c:7: /home/supplibs/include/grib2.h:233:19: note: previous declaration of ‘extgridtemplate’ was here extern gtemplate extgridtemplate(g2int,g2int ); ^~~~~~~ make[2]: [CMakeFiles/g2c.dir/build.make:76: CMakeFiles/g2c.dir/src/cmplxpack.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:200: CMakeFiles/g2c.dir/all] Error 2 make: [Makefile:146: all] Error 2 (base) [root@localhost build]# make check install make: *** No rule to make target 'check'. Stop.Regards
Dr Dinesh Central University of Jammu, India