As per request of the configure script: configure:6654: checking /usr/src/linux/include/scsi/sg.h usability configure:6666: gcc -c -g -O2 -W -Wall -DPATH_SANE_CONFIG_DIR=$(configdir) -DPATH_SANE_DATA_DIR=$(datadir) -DV_MAJOR=1 -DV_MINOR=0 conftest.c >&5 In file included from conftest.c:71: /usr/src/linux/include/scsi/sg.h:96: error: variable or field `__user' declared void /usr/src/linux/include/scsi/sg.h:96: warning: no semicolon at end of struct or union /usr/src/linux/include/scsi/sg.h:96: error: syntax error before '*' token /usr/src/linux/include/scsi/sg.h:98: error: syntax error before '}' token /usr/src/linux/include/scsi/sg.h:98: warning: type defaults to `int' in declaration of `sg_iovec_t' /usr/src/linux/include/scsi/sg.h:98: warning: data definition has no type or storage class /usr/src/linux/include/scsi/sg.h:109: error: variable or field `__user' declared void /usr/src/linux/include/scsi/sg.h:109: warning: no semicolon at end of struct or union /usr/src/linux/include/scsi/sg.h:109: error: syntax error before '*' token /usr/src/linux/include/scsi/sg.h:111: error: syntax error before '*' token /usr/src/linux/include/scsi/sg.h:111: warning: type defaults to `int' in declaration of `cmdp' /usr/src/linux/include/scsi/sg.h:111: warning: data definition has no type or storage class /usr/src/linux/include/scsi/sg.h:112: error: syntax error before '*' token /usr/src/linux/include/scsi/sg.h:112: warning: type defaults to `int' in declaration of `sbp' /usr/src/linux/include/scsi/sg.h:112: warning: data definition has no type or storage class /usr/src/linux/include/scsi/sg.h:116: error: syntax error before '*' token /usr/src/linux/include/scsi/sg.h:116: warning: type defaults to `int' in declaration of `usr_ptr' /usr/src/linux/include/scsi/sg.h:116: warning: data definition has no type or storage class /usr/src/linux/include/scsi/sg.h:126: error: syntax error before '}' token /usr/src/linux/include/scsi/sg.h:126: warning: type defaults to `int' in declaration of `sg_io_hdr_t' /usr/src/linux/include/scsi/sg.h:126: warning: data definition has no type or storage class /usr/src/linux/include/scsi/sg.h:176: error: variable or field `__user' declared void /usr/src/linux/include/scsi/sg.h:176: warning: no semicolon at end of struct or union /usr/src/linux/include/scsi/sg.h:176: error: syntax error before '*' token /usr/src/linux/include/scsi/sg.h:180: error: syntax error before '}' token /usr/src/linux/include/scsi/sg.h:180: warning: type defaults to `int' in declaration of `sg_req_info_t' /usr/src/linux/include/scsi/sg.h:180: warning: data definition has no type or storage class configure:6672: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "sane-backends" | #define PACKAGE_TARNAME "sane-backends" | #define PACKAGE_VERSION "1.0.15" | #define PACKAGE_STRING "sane-backends 1.0.15" | #define PACKAGE_BUGREPORT "[email protected]" | #define PACKAGE "sane-backends" | #define VERSION "1.0.15" | #define SANE_DLL_V_MAJOR 1 | #define SANE_DLL_V_MINOR 0 | #define SANE_DLL_V_BUILD 15 | #define _GNU_SOURCE 1 | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define HAVE_DLOPEN 1 | #define HAVE_LIBM 1 | #define HAVE_LIBNSL 1 | #define HAVE_LIBIEEE1284 1 | #define STDC_HEADERS 1 | #define HAVE_FCNTL_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_SYS_SELECT_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_SHM_H 1 | #define HAVE_SCSI_SG_H 1 | /* end confdefs.h. */ | #include <stdio.h> | #if HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #if HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #if STDC_HEADERS | # include <stdlib.h> | # include <stddef.h> | #else | # if HAVE_STDLIB_H | # include <stdlib.h> | # endif | #endif | #if HAVE_STRING_H | # if !STDC_HEADERS && HAVE_MEMORY_H | # include <memory.h> | # endif | # include <string.h> | #endif | #if HAVE_STRINGS_H | # include <strings.h> | #endif | #if HAVE_INTTYPES_H | # include <inttypes.h> | #else | # if HAVE_STDINT_H | # include <stdint.h> | # endif | #endif | #if HAVE_UNISTD_H | # include <unistd.h> | #endif | #include </usr/src/linux/include/scsi/sg.h> configure:6694: result: no configure:6698: checking /usr/src/linux/include/scsi/sg.h presence configure:6708: gcc -E -DPATH_SANE_CONFIG_DIR=$(configdir) -DPATH_SANE_DATA_DIR=$(datadir) -DV_MAJOR=1 -DV_MINOR=0 conftest.c configure:6714: $? = 0 configure:6734: result: yes configure:6747: WARNING: /usr/src/linux/include/scsi/sg.h: present but cannot be compiled configure:6749: WARNING: /usr/src/linux/include/scsi/sg.h: check for missing prerequisite headers? configure:6751: WARNING: /usr/src/linux/include/scsi/sg.h: see the Autoconf documentation configure:6753: WARNING: /usr/src/linux/include/scsi/sg.h: section "Present But Cannot Be Compiled" configure:6755: WARNING: /usr/src/linux/include/scsi/sg.h: proceeding with the preprocessor's result configure:6757: WARNING: /usr/src/linux/include/scsi/sg.h: in the future, the compiler will take precedence
This is on a machine with kernel 2.6.8 -- Carlo Wood <[email protected]>
