Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 11557 - <scsi/sg.h> has duplicate member in struct sg_io_hdr
<scsi/sg.h> has duplicate member in struct sg_io_hdr
Product: Red Hat Raw Hide
Classification: Retired
Component: glibc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2000-05-21 15:24 EDT by Jonathan Kamens
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-05-21 17:23:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jonathan Kamens 2000-05-21 15:24:21 EDT
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 17:23:59 EDT
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 06:27:21 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.