[sane-devel] failing make sane-backends-1.0.18; sanei_scsi question

Gerhard Jaeger gerhard at gjaeger.de
Thu Jan 18 08:45:09 CET 2007


On Wednesday 17 January 2007 18:16, abel deuring wrote:
[SNIPSNAP]
> > Hmmm, while checking the kernel-headers (2.6.18 and 19) I've seen
> > that  linux/include/scsi/sg.h already will include linux/compiler.h
> 
> Right, the second addition of the "#include " line is nonsense. It
> was obviously too late when I wrote my mail ;)

:)))))))))))))

> > So my guess is, that the (HAVE_SCSI_SG_H) path is used and the glibc
> > headers have changed somehow. What's the glibc version on SuSE 10.2?
> > Please call /lib/libc.so.6
> 
> What do you mean with "call"? Anyway, HZ is defined somewhere in the
> kernel header files, and I don't think it is related to libc.

callit means, do simply a /lib/libc.so.6 - call it from your shell
like a real program to see, what's inside. I.e. on my SuSE10 it looks
like:
#~> /lib/libc.so.6
GNU C Library stable release version 2.3.5 (20050802), by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Configured for i586-suse-linux.
Compiled by GNU CC version 4.0.2 20050901 (prerelease) (SUSE Linux).
Compiled on a Linux 2.6.12 system on 2005-09-09.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.10 by Xavier Leroy
        GNU Libidn by Simon Josefsson
        NoVersion patch for broken glibc 2.0 binaries
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

...

> > Anyway could you guys please try and add the compiler.h only to the 
> > HAVE_SCSI_SG_H path?
> 
> Well, before making any "real" patch, the first thing I'd like to
> know is, if we have a special Suse 10.2 bug, or if something changed
> in the kernel headers...

Hmmm - seems we need to check how they compile their glibc and which
kernel-headers they use - I think Johannes is around and might could
shade some light on that - maybe also on that resmgr stuff.

Gerhard


BTW: they use the following patch:
--- sanei/sanei_scsi.c.orig     2005-04-22 10:36:17.000000000 +0200
+++ sanei/sanei_scsi.c  2006-07-04 10:16:49.000000000 +0200
@@ -1273,7 +1273,7 @@
      disconnect... ;-( */
   {
     int timeout;
-    timeout = sane_scsicmd_timeout * HZ;
+    timeout = sane_scsicmd_timeout * sysconf(_SC_CLK_TCK);
     ioctl (fd, SG_SET_TIMEOUT, &timeout);
   }
 #endif




More information about the sane-devel mailing list