In file included from sanei_scsi.c:79: /usr/include/scsi/sg.h:49: duplicate member `dxfer_direction'
Additional errors from this header file: /usr/include/linux/../scsi/sg.h:130: redefinition of `struct sg_header' /usr/include/linux/../scsi/sg.h:148: redefinition of `struct sg_scsi_id' /usr/include/linux/../scsi/sg.h:158: warning: redefinition of `Sg_scsi_id' /usr/include/scsi/sg.h:211: warning: `Sg_scsi_id' previously declared here Structures that are defined in Linux kernel header files probably shouldn't be redefined in glibc header files.
The first thing has been fixed on 05-21, just forgot to update bugzilla. The second issue is not a bug, you should not be including linux/include/scsi.h headers in userland applications.