[sane-devel] Compilation error on Compaq Tru64
Major A
andras at users.sourceforge.net
Wed Nov 20 00:06:55 GMT 2002
> Oops. That would be me who is responsible for ab306.c. On the other
> hand on first sight it maybe an error in the header (?), as I don't
> see any suspicious changes between SANE 1.0.1 (oldest version in CVS)
> and now. And I'm sure I ran 2.0.x at that time.
1.0.2 was successfully installed on the very same machine, everything
else has remained the same since, including kernel, headers,
libraries, gcc, binutils.
> If you have too much time you can have a look at
> /usr/include/asm/system.h:140 and find out why there is an
> unterminated string.
I always have too much time :-(
The lines it complains about are of the form
__asm__ __volatile__("
If I omit the -pedantic flag to gcc, it no longer complains about
this, but about
/usr/include/asm/io.h:107: `sparc_cpu_model' undeclared (first use this function)
This is what a grep gives:
/usr/include/asm/auxio.h: switch(sparc_cpu_model) { \
/usr/include/asm/floppy.h: if((sparc_cpu_model != sun4c && sparc_cpu_model != sun4m) ||
/usr/include/asm/floppy.h: if(sparc_cpu_model == sun4m) {
/usr/include/asm/floppy.h: if(sparc_cpu_model == sun4c) {
/usr/include/asm/io.h: switch(sparc_cpu_model) {
/usr/include/asm/io.h: printk("mapioaddr: sparc_cpu_model = %d\n", sparc_cpu_model);
/usr/include/asm/io.h: switch(sparc_cpu_model) {
/usr/include/asm/io.h: printk("unmapioaddr: sparc_cpu_model = %d, halt...\n", sparc_cpu_model);
/usr/include/asm/pgtable.h: switch (sparc_cpu_model){
/usr/include/asm/pgtable.h: switch (sparc_cpu_model){
/usr/include/asm/system.h:extern enum sparc_cpu sparc_cpu_model;
/usr/include/asm/system.h:#define ARCH_SUN4C_SUN4 (sparc_cpu_model==sun4c)
Any ideas?
Andras
===========================================================================
Major Andras
e-mail: andras at users.sourceforge.net
www: http://andras.webhop.org/
===========================================================================
More information about the sane-devel
mailing list