Kann Sane nicht compilieren
Da das mit SuSE 7.1 mitgelieferte Sane-RPM offensichtlich ohne ptal-Unterstützung compiliert wurde, habe ich es deinstalliert und mir die Sourcen geholt. Dabei habe ich zunächst sane-backends-1.0.4.tar.gz ausgepackt. ./configure läuft problemlos durch. Aber beim Compilieren kriege ich Fehlermeldungen. Der Output von make vor der Fehlermeldung sieht folgendermaßen aus. ------------------------------------------------------ make[1]: Entering directory `/home/stefan/Download/sane-1.0.4/sane-backends-1.0.4/sanei' rm -f .libs/sanei_scsi.lo gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -I/include -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 -DHAVE_DEV_URANDOM -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:127: redefinition of `struct sg_iovec' /usr/include/linux/../scsi/sg.h:130: 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:134: redefinition of `struct sg_io_hdr' /usr/include/linux/../scsi/sg.h:158: 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:188: redefinition of `struct sg_scsi_id' /usr/include/linux/../scsi/sg.h:199: redefinition of `struct sg_req_info' /usr/include/linux/../scsi/sg.h:209: 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:289: 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:290: 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:291: 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:292: 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:302: redefinition of `struct sg_header' make[1]: *** [sanei_scsi.o] Error 1 make[1]: Leaving directory `/home/stefan/Download/sane-1.0.4/sane-backends-1.0.4/sanei' make: *** [all-recursive] Error 1 ----------------------------------------------------------- Was kann man da machen? Stefan
Hi Stefan Stefan Fricke wrote:
Da das mit SuSE 7.1 mitgelieferte Sane-RPM offensichtlich ohne ptal-Unterstützung compiliert wurde, habe ich es deinstalliert und mir die Sourcen geholt.
Dabei habe ich zunächst sane-backends-1.0.4.tar.gz ausgepackt. ../configure läuft problemlos durch. Aber beim Compilieren kriege ich Fehlermeldungen.
Der Output von make vor der Fehlermeldung sieht folgendermaßen aus.
------------------------------------------------------ make[1]: Entering directory `/home/stefan/Download/sane-1.0.4/sane-backends-1.0.4/sanei' rm -f .libs/sanei_scsi.lo gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -I/include -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 -DHAVE_DEV_URANDOM -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:127: redefinition of `struct sg_iovec' /usr/include/linux/../scsi/sg.h:130: 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:134: redefinition of `struct sg_io_hdr' /usr/include/linux/../scsi/sg.h:158: 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:188: redefinition of `struct sg_scsi_id' /usr/include/linux/../scsi/sg.h:199: redefinition of `struct sg_req_info' /usr/include/linux/../scsi/sg.h:209: 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:289: 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:290: 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:291: 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:292: 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:302: redefinition of `struct sg_header' make[1]: *** [sanei_scsi.o] Error 1 make[1]: Leaving directory `/home/stefan/Download/sane-1.0.4/sane-backends-1.0.4/sanei' make: *** [all-recursive] Error 1 -----------------------------------------------------------
versuch mal in der Datei sane-backends-1.0.4/sanei/linux_sg3_err.h
die beiden includes in Zeile 3 und 4 herauszukommentieren:
/* #include
participants (2)
-
Benedikt Wilbertz
-
Stefan Fricke