Can't compile Firebird in Alpine Linux 3.11 -------------------------------------------
Key: CORE-6400 URL: http://tracker.firebirdsql.org/browse/CORE-6400 Project: Firebird Core Issue Type: Bug Components: Build Issues / Porting Affects Versions: 3.0.6 Environment: Alpine Linux v3.11 Reporter: Michele Locati I can't compile Firebird 3.0.6 on Alpine Linux 3.11. To reproduce, start a new Docker image with: docker run --rm -it alpine:3.11 sh Then run these commands: apk add curl g++ icu-dev libtool make ncurses-dev zlib-dev curl -L -o Firebird-3.0.6.33328-0.tar.bz2 https://github.com/FirebirdSQL/firebird/releases/download/R3_0_6/Firebird-3.0.6.33328-0.tar.bz2 tar xf Firebird-3.0.6.33328-0.tar.bz2 cd Firebird-3.0.6.33328-0 ./configure --with-builtin-tommath make The compilation stops with this error: g++ -I/Firebird-3.0.6.33328-0/src/include/gen -I/Firebird-3.0.6.33328-0/src/include -ggdb -DFB_SEND_FLAGS=MSG_NOSIGNAL -DLINUX -DAMD64 -pipe -MMD -fPIC -fmessage-length=0 -fno-delete-null-pointer-checks -O3 -fno-omit-frame-pointer -I/Firebird-3.0.6.33328-0/extern/libtommath -fno-rtti -std=gnu++03 -c /Firebird-3.0.6.33328-0/src/common/cvt.cpp -o /Firebird-3.0.6.33328-0/temp/Release/common/cvt.o /Firebird-3.0.6.33328-0/src/common/cvt.cpp: In function 'double CVT_get_double(const dsc*, ErrorFunction)': /Firebird-3.0.6.33328-0/src/common/cvt.cpp:1271:19: error: call of overloaded 'isinf(double&)' is ambiguous 1271 | if (isinf(value)) | ^ In file included from /usr/include/c++/9.3.0/math.h:36, from /Firebird-3.0.6.33328-0/src/common/../common/classes/FpeControl.h:32, from /Firebird-3.0.6.33328-0/src/common/cvt.cpp:54: /usr/include/c++/9.3.0/cmath:861:5: note: candidate: 'typename __gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__value, int>::__type std::isinf(_Tp) [with _Tp = double; typename __gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__value, int>::__type = int]' 861 | isinf(_Tp __f) | ^~~~~ In file included from /Firebird-3.0.6.33328-0/src/common/cvt.cpp:54: /Firebird-3.0.6.33328-0/src/common/../common/classes/FpeControl.h:228:13: note: candidate: 'bool isinf(F) [with F = double]' 228 | inline bool isinf(F x) | ^~~~~ make[3]: *** [make.rules:102: /Firebird-3.0.6.33328-0/temp/Release/common/cvt.o] Error 1 make[3]: Leaving directory '/Firebird-3.0.6.33328-0/gen' make[2]: *** [Makefile:187: master_process] Error 2 make[2]: Leaving directory '/Firebird-3.0.6.33328-0/gen' make[1]: *** [Makefile:66: firebird] Error 2 make[1]: Leaving directory '/Firebird-3.0.6.33328-0/gen' make: *** [Makefile:6: firebird] Error 2 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel