Bug 11557

Summary: <scsi/sg.h> has duplicate member in struct sg_io_hdr
Product: [Retired] Red Hat Raw Hide Reporter: Jonathan Kamens <jik>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-05-21 21:23:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathan Kamens 2000-05-21 19:24:21 UTC
In file included from sanei_scsi.c:79:
/usr/include/scsi/sg.h:49: duplicate member `dxfer_direction'

Comment 1 Jonathan Kamens 2000-05-21 21:23:59 UTC
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.

Comment 2 Jakub Jelinek 2000-08-24 10:27:21 UTC
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.