[sane-devel] sane-backends fail to build on Linux/hppa

Henning Meier-Geinitz henning@meier-geinitz.de
Sun, 24 Mar 2002 21:30:39 +0100


Hi,

On Sun, Mar 24, 2002 at 07:18:49PM +0100, Petter Reinholdtsen wrote:
> 
> Checking the Debian autobuilder logs, I discovered that sane-backends
> fail to build on Linux/hppa.  The error message seem to be related to
> the inclusion of <asm/io.h>.  Apparently <sys/io.h> is missing bug
> <asm/io.h> is present and useless.

As this is in sanei/sanei_ab306.c I guess it's up to me :-/
This fallback is used in quite some other files and seem to "work"
everywhere else. However, I have no idea for which system it's
necessary. My Linux system seems to have sys/io.h. Maybe pre-glibc2
systems?

> It do not seem like a god idea to use <asm/io.h> as a fallback.
> Anyone know how to solve this?

> gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
>   -DPATH_SANE_CONFIG_DIR=/etc/sane.d
>   -DPATH_SANE_DATA_DIR=/usr/share/sane -DV_MAJOR=1 -DV_MINOR=0 -O2 -g
>   sanei_ab306.c -fPIC -DPIC -o .libs/sanei_ab306.lo
> In file included from /usr/include/asm/processor.h:14,
>                  from /usr/include/asm/pgtable.h:12,
>                  from /usr/include/asm/io.h:14,
>                  from sanei_ab306.c:55:
> /usr/include/asm/hardware.h:76: parse error before "nothing"

[...]

I don't have this header, but isn't this a bug in the header file?
Or are the asm files kernel headers and should never be included?

This Debian build page is very interesting anyway.
Another failed build was on Alpha:
scanimage.c:1564: incompatible type for argument 2 of vprintf'
This is fixed in CVS.

Yet another one is on MIPS:

checking host system type... ./config.guess: 1: command not found
./config.guess: unable to guess system type This script, last modified
2001-12-13, has failed to recognize
the operating system you are using. It is advised that you
[...]

Looks suspicious. Or does this really mean, that Linux/Mips wasn't
known by this version of config.guess. I'm just nervous beacuse of the
"1: command not found".

Bye,
  Henning

Bye,
  Henning