[sane-devel] Re: Sane on Ultra Sparc

T. Ribbrock emgaron at gmx.net
Sat Jan 11 18:40:17 GMT 2003


On Fri, Jan 10, 2003 at 06:15:58PM +0100, Henning Meier-Geinitz wrote:
> Ok. This is for SANE 1.0.8? gcc version? Compilation worked without any
> patches? bosth shared libs and dynamic loading works? USB and X
> clients are unknown?

It's sane 1.0.7. Compilation needs a patch that was probably added by
Red Hat, so don't ask me how or why... :-} The patch is attached -
without it, I get compile errors when rebuilding the RPM.


> > And while we're at it - for sane 1.0.7:
> > 
> > Linux 2.4 Sparc32, gcc 2.96, User-level SCSI support: yes, USB: ???,
> > shared and dynamic library support: yes, X11 clients: ???
> > URL: http://www.ultralinux.org
> > Tested with only one Mustek scanner, but on two different
> > SparcStations...
> 
> Thanks, will be added to web page.

The patch mentioned above applies to this one as well - my apologies
for not checking all. The 1.0.9 backends seem to compile without that
patch, though.

Regards,

Thomas
-- 
-----------------------------------------------------------------------------
      Thomas Ribbrock    http://www.ribbrock.org    ICQ#: 15839919
   "You have to live on the edge of reality - to make your dreams come true!"
-------------- next part --------------
--- sane-1.0.2/sanei/sanei_ab306.c.orig	Thu May 18 18:22:45 2000
+++ sane-1.0.2/sanei/sanei_ab306.c	Thu May 18 18:24:27 2000
@@ -49,6 +49,10 @@
 
 #include <sys/types.h>
 
+#ifdef __sparc__
+#define IO_SUPPORT_MISSING
+#else
+
 #ifdef HAVE_SYS_IO_H
 # include <sys/io.h>	/* use where available (glibc 2.x, for example) */
 #elif HAVE_ASM_IO_H
@@ -72,6 +76,8 @@
 
 #else
 # define IO_SUPPORT_MISSING
+#endif
+
 #endif
 
 #include <sane/sane.h>
--- sane-1.0.2/sanei/sanei_pio.c.orig	Thu May 18 18:24:42 2000
+++ sane-1.0.2/sanei/sanei_pio.c	Thu May 18 18:25:31 2000
@@ -58,6 +58,10 @@
 # include <unistd.h>
 #endif
 
+#ifdef __sparc__
+#define IO_SUPPORT_MISSING
+#else
+
 #ifdef HAVE_SYS_IO_H
 # include <sys/io.h>	/* use where available (glibc 2.x, for example) */
 #elif HAVE_ASM_IO_H
@@ -83,6 +87,7 @@
 
 #else
 # define IO_SUPPORT_MISSING
+#endif
 #endif
 
 #include <sane/sane.h>
--- ./sanei/sanei_pa4s2.c.old	Mon Mar  4 14:57:24 2002
+++ ./sanei/sanei_pa4s2.c	Mon Mar  4 14:58:13 2002
@@ -62,6 +62,9 @@
 #include <unistd.h>
 #endif
 
+#ifdef __sparc__
+#define IO_SUPPORT_MISSING
+#else
 #ifdef HAVE_SYS_IO_H
 #include <sys/io.h>
 #elif HAVE_ASM_IO_H
@@ -88,6 +91,7 @@
 #else
 #define IO_SUPPORT_MISSING
 #endif
+#endif
 
 #include "sane/sane.h"
 #include "sane/sanei.h"


More information about the sane-devel mailing list