Fwd from the DebianGIS mailing list. --HB
==============================================================
Begin forwarded message:
Date: Fri, 4 Nov 2005 13:17:02 +0100
From: "Francesco P. Lovergine" <frankie@debian.org>
To: pkg-grass-devel@lists.alioth.debian.org
Subject: Re: [GRASS5] Fw: [DebianGIS-dev] Bug#336498: grass: broken macro LOC_CHECK_VERSION (also FTBFS on GNU/FreeBSD)
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
_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel