bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] Failure during configure


From: Simon Sobisch
Subject: Re: [open-cobol-list] Failure during configure
Date: Fri, 19 Feb 2016 21:10:13 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1


> ----------------------------------------------------------------------
> Date: Thu, 18 Feb 2016 16:09:05 -0000 (GMT)
> From: "Dave Stratford" <address@hidden>

> Content-Type: text/plain;charset=utf-8
> 
> Downloaded the 2.0 771 branch and trying to compile.
> 
> Fails at the configure stage:
> 
> 
> 
> configure: Checks for GMP ...
> checking gmp.h usability... yes
> checking gmp.h presence... yes
> checking for gmp.h... yes
> checking for __gmpz_init in -lgmp... yes
> configure: error: Unable to extract GMP version information from gmp.h
> 
> $ tail /usr/local/include/gmp.h
> #define __GMP_CFLAGS "-O2 -pedantic -fomit-frame-pointer -m64
> -mtune=nocona"
> 
> /* Major version number is the value of __GNU_MP__ too, above and in mp.h. */
> #define __GNU_MP_VERSION            6
> #define __GNU_MP_VERSION_MINOR      1
> #define __GNU_MP_VERSION_PATCHLEVEL 0
> #define __GNU_MP_RELEASE (__GNU_MP_VERSION * 10000 +
> __GNU_MP_VERSION_MINOR * 100 + __GNU_MP_VERSION_PATCHLEVEL)
> 
> #define __GMP_H__
> #endif /* __GMP_H__ */
> 
> 
> Any ideas please?
> 
> Many thanks,
> 
> Dave.
> 

Yes: I *guess* /usr/local is not a part of the standard your C compiler
uses. If this is the case you can fix this by doing the following:

  export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
  ./configure CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"

Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]