g++ --version g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39) uname -a Linux centos1907 3.10.0-957.27.2.el7.x86_64 #1 SMP Mon Jul 29 17:46:05 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux git clone https://github.com/dwcaress/MB-System.git cd MB-System/ git fetch --all --tags git checkout tags/5.7.6beta23 -b 5.7.6b23 CFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H" ./configure make make clean CFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H" ./configure --enable-mbtrn --enable-mbtnav make libtool: compile: g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../../src/mbio -g -O0 -I../../src/mbtrnav/trnw -I../../src/mbtrnav/utils -I../../src/mbtrnav/terrain-nav -I../../src/mbtrnav/qnx-utils -I../../src/mbtrnav/newmat -I../../src/mbtrnav/gctp/source -I../../src/mbtrn/mframe/src -I../../src/mbtrn/utils -DHAVE_CONFIG_H -DWITH_TESTS -DWITH_PDEBUG -DWITH_MMDEBUG -D_GNU_SOURCE -DWITH_MST_MSTATS -DMST_STATS_EN -g -O2 -MT terrain-nav/TerrainNav.lo -MD -MP -MF terrain-nav/.deps/TerrainNav.Tpo -c terrain-nav/TerrainNav.cpp -fPIC -DPIC -o terrain-nav/.libs/TerrainNav.o terrain-nav/TerrainNav.cpp: In member function ‘virtual void TerrainNav::estimatePose(poseT*, const int&)’: terrain-nav/TerrainNav.cpp:298:22: error: call of overloaded ‘isnan(double&)’ is ambiguous if(isnan(estimate->x) || isnan(estimate->y)){ ^ terrain-nav/TerrainNav.cpp:298:22: note: candidates are: In file included from /usr/include/features.h:375:0, from /usr/include/sys/stat.h:26, from terrain-nav/TerrainNav.cpp:12: /usr/include/bits/mathcalls.h:235:1: note: int isnan(double) __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); ^ In file included from terrain-nav/TerrainMap.h:12:0, from terrain-nav/TNavFilter.h:21, from terrain-nav/TerrainNav.h:25, from terrain-nav/TerrainNav.cpp:16: /usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double) isnan(long double __x) ^ /usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double) isnan(double __x) ^ /usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float) isnan(float __x) ^ terrain-nav/TerrainNav.cpp:298:44: error: call of overloaded ‘isnan(double&)’ is ambiguous if(isnan(estimate->x) || isnan(estimate->y)){ ^ terrain-nav/TerrainNav.cpp:298:44: note: candidates are: In file included from /usr/include/features.h:375:0, from /usr/include/sys/stat.h:26, from terrain-nav/TerrainNav.cpp:12: /usr/include/bits/mathcalls.h:235:1: note: int isnan(double) __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); ^ In file included from terrain-nav/TerrainMap.h:12:0, from terrain-nav/TNavFilter.h:21, from terrain-nav/TerrainNav.h:25, from terrain-nav/TerrainNav.cpp:16: /usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double) isnan(long double __x) ^ /usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double) isnan(double __x) ^ /usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float) isnan(float __x) ^ terrain-nav/TerrainNav.cpp: In member function ‘void TerrainNav::checkRangeValidity(measT&)’: terrain-nav/TerrainNav.cpp:989:31: error: call of overloaded ‘isnan(double&)’ is ambiguous if(isnan(currMeas.ranges[i]) || (currMeas.ranges[i] >= MAX_RANGE) ^ terrain-nav/TerrainNav.cpp:989:31: note: candidates are: In file included from /usr/include/features.h:375:0, from /usr/include/sys/stat.h:26, from terrain-nav/TerrainNav.cpp:12: /usr/include/bits/mathcalls.h:235:1: note: int isnan(double) __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); ^ In file included from terrain-nav/TerrainMap.h:12:0, from terrain-nav/TNavFilter.h:21, from terrain-nav/TerrainNav.h:25, from terrain-nav/TerrainNav.cpp:16: /usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double) isnan(long double __x) ^ /usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double) isnan(double __x) ^ /usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float) isnan(float __x) ^ terrain-nav/TerrainNav.cpp:1017:31: error: call of overloaded ‘isnan(double&)’ is ambiguous if(isnan(currMeas.ranges[i]) || (currMeas.ranges[i] >= MAX_RANGE) ^ terrain-nav/TerrainNav.cpp:1017:31: note: candidates are: In file included from /usr/include/features.h:375:0, from /usr/include/sys/stat.h:26, from terrain-nav/TerrainNav.cpp:12: /usr/include/bits/mathcalls.h:235:1: note: int isnan(double) __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); ^ In file included from terrain-nav/TerrainMap.h:12:0, from terrain-nav/TNavFilter.h:21, from terrain-nav/TerrainNav.h:25, from terrain-nav/TerrainNav.cpp:16: /usr/include/c++/4.8.2/cmath:626:3: note: constexpr bool std::isnan(long double) isnan(long double __x) ^ /usr/include/c++/4.8.2/cmath:622:3: note: constexpr bool std::isnan(double) isnan(double __x) ^ /usr/include/c++/4.8.2/cmath:618:3: note: constexpr bool std::isnan(float) isnan(float __x) ^ make[2]: *** [terrain-nav/TerrainNav.lo] Error 1 make[2]: Leaving directory `/home/headley/test/git/MB-System/src/mbtrnav' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/headley/test/git/MB-System/src' make: *** [all-recursive] Error 1 Package versions: Name : gdal Version : 1.11.4 Release : 3.el7 Name : GMT Version : 5.4.4 Release : 3.el7 Name : fftw Version : 3.3.3 Release : 8.el7 Name : netcdf Version : 4.3.3.1 Release : 5.el7 Name : motif Version : 2.3.4 Release : 14.el7_5 Name : x11 Version : 1.6.7