[sane-devel] [Fwd: Sane-1.0.8 Compile Failure]

Henning Meier-Geinitz henning@meier-geinitz.de
Thu, 30 May 2002 21:53:37 +0200

On Thu, May 30, 2002 at 04:53:58PM +0100, Tim Waugh wrote:
> I'm using a GCC 3.1-compiled sane-backends here without any trouble at
> all.

The original problem seems to occur only when gcc-3.1's system include
di rectory is /usr/local/include and CPPFLAGS=-I/usr/local/include is
set. If CPPFLAGS is nor set, the problem didn't occur. We did add a
test for /usr/include  in tools/sane-config.in for a similar reason,
didn't we?

The following message was in the original posters's config.log file:

configure:1793: checking for ANSI C header files
configure:1806: /lib/cpp -I/usr/local/include -D_GNU_SOURCE conftest.c >/dev/null 2>conftest.out
cpp0: warning: changing search order for system directory "/usr/local/include"
cpp0: warning:   as it has already been specified as a non-system directory
configure: failed program was:
#line 1798 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>