[sane-devel] Compilation error on Compaq Tru64

Henning Meier-Geinitz henning@meier-geinitz.de
Wed, 13 Nov 2002 13:45:03 +0100


Hi,

I'm trying to compile sane-backends-1.0.9 on some of the HP test
machines (see http://testdrive.hp.com/). Until now, the tests were
rather successful. Compilation works on:

Linux 2.4/Alpha/gcc 2.95.4
Linux 2.4/IA64/gcc 2.96
FreeBSD 4.7/Alpha/gcc 2.95.4
NetBSD 1.6/Alpha/gcc 2.95.3

HP-UX 11.22/IA64/HP cc also works, but for some reason, the sane-config
    script isn't executable, so the configuration of sane-frontends
    fails.
    
Tru64 Unix 5.1A/Alpha/cc:
    Compilation results in:
    
cc -c -g -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -DBACKEND_NAME=net -DLIBDIR=/usr/local/lib/sane net.c  -DPIC -o net.lo
cc: Error: /usr/include/sys/bitypes.h, line 89: Invalid declarator. (declarator)
        typedef unsigned char            u_int8_t,  u_int8m_t;
-------------------------------------------------^
cc: Error: /usr/include/sys/bitypes.h, line 91: Invalid declarator. (declarator)
        typedef unsigned short          u_int16_t, u_int16m_t;
-------------------------------------------------^
cc: Error: /usr/include/sys/bitypes.h, line 93: Invalid declarator. (declarator)
        typedef unsigned int            u_int32_t, u_int32m_t;
-------------------------------------------------^

Looks like cc can't handle its own include file? Anyone any ideas?

The OpenBSD/Alpha and Linux/parisc testdrives doesn't seem to work
currently. I'll send an update for the platforms page later.

Bye,
  Henning