kopia lustrzana https://gitlab.com/sane-project/website
154 wiersze
6.1 KiB
HTML
154 wiersze
6.1 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: trouble compiling sane-1.0.2 on linux</TITLE>
|
||
<META NAME="Author" CONTENT="abel deuring (a.deuring@satzbau-gmbh.de)">
|
||
<META NAME="Subject" CONTENT="Re: trouble compiling sane-1.0.2 on linux">
|
||
</HEAD>
|
||
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
||
<H1>Re: trouble compiling sane-1.0.2 on linux</H1>
|
||
<!-- received="Thu Jul 20 05:49:46 2000" -->
|
||
<!-- isoreceived="20000720124946" -->
|
||
<!-- sent="Thu, 20 Jul 2000 14:54:02 +0200" -->
|
||
<!-- isosent="20000720125402" -->
|
||
<!-- name="abel deuring" -->
|
||
<!-- email="a.deuring@satzbau-gmbh.de" -->
|
||
<!-- subject="Re: trouble compiling sane-1.0.2 on linux" -->
|
||
<!-- id="3976F66A.B0749A4B@satzbau-gmbh.de" -->
|
||
<!-- inreplyto="14710.57905.799486.232700@aegir.vision.auc.dk" -->
|
||
<STRONG>From:</STRONG> abel deuring (<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%20trouble%20compiling%20sane-1.0.2%20on%20linux&In-Reply-To=<3976F66A.B0749A4B@satzbau-gmbh.de>"><EM>a.deuring@satzbau-gmbh.de</EM></A>)<BR>
|
||
<STRONG>Date:</STRONG> Thu Jul 20 2000 - 05:54:02 PDT
|
||
<P>
|
||
<!-- next="start" -->
|
||
<LI><STRONG>Next message:</STRONG> <A HREF="0177.html">Bernhard Mogens Ege: "Re: trouble compiling sane-1.0.2 on linux"</A>
|
||
<UL>
|
||
<LI><STRONG>Previous message:</STRONG> <A HREF="0175.html">Bernhard Mogens Ege: "trouble compiling sane-1.0.2 on linux"</A>
|
||
<LI><STRONG>In reply to:</STRONG> <A HREF="0175.html">Bernhard Mogens Ege: "trouble compiling sane-1.0.2 on linux"</A>
|
||
<!-- nextthread="start" -->
|
||
<LI><STRONG>Next in thread:</STRONG> <A HREF="0177.html">Bernhard Mogens Ege: "Re: trouble compiling sane-1.0.2 on linux"</A>
|
||
<LI><STRONG>Reply:</STRONG> <A HREF="0177.html">Bernhard Mogens Ege: "Re: trouble compiling sane-1.0.2 on linux"</A>
|
||
<!-- reply="end" -->
|
||
<LI><STRONG>Messages sorted by:</STRONG>
|
||
<A HREF="date.html#176">[ date ]</A>
|
||
<A HREF="index.html#176">[ thread ]</A>
|
||
<A HREF="subject.html#176">[ subject ]</A>
|
||
<A HREF="author.html#176">[ author ]</A>
|
||
</UL>
|
||
<HR NOSHADE><P>
|
||
<!-- body="start" -->
|
||
<P>
|
||
Bernhard Mogens Ege wrote:
|
||
<BR>
|
||
<EM>>
|
||
</EM><BR>
|
||
<EM>> I have just downloaded the 1.0.2 source and was compiling it when this
|
||
</EM><BR>
|
||
<EM>> error popped up:
|
||
</EM><BR>
|
||
<EM>>
|
||
</EM><BR>
|
||
<EM>> gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/pack-linux86/sane-1.0.2/etc/sane.d -DPATH_SANE_DATA_DIR=/pack-linux86/sane-1.0.2/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 -W -Wall -DSCSIBUFFERSIZE=131072 sanei_scsi.c -fPIC -DPIC -o .libs/sanei_scsi.lo
|
||
</EM><BR>
|
||
<EM>> In file included from linux_sg3_err.h:4,
|
||
</EM><BR>
|
||
<EM>> from sanei_scsi.c:230:
|
||
</EM><BR>
|
||
<EM>> /usr/include/linux/../scsi/sg.h:100: redefinition of `struct sg_header'
|
||
</EM><BR>
|
||
<EM>> /usr/include/linux/../scsi/sg.h:118: redefinition of `struct sg_scsi_id'
|
||
</EM><BR>
|
||
<EM>> /usr/include/linux/../scsi/sg.h:128: warning: redefinition of `Sg_scsi_id'
|
||
</EM><BR>
|
||
<EM>> /usr/include/scsi/sg.h:211: warning: `Sg_scsi_id' previously declared here
|
||
</EM><BR>
|
||
<EM>> make[1]: *** [sanei_scsi.o] Error 1
|
||
</EM><BR>
|
||
<EM>> make[1]: Leaving directory `/pack-linux86/sane-1.0.2/src/sane-1.0.2/sanei'
|
||
</EM><BR>
|
||
<EM>> make: *** [all-recursive] Error 1
|
||
</EM><BR>
|
||
<EM>>
|
||
</EM><BR>
|
||
<EM>> I have run "./configure --prefix=/pack-linux86/sane-1.0.2" followed by
|
||
</EM><BR>
|
||
<EM>> make. I am using the 2.2.16 kernel and have enabled SCSI support.
|
||
</EM><BR>
|
||
<P>Bernhard,
|
||
<BR>
|
||
<P>you have probably more than one version of sg.h installed on your
|
||
<BR>
|
||
machine; the "Suse default" for example is to put a really old version
|
||
<BR>
|
||
of sg.h in /usr/include/scsi, and a recent version in
|
||
<BR>
|
||
/usr/linux/include/scsi.
|
||
<BR>
|
||
<P>Run "find /usr . -name sg.h -print" to get a list of all files named
|
||
<BR>
|
||
sg.h,
|
||
<BR>
|
||
<P>(Output for the Linux box I'm using to write this mail:
|
||
<BR>
|
||
<P>/usr/include/scsi/sg.h
|
||
<BR>
|
||
/usr/src/linux-2.2.13.SuSE/include/config/chr/dev/sg.h
|
||
<BR>
|
||
/usr/src/linux-2.2.13.SuSE/include/scsi/sg.h
|
||
<BR>
|
||
/usr/i486-glibc20-linux/include/scsi/sg.h )
|
||
<BR>
|
||
<P>Rename all of them except one, and create symlinks pointing to the one
|
||
<BR>
|
||
file you keep. referably, you should keep sg.h from the kernel 2.2.16
|
||
<BR>
|
||
source:
|
||
<BR>
|
||
<P> cd /usr/include/scsi
|
||
<BR>
|
||
mv sg.h sg-old.h
|
||
<BR>
|
||
<P>then, for the example output shown above:
|
||
<BR>
|
||
<P> ln -s /usr/src/linux-2.2.13.SuSE/include/scsi/sg.h sg.h
|
||
<BR>
|
||
<P>or, for your machine:
|
||
<BR>
|
||
<P> ln -s /usr/src/include/scsi/sg.h sg.h
|
||
<BR>
|
||
<P>Abel
|
||
<BR>
|
||
<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:%20trouble%20compiling%20sane-1.0.2%20on%20linux&In-Reply-To=<3976F66A.B0749A4B@satzbau-gmbh.de>">majordomo@mostang.com</A>
|
||
</PRE>
|
||
<P><!-- body="end" -->
|
||
<HR NOSHADE>
|
||
<UL>
|
||
<!-- next="start" -->
|
||
<LI><STRONG>Next message:</STRONG> <A HREF="0177.html">Bernhard Mogens Ege: "Re: trouble compiling sane-1.0.2 on linux"</A>
|
||
<LI><STRONG>Previous message:</STRONG> <A HREF="0175.html">Bernhard Mogens Ege: "trouble compiling sane-1.0.2 on linux"</A>
|
||
<LI><STRONG>In reply to:</STRONG> <A HREF="0175.html">Bernhard Mogens Ege: "trouble compiling sane-1.0.2 on linux"</A>
|
||
<!-- nextthread="start" -->
|
||
<LI><STRONG>Next in thread:</STRONG> <A HREF="0177.html">Bernhard Mogens Ege: "Re: trouble compiling sane-1.0.2 on linux"</A>
|
||
<LI><STRONG>Reply:</STRONG> <A HREF="0177.html">Bernhard Mogens Ege: "Re: trouble compiling sane-1.0.2 on linux"</A>
|
||
<!-- reply="end" -->
|
||
<LI><STRONG>Messages sorted by:</STRONG>
|
||
<A HREF="date.html#176">[ date ]</A>
|
||
<A HREF="index.html#176">[ thread ]</A>
|
||
<A HREF="subject.html#176">[ subject ]</A>
|
||
<A HREF="author.html#176">[ 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>Thu Jul 20 2000 - 05:50:50 PDT</EM>
|
||
</EM>
|
||
</SMALL>
|
||
</BODY>
|
||
</HTML>
|