Hi George and Happy New Year to all subscribers! The issue described normally happens if you have multiple versions of gmp installed (not unlikely, especially with /usr/include [normally those shipped with the system] and /usr/local/include). I suggest to check where the correct header is and pass the directory when invoking the configure script, example: ./configure CPPFLAGS="-I/usr/local/include" Side note: As we try to keep the bug mailing list to bug reports I've adjusted the target to gnuobol-users. Simon Am 01.01.2020 um 10:45 schrieb George R Goffe: > Hi, > > Happy New Year!!! > > I'm trying to build gnucobol on my my system but I'm having troubles > getting past the GMP tests. "my" GMP is at 6.1.2. > > If you need more info about my system or want me to test changes, please > let me know. > > Best regards, > > George... > > > Here's the tail end of the build log: > > 684 configure: Checks for GMP ... > 685 checking gmp.h usability... yes > 686 checking gmp.h presence... yes > 687 checking for gmp.h... yes > 688 checking for __gmpz_init in -lgmp... yes > 689 checking matching GMP version... no (header: 5.0 / library: 6.1.2) > > > > The gmp.h file has been reworked as described in the gmp.h file: > > /* Definitions for GNU multiple precision functions. -*- mode: c -*- > > Copyright 1991, 1993, 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2003, > 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. > > This file is part of the GNU MP Library. > > The GNU MP Library is free software; you can redistribute it and/or modify > it under the terms of the GNU Lesser General Public License as published by > the Free Software Foundation; either version 3 of the License, or (at your > option) any later version. > > The GNU MP Library is distributed in the hope that it will be useful, but > WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY > or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public > License for more details. > > You should have received a copy of the GNU Lesser General Public License > along with the GNU MP Library. If not, see > http://www.gnu.org/licenses/. ; */ > > /* > * This gmp.h is a wrapper include file for the original gmp.h, which has > been > * renamed to gmp-<arch>.h. There are conflicts for the original gmp.h on > * multilib systems, which result from arch-specific configuration options. > * Please do not use the arch-specific file directly. > * > * Copyright (C) 2006 Red Hat, Inc. > * Thomas Woerner <twoerner@xxxxxxxxxx> > */ > > #ifdef gmp_wrapper_h > #error "gmp_wrapper_h should not be defined!" > #endif > #define gmp_wrapper_h > > #if defined(__arm__) > #include "gmp-arm.h" > #elif defined(__i386__) > #include "gmp-i386.h" > #elif defined(__ia64__) > #include "gmp-ia64.h" > #elif defined(__powerpc64__) > # if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ > #include "gmp-ppc64.h" > # else > #include "gmp-ppc64le.h" > # endif > #elif defined(__powerpc__) > # if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ > #include "gmp-ppc.h" > # else > #include "gmp-ppcle.h" > # endif > #elif defined(__s390x__) > #include "gmp-s390x.h" > #elif defined(__s390__) > #include "gmp-s390.h" > #elif defined(__x86_64__) > #include "gmp-x86_64.h" > #elif defined(__alpha__) > #include "gmp-alpha.h" > #elif defined(__sh__) > #include "gmp-sh.h" > #elif defined(__sparc__) && defined (__arch64__) > #include "gmp-sparc64.h" > #elif defined(__sparc__) > #include "gmp-sparc.h" > #elif defined(__aarch64__) > #include "gmp-aarch64.h" > #elif defined(__mips64) && defined(__MIPSEL__) > #include "gmp-mips64el.h" > #elif defined(__mips64) > #include "gmp-mips64.h" > #elif defined(__mips) && defined(__MIPSEL__) > #include "gmp-mipsel.h" > #elif defined(__mips) > #include "gmp-mips.h" > #elif defined(__riscv) > #if __riscv_xlen == 64 > #include "gmp-riscv64.h" > #else > #error "No support for riscv32" > #endif > #else > #error "The gmp-devel package is not usable with the architecture." > #endif > > #undef gmp_wrapper_h > > > Here's the last part of the gmp-x86_64.h file: > > > /* Major version number is the value of __GNU_MP__ too, above. */ > #define __GNU_MP_VERSION 6 > #define __GNU_MP_VERSION_MINOR 1 > #define __GNU_MP_VERSION_PATCHLEVEL 2 > #define __GNU_MP_RELEASE (__GNU_MP_VERSION * 10000 + > __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL) > > #define __GMP_H__ > #endif /* __GMP_H__ */ > > > >