Alex_K
06.08.01, 19:15
um meinen paralellport scanner (von DEXXA) auch unterlinux verwenden zu können habe ich laut anleitung die as5e treiber installiert, dann sane-1.0.3 mit dem bei den as6e treibern beiliegenden patch gepatcht, mach dem ./configure (ohne probleme) hab ich make ausgeführt, und da kommt folgende fehlermeldung:
make[1]: Wechsel in das Verzeichnis Verzeichnis »/usr/src/sane-1.0.3/sanei«
rm -f .libs/sanei_scsi.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 -W -Wall -DSCSIBUFFERSIZE=131072 sanei_scsi.c -fPIC -DPIC -o .libs/sanei_scsi.lo
In file included from linux_sg3_err.h:4,
from sanei_scsi.c:230:
/usr/include/linux/../scsi/sg.h:85: redefinition of `struct sg_iovec'
/usr/include/linux/../scsi/sg.h:88: warning: redefinition of `sg_iovec_t'
/usr/include/scsi/sg.h:40: warning: `sg_iovec_t' previously declared here
/usr/include/linux/../scsi/sg.h:92: redefinition of `struct sg_io_hdr'
/usr/include/linux/../scsi/sg.h:116: warning: redefinition of `sg_io_hdr_t'
/usr/include/scsi/sg.h:68: warning: `sg_io_hdr_t' previously declared here
/usr/include/linux/../scsi/sg.h:146: redefinition of `struct sg_scsi_id'
/usr/include/linux/../scsi/sg.h:157: redefinition of `struct sg_req_info'
/usr/include/linux/../scsi/sg.h:167: warning: redefinition of `sg_req_info_t'
/usr/include/scsi/sg.h:129: warning: `sg_req_info_t' previously declared here
/usr/include/linux/../scsi/sg.h:247: warning: redefinition of `Sg_io_hdr'
/usr/include/scsi/sg.h:209: warning: `Sg_io_hdr' previously declared here
/usr/include/linux/../scsi/sg.h:248: warning: redefinition of `Sg_io_vec'
/usr/include/scsi/sg.h:210: warning: `Sg_io_vec' previously declared here
/usr/include/linux/../scsi/sg.h:249: warning: redefinition of `Sg_scsi_id'
/usr/include/scsi/sg.h:211: warning: `Sg_scsi_id' previously declared here
/usr/include/linux/../scsi/sg.h:250: warning: redefinition of `Sg_req_info'
/usr/include/scsi/sg.h:212: warning: `Sg_req_info' previously declared here
/usr/include/linux/../scsi/sg.h:260: redefinition of `struct sg_header'
make[1]: *** [sanei_scsi.o] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/sane-1.0.3/sanei«
make: *** [all-recursive] Fehler 1
es hat anscheinend was mit scsi zu tunen, das habe ich auch im kernel (2.4.7) als modul mitkompiliert ...
make[1]: Wechsel in das Verzeichnis Verzeichnis »/usr/src/sane-1.0.3/sanei«
rm -f .libs/sanei_scsi.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 -W -Wall -DSCSIBUFFERSIZE=131072 sanei_scsi.c -fPIC -DPIC -o .libs/sanei_scsi.lo
In file included from linux_sg3_err.h:4,
from sanei_scsi.c:230:
/usr/include/linux/../scsi/sg.h:85: redefinition of `struct sg_iovec'
/usr/include/linux/../scsi/sg.h:88: warning: redefinition of `sg_iovec_t'
/usr/include/scsi/sg.h:40: warning: `sg_iovec_t' previously declared here
/usr/include/linux/../scsi/sg.h:92: redefinition of `struct sg_io_hdr'
/usr/include/linux/../scsi/sg.h:116: warning: redefinition of `sg_io_hdr_t'
/usr/include/scsi/sg.h:68: warning: `sg_io_hdr_t' previously declared here
/usr/include/linux/../scsi/sg.h:146: redefinition of `struct sg_scsi_id'
/usr/include/linux/../scsi/sg.h:157: redefinition of `struct sg_req_info'
/usr/include/linux/../scsi/sg.h:167: warning: redefinition of `sg_req_info_t'
/usr/include/scsi/sg.h:129: warning: `sg_req_info_t' previously declared here
/usr/include/linux/../scsi/sg.h:247: warning: redefinition of `Sg_io_hdr'
/usr/include/scsi/sg.h:209: warning: `Sg_io_hdr' previously declared here
/usr/include/linux/../scsi/sg.h:248: warning: redefinition of `Sg_io_vec'
/usr/include/scsi/sg.h:210: warning: `Sg_io_vec' previously declared here
/usr/include/linux/../scsi/sg.h:249: warning: redefinition of `Sg_scsi_id'
/usr/include/scsi/sg.h:211: warning: `Sg_scsi_id' previously declared here
/usr/include/linux/../scsi/sg.h:250: warning: redefinition of `Sg_req_info'
/usr/include/scsi/sg.h:212: warning: `Sg_req_info' previously declared here
/usr/include/linux/../scsi/sg.h:260: redefinition of `struct sg_header'
make[1]: *** [sanei_scsi.o] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/sane-1.0.3/sanei«
make: *** [all-recursive] Fehler 1
es hat anscheinend was mit scsi zu tunen, das habe ich auch im kernel (2.4.7) als modul mitkompiliert ...