[GRASS5] Fw: [DebianGIS-dev] Bug#336498: grass: broken macro
LOC_CHECK_VERSION (also FTBFS on GNU/FreeBSD)
Francesco P. Lovergine
frankie at debian.org
Fri Nov 4 12:17:02 UTC 2005
On Fri, Nov 04, 2005 at 12:36:38AM +0200, Wolf Bergenheim wrote:
> On 03/11/05 16:57, Markus Neteler wrote:
> > Does anyone know how to modify 'configure.in' for this problem?
> >
>
> LOC_CHECK_VERSION does 2 tests. First it tries to compile this program:
> #include "confdefs.h"
>
> #include <stdio.h>
> #include <proj_api.h>
> int main(void) {
> FILE *fp = fopen("conftestdata","w");
> fputs(PJ_VERSION, fp);
> return 0;
> }
>
> Since PJ_VERSION is defined to be 449 or some similar number this will
> produce a compiler warning. -Werror will make gcc act as if warning are
> errors ==> compilation fails and this is never run. The macro then tries
> to build this program:
>
Someone could ask WHY someone would write an int using fputs(), BTW.
445 is not "445"...
--
Francesco P. Lovergine
More information about the Pkg-grass-devel
mailing list