kopia lustrzana https://gitlab.com/sane-project/website
482 wiersze
19 KiB
HTML
482 wiersze
19 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>sane-devel: Re: Unixware patch</TITLE>
|
|
<META NAME="Author" CONTENT="Wolfgang Rapp (wolfgang@rapp-informatik.de)">
|
|
<META NAME="Subject" CONTENT="Re: Unixware patch">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: Unixware patch</H1>
|
|
<!-- received="Mon Jan 31 11:05:04 2000" -->
|
|
<!-- isoreceived="20000131190504" -->
|
|
<!-- sent="Mon, 31 Jan 2000 22:11:33 +0100" -->
|
|
<!-- isosent="20000131211133" -->
|
|
<!-- name="Wolfgang Rapp" -->
|
|
<!-- email="wolfgang@rapp-informatik.de" -->
|
|
<!-- subject="Re: Unixware patch" -->
|
|
<!-- id="3895FA85.8818832B@rapp-informatik.de" -->
|
|
<!-- inreplyto="200001300553.NAA18481@minerva.ee.uwa.edu.au" -->
|
|
<STRONG>From:</STRONG> Wolfgang Rapp (<A HREF="mailto:wolfgang@rapp-informatik.de?Subject=Re:%20Unixware%20patch&In-Reply-To=<3895FA85.8818832B@rapp-informatik.de>"><EM>wolfgang@rapp-informatik.de</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Mon Jan 31 2000 - 13:11:33 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0329.html">Andreas: "Re: Nikon coolscan LS-2000"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0327.html">Oliver Rauch: "Re: Umax Astra 2200"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0286.html">Petter Reinholdtsen: "Unixware patch"</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#328">[ date ]</A>
|
|
<A HREF="index.html#328">[ thread ]</A>
|
|
<A HREF="subject.html#328">[ subject ]</A>
|
|
<A HREF="author.html#328">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Petter Reinholdtsen wrote:
|
|
<BR>
|
|
<P><EM>> [Wolfgang Rapp]
|
|
</EM><BR>
|
|
<EM>> > --- config.sub.org Fri Jan 7 10:33:57 2000
|
|
</EM><BR>
|
|
<EM>> > +++ config.sub Fri Jan 7 10:47:37 2000
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> This change is not in the latest config.sub version from FSF,
|
|
</EM><BR>
|
|
<EM>> available from CVS
|
|
</EM><BR>
|
|
<EM>> :pserver:<A HREF="mailto:anoncvs@anoncvs.gnu.org?Subject=Re:%20Unixware%20patch&In-Reply-To=<3895FA85.8818832B@rapp-informatik.de>">anoncvs@anoncvs.gnu.org</A>:/gd/gnu/anoncvsroot
|
|
</EM><BR>
|
|
<EM>> (/gd/gnu/anoncvsroot/common). Did you send this change to FSF? If it
|
|
</EM><BR>
|
|
<EM>> isn't there, it will disappear when we upgrade config.sub the next
|
|
</EM><BR>
|
|
<EM>> time.
|
|
</EM><BR>
|
|
<P>No not yet. Don't know if I need this reallyi it seems to work anywhere..
|
|
<BR>
|
|
<P><EM>>
|
|
</EM><BR>
|
|
<EM>> > Configuration of Sane on UW is easy now if we use the newest libtool
|
|
</EM><BR>
|
|
<EM>> > 1.3.4 because the libtool maintainers now put in my patches to
|
|
</EM><BR>
|
|
<EM>> > create shared libs on Unixware to this version.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Oliver Rauch has some patches to our libtool 1.3.3 which will need to
|
|
</EM><BR>
|
|
<EM>> be moved into 1.3.4 as well before we upgrade. Is the new libtool
|
|
</EM><BR>
|
|
<EM>> version required to compile on Unixware?
|
|
</EM><BR>
|
|
<P>Required - libtool-1.3.4 is the first version with will build shared libs
|
|
<BR>
|
|
for UW.
|
|
<BR>
|
|
To build the developement snapshots I nromally copy ltconfig and
|
|
<BR>
|
|
ltmain.sh
|
|
<BR>
|
|
FROM LIBTOOL-1.3.4 .to the Sane directory and say configure
|
|
<BR>
|
|
<P>I have a README.unixware2 file to describe how to build sane on UW2.
|
|
<BR>
|
|
<P><EM>> Your patch is now in CVS, and will be included in the next snapshot.
|
|
</EM><BR>
|
|
<EM>> Please test and make sure I did not break anything.
|
|
</EM><BR>
|
|
<EM>> --
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<P>
|
|
<P>
|
|
Jan 20 2000 Wolfgang Rapp <A HREF="mailto:wolfgang@rapp-informatik.de?Subject=Re:%20Unixware%20patch&In-Reply-To=<3895FA85.8818832B@rapp-informatik.de>">wolfgang@rapp-informatik.de</A>
|
|
<BR>
|
|
<P>UNIXWARE PORT of SANE - HOWTO build and what you need to run
|
|
<BR>
|
|
<P>You need a sane SCSI driver to run SANE on Unixware 2.x. There is at
|
|
<BR>
|
|
least one such driver: the sane driver by R=I+S.
|
|
<BR>
|
|
<P>The Unixware sane driver is a binary loadable module driver for UW2.x.
|
|
<BR>
|
|
Please send Email to <A HREF="mailto:wolfgang@rapp-informatik.de?Subject=Re:%20Unixware%20patch&In-Reply-To=<3895FA85.8818832B@rapp-informatik.de>">wolfgang@rapp-informatik.de</A> to receive.
|
|
<BR>
|
|
<P>What you need to build xane on Unixware 2.x
|
|
<BR>
|
|
- libtool 1.3.4 Now they put in my extensions (copy ltconfig and ltmain.sh)
|
|
<BR>
|
|
- gnu make
|
|
<BR>
|
|
- rev binary rev programm for make install.
|
|
<BR>
|
|
without rev the libs are named wrong.
|
|
<BR>
|
|
<P>You dont't need gcc. All is build with the standard Unixware cc and libs!!
|
|
<BR>
|
|
<P>You need libs to build xscanimage and xsane, like libgtk libgimp and
|
|
<BR>
|
|
the image libs for jpeg, tiff and png to build the frontends.
|
|
<BR>
|
|
It is also good to have gettext with libintl installed.
|
|
<BR>
|
|
Most of the libs are available on the Skunkware CD's from SCO in pkgadd format.
|
|
<BR>
|
|
If you build the frontends with this libs gimp plugin is also supported by
|
|
<BR>
|
|
xscanimage and xsane. Latest xsane version tested was 0.48.
|
|
<BR>
|
|
<P><P>With the following configure should run an build shared libs with libtool 1.3.4
|
|
<BR>
|
|
<P>LD_RUN_PATH=/usr/local/lib CPPFLAGS="-I/usr/local/include -I/isr/X/include" CFLAGS="-I/usr/local/include -I/usr/X/include -I/usr/ucbinclude -L/usr/local/lib -L/usr/ucblib -l ucb" LIBS="-lsocket -lnsl -lgen -I/opt/include -L/usr/ucblib -lucb" ./configure
|
|
<BR>
|
|
<P>After running configure you have to edit the generated file libtool
|
|
<BR>
|
|
<P>Append to the line
|
|
<BR>
|
|
archive_cmds="\$LD -G -o \$lib \$libobjs \$deplibs \$linkopts
|
|
<BR>
|
|
<P>so that it looks like this.
|
|
<BR>
|
|
archive_cmds="\$LD -G -o \$lib \$libobjs \$deplibs \$linkopts -B bind_now -L/usr/local/lib -lintl -L/usr/ucblib -lucb -lm"
|
|
<BR>
|
|
<P>This is a must to link the libucb.a , libintl.a in when the sane libs are build.It's also necessary for mathematic lib -lm .
|
|
<BR>
|
|
Not doing this will bring runtime errors like missimg usleep or pow function.
|
|
<BR>
|
|
<P>ATTENTION:!!! libucb.a of Unixware 2.x has a buggy readdir function so it is
|
|
<BR>
|
|
recommanded to remove readdir.o from libucb.a with ar -d readdir.o libucb.a
|
|
<BR>
|
|
Often used and neded functions from libucb.a are strncasecmp or getpagesize.
|
|
<BR>
|
|
<P>If you use -I/usr/ucbinclude it is also a good idea to move
|
|
<BR>
|
|
/usr/ucbinlcude/unistd.h to another file, because it will be included first and
|
|
<BR>
|
|
some sources will not compile.
|
|
<BR>
|
|
<P>Then you can run make with GNU make.
|
|
<BR>
|
|
<P>After this say su and then ist good to say
|
|
<BR>
|
|
LD_RUN_PATH=/usr/local/lib export LD_RUN_PATH
|
|
<BR>
|
|
<P>after this you can install with
|
|
<BR>
|
|
make install
|
|
<BR>
|
|
but remenber to have rev binary or the libs will be named in a wrong way
|
|
<BR>
|
|
<P><P>Tested on Unixware 2.0.x with Umax Astra 1220S and HP C5100A with sane-1.0.1.
|
|
<BR>
|
|
With Microtek backend earlier on sane-0.74.
|
|
<BR>
|
|
<P>If you use the net backend you do not need the Unixware sanedrv.
|
|
<BR>
|
|
<P>The driver is a shareware product.
|
|
<BR>
|
|
<P>The driver is supplied binary in pkgadd(1m) format and is tested from UW2.0x.
|
|
<BR>
|
|
Please send Email to <A HREF="mailto:wolfgang@rapp-informatik.de?Subject=Re:%20Unixware%20patch&In-Reply-To=<3895FA85.8818832B@rapp-informatik.de>">wolfgang@rapp-informatik.de</A> to get the driver in
|
|
<BR>
|
|
binary pkgadd package.
|
|
<BR>
|
|
<P><P>To install it on a Unixware do:
|
|
<BR>
|
|
<P> cd /tmp
|
|
<BR>
|
|
get sanedrv.pkg.tgz
|
|
<BR>
|
|
gunzip sanedrv.pkg.tgz
|
|
<BR>
|
|
tar xvf sanedrv.pkg.tar
|
|
<BR>
|
|
as root:
|
|
<BR>
|
|
pkgadd -d /tmp/sanedrv
|
|
<BR>
|
|
<P><P>Once the driver is installed, there should be a device nodes /dev/sane
|
|
<BR>
|
|
and /dev/scanner
|
|
<BR>
|
|
/dev/scanner1 for the second, and so on...)
|
|
<BR>
|
|
<P>The scanner my be connected to any SCSI controller in the system, also if you
|
|
<BR>
|
|
have additional devices like disks or cdroms on the same controller.
|
|
<BR>
|
|
The UW2.x sane driver do not block the controller. The scanner must be switched
|
|
<BR>
|
|
on to be recognized by UW, if the low level driver p.e. adsl is loaded.
|
|
<BR>
|
|
<P>To configure an UMAX scanner, configuration file
|
|
<BR>
|
|
/usr/local/etc/sane.d/umax.conf might contain:
|
|
<BR>
|
|
<P> /dev/scanner
|
|
<BR>
|
|
<P>The driver is configured to recognice all scsi scanners with ID SCANNER and
|
|
<BR>
|
|
all HP Scsi scanners with ID Processor and Inquiry string starting with
|
|
<BR>
|
|
"HP" string. For details have a look to /etc/conf/pack.d/sane/space.c.
|
|
<BR>
|
|
<P>If you change this then you must unload the sane driver modadmin -U sane,
|
|
<BR>
|
|
build the new module by /etc/conf/bin/idbuild -M sane
|
|
<BR>
|
|
and the install the driver with modadmin -l sane.
|
|
<BR>
|
|
<P>If you have questions or problems with the Unixware support in SANE,
|
|
<BR>
|
|
send mail to:
|
|
<BR>
|
|
<P><A HREF="mailto:wolfgang@rapp-informatik.de?Subject=Re:%20Unixware%20patch&In-Reply-To=<3895FA85.8818832B@rapp-informatik.de>">wolfgang@rapp-informatik.de</A>
|
|
<BR>
|
|
<P><P>If you don't have rev here is the source.
|
|
<BR>
|
|
<P>------------ cut here -------------------------------------------------------
|
|
<BR>
|
|
/*-
|
|
<BR>
|
|
* Copyright (c) 1987, 1992, 1993
|
|
<BR>
|
|
* The Regents of the University of California. All rights reserved.
|
|
<BR>
|
|
*
|
|
<BR>
|
|
* Redistribution and use in source and binary forms, with or without
|
|
<BR>
|
|
* modification, are permitted provided that the following conditions
|
|
<BR>
|
|
* are met:
|
|
<BR>
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
<BR>
|
|
* notice, this list of conditions and the following disclaimer.
|
|
<BR>
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
<BR>
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
<BR>
|
|
* documentation and/or other materials provided with the distribution.
|
|
<BR>
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
<BR>
|
|
* must display the following acknowledgement:
|
|
<BR>
|
|
* This product includes software developed by the University of
|
|
<BR>
|
|
* California, Berkeley and its contributors.
|
|
<BR>
|
|
* 4. Neither the name of the University nor the names of its contributors
|
|
<BR>
|
|
* may be used to endorse or promote products derived from this software
|
|
<BR>
|
|
* without specific prior written permission.
|
|
<BR>
|
|
*
|
|
<BR>
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
<BR>
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
<BR>
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
<BR>
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
<BR>
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
<BR>
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
<BR>
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
<BR>
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
<BR>
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
<BR>
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
<BR>
|
|
* SUCH DAMAGE.
|
|
<BR>
|
|
*/
|
|
<BR>
|
|
<P>#ifndef lint
|
|
<BR>
|
|
static char copyright[] =
|
|
<BR>
|
|
"@(#) Copyright (c) 1987, 1992, 1993\n\
|
|
<BR>
|
|
The Regents of the University of California. All rights reserved.\n";
|
|
<BR>
|
|
#endif /* not lint */
|
|
<BR>
|
|
<P>#ifndef lint
|
|
<BR>
|
|
static char sccsid[] = "@(#)rev.c 8.3 (Berkeley) 5/4/95";
|
|
<BR>
|
|
#endif /* not lint */
|
|
<BR>
|
|
<P>#include <sys/types.h>
|
|
<BR>
|
|
<P>#include <errno.h>
|
|
<BR>
|
|
#include <stdio.h>
|
|
<BR>
|
|
#include <stdlib.h>
|
|
<BR>
|
|
#include <string.h>
|
|
<BR>
|
|
#include <unistd.h>
|
|
<BR>
|
|
<P>void usage (void);
|
|
<BR>
|
|
<P>int
|
|
<BR>
|
|
main(argc, argv)
|
|
<BR>
|
|
int argc;
|
|
<BR>
|
|
char *argv[];
|
|
<BR>
|
|
{
|
|
<BR>
|
|
register char *filename, *p, *t;
|
|
<BR>
|
|
FILE *fp;
|
|
<BR>
|
|
char line[BUFSIZ];
|
|
<BR>
|
|
size_t len;
|
|
<BR>
|
|
int ch, rval;
|
|
<BR>
|
|
<P> while ((ch = getopt(argc, argv, "")) != -1)
|
|
<BR>
|
|
switch(ch) {
|
|
<BR>
|
|
case '?':
|
|
<BR>
|
|
default:
|
|
<BR>
|
|
usage();
|
|
<BR>
|
|
}
|
|
<BR>
|
|
<P> argc -= optind;
|
|
<BR>
|
|
argv += optind;
|
|
<BR>
|
|
<P> fp = stdin;
|
|
<BR>
|
|
filename = "stdin";
|
|
<BR>
|
|
rval = 0;
|
|
<BR>
|
|
do {
|
|
<BR>
|
|
if (*argv) {
|
|
<BR>
|
|
if ((fp = fopen(*argv, "r")) == NULL) {
|
|
<BR>
|
|
perror(*argv);
|
|
<BR>
|
|
rval = 1;
|
|
<BR>
|
|
++argv;
|
|
<BR>
|
|
continue;
|
|
<BR>
|
|
}
|
|
<BR>
|
|
filename = *argv++;
|
|
<BR>
|
|
}
|
|
<BR>
|
|
while ((p = fgets(line,BUFSIZ,fp)) != NULL) {
|
|
<BR>
|
|
len = strlen(line);
|
|
<BR>
|
|
if (p[len - 1] == '\n')
|
|
<BR>
|
|
--len;
|
|
<BR>
|
|
t = p + len - 1;
|
|
<BR>
|
|
for (t = p + len - 1; t >= p; --t)
|
|
<BR>
|
|
putchar(*t);
|
|
<BR>
|
|
putchar('\n');
|
|
<BR>
|
|
}
|
|
<BR>
|
|
if (ferror(fp)) {
|
|
<BR>
|
|
perror(filename);
|
|
<BR>
|
|
rval = 1;
|
|
<BR>
|
|
}
|
|
<BR>
|
|
(void)fclose(fp);
|
|
<BR>
|
|
} while(*argv);
|
|
<BR>
|
|
exit(rval);
|
|
<BR>
|
|
}
|
|
<BR>
|
|
<P>void
|
|
<BR>
|
|
usage()
|
|
<BR>
|
|
{
|
|
<BR>
|
|
(void)fprintf(stderr, "usage: rev [file ...]\n");
|
|
<BR>
|
|
exit(1);
|
|
<BR>
|
|
}
|
|
<BR>
|
|
<P><P><P><PRE>
|
|
--
|
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Unixware%20patch&In-Reply-To=<3895FA85.8818832B@rapp-informatik.de>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0329.html">Andreas: "Re: Nikon coolscan LS-2000"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0327.html">Oliver Rauch: "Re: Umax Astra 2200"</A>
|
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0286.html">Petter Reinholdtsen: "Unixware patch"</A>
|
|
<!-- nextthread="start" -->
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#328">[ date ]</A>
|
|
<A HREF="index.html#328">[ thread ]</A>
|
|
<A HREF="subject.html#328">[ subject ]</A>
|
|
<A HREF="author.html#328">[ author ]</A>
|
|
</UL>
|
|
<!-- trailer="footer" -->
|
|
<HR NOSHADE>
|
|
<P>
|
|
<SMALL>
|
|
<EM>
|
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|
: <EM>Mon Jan 31 2000 - 11:06:53 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|