Bug 3868 - /dev/sg? driver trouble
Summary: /dev/sg? driver trouble
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Cristian Gafton
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-07-02 13:32 UTC by Fabian Kroenner
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-07-28 05:36:54 UTC
Embargoed:


Attachments (Terms of Use)

Description Fabian Kroenner 1999-07-02 13:32:12 UTC
Description:
------------

User compiled programs that access the /dev/sg? interface
(like cdrecord) generate scsi-command errors.
This is due to a bug in the package glibc-devel that comes
with Red Hat Linux 6.0. The directory /usr/include/scsi
should be a symbolic link to /usr/src/linux/include/scsi to
warrant consistency of the kernel's sg-driver-interface
version with the headers used by the compiler.


Affected Package:
-----------------

glibc-devel


Related Package:
----------------

kernel-headers


Solution:
---------

(Re)move the directory /usr/include/scsi and create a
symbolic link from
/usr/include/scsi > /usr/src/linux/include/scsi

like this:

# cd /usr/include
# mv scsi scsi.orig
# ln -s ../../src/linux/include/scsi scsi

Now recompile the affected program.

Comment 1 Cristian Gafton 1999-07-28 05:36:59 UTC
The glibc headers provide a cross-system generic scsi interface for
use by high-level programs. Applications like cdrecord should look
instead directly into the kernel headers, since they need hard data
that is highly architecture and OS dependent.


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