Problems with 2.5.*'s SCSI headers and cdrtools

Sahara Workshop (workshop@cpt.saharapc.co.za)
14 Feb 2003 07:48:06 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-9616-1045201809-0001-2
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Kernel 2.5.5x (have not tried earlier) and 2.5.60 's scsi/scsi.h do
not have like in 2.4 the 'include <features.h>', or as it may seem
to need an 'include <types.h>', and thus cdrtools for one do not
compile.

The take I get on this from Jorg is that he feels its a problem
kernel side. Comments ?

Attached is a patch that get cdrtools-2.01a2 to compile.

Regards,

-- 
Martin Schlemmer
Gentoo Linux Developer, Desktop Team
Cape Town, South Africa

- PLEASE NOTE -

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Sahara Distribution (Pty) Ltd. Finally, while Sahara Distribution attempts to ensure that all email is virus-free, Sahara Distribution accepts no liability for any damage caused by any virus transmitted by this email.

Sahara Distribution (PTY) Ltd Unit G5-G12, Centurion Business Park, Milnerton, Cape Town, South Africa Private Bag X180, Halfway House, 1685, South Africa

Scanned and protected by Sistech Viruswall 2.3

--=_courier-9616-1045201809-0001-2 Content-Type: text/plain; name="cdrtools-2.01-kernel25-support.patch"; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=cdrtools-2.01-kernel25-support.patch

--- cdrtools-2.01/libscg/scsi-linux-sg.c.orig 2003-02-05 21:01:31.000000000 +0200 +++ cdrtools-2.01/libscg/scsi-linux-sg.c 2003-02-05 21:16:33.000000000 +0200 @@ -66,6 +66,11 @@ #if LINUX_VERSION_CODE >= 0x01031a /* <linux/scsi.h> introduced in 1.3.26 */ #if LINUX_VERSION_CODE >= 0x020000 /* <scsi/scsi.h> introduced somewhere. */ /* Need to fine tune the ifdef so we get the transition point right. */ +#if LINUX_VERSION_CODE >= 0x020500 /* 2.5.x breaks things again */ +#define __KERNEL__ +#include <asm/types.h> +#undef __KERNEL__ +#endif #include <scsi/scsi.h> #else #include <linux/scsi.h>

--=_courier-9616-1045201809-0001-2--