Closed dimkr closed 3 years ago
gcc -dumpversion
returns 9 or 10, not 9.3.0 or 10.2.1:
+ HAVE_CC_VER 9.2
+ MT_VN0=9
+ MT_VN1=
+ MT_VN0=9
+ MT_VN1=
+ MT_VN1=
+ '[' 9 -eq 9 ']'
+ '[' 2 -le '' ']'
configure: line 389: [: : integer expression expected
+ '[' 9 -lt 9 ']'
+ exit 0
Thanks for making me aware of this particular type of GCC misconfiguration. :) Naturally an intentional compatibility break (--with-gcc-major-version-only) does not crop up in GCC packages for Slackware.
Thank you wjaguar, for your great work and dedication.
(I've fixed this issue in https://github.com/wjaguar/mtPaint/pull/48.)
I put a slightly shorter fix into 3.50.04
Could berelated to this change in GCC 10, from https://gcc.gnu.org/gcc-10/porting_to.html:EDIT: -fcommon works around this build failure.
EDIT: I see that configure tries to deal with GCC 10, but: