All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jim Gifford <maillist@jg555.com>
To: Joerg Schilling <schilling@fokus.fraunhofer.de>
Cc: alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org
Subject: Re: Linux Kernel bug report (includes fix)
Date: Tue, 10 Aug 2004 09:24:12 -0700	[thread overview]
Message-ID: <4118F6AC.7080903@jg555.com> (raw)
In-Reply-To: <200408101234.i7ACYdwP013901@burner.fokus.fraunhofer.de>

[-- Attachment #1: Type: text/plain, Size: 2058 bytes --]

There is a simple fix to your problem, I have sent this patch to you a 
few times, but never got an answer.

I bet eveyone here will agree, this is the proper way to fix the issue

diff -Naur cdrtools-2.01.orig/DEFAULTS/Defaults.gnu 
cdrtools-2.01/DEFAULTS/Defaults.gnu
--- cdrtools-2.01.orig/DEFAULTS/Defaults.gnu    2003-02-16 
00:01:47.000000000 +0000
+++ cdrtools-2.01/DEFAULTS/Defaults.gnu    2004-05-07 00:52:58.111410726 
+0000
@@ -18,7 +18,7 @@
 ###########################################################################
 CWARNOPTS=
 
-DEFINCDIRS=    $(SRCROOT)/include /usr/src/linux/include
+DEFINCDIRS=    $(SRCROOT)/include
 LDPATH=        -L/opt/schily/lib
 RUNPATH=    -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR)
 
diff -Naur cdrtools-2.01.orig/DEFAULTS/Defaults.linux 
cdrtools-2.01/DEFAULTS/Defaults.linux
--- cdrtools-2.01.orig/DEFAULTS/Defaults.linux    2003-02-16 
00:01:48.000000000 +0000
+++ cdrtools-2.01/DEFAULTS/Defaults.linux    2004-05-07 
00:53:05.850026970 +0000
@@ -18,7 +18,7 @@
 ###########################################################################
 CWARNOPTS=
 
-DEFINCDIRS=    $(SRCROOT)/include /usr/src/linux/include
+DEFINCDIRS=    $(SRCROOT)/include
 LDPATH=        -L/opt/schily/lib
 RUNPATH=    -R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR)
 
diff -Naur cdrtools-2.01.orig/libscg/scsi-linux-sg.c 
cdrtools-2.01/libscg/scsi-linux-sg.c
--- cdrtools-2.01.orig/libscg/scsi-linux-sg.c    2004-04-18 
10:26:44.000000000 +0000
+++ cdrtools-2.01/libscg/scsi-linux-sg.c    2004-05-07 
00:52:47.953227014 +0000
@@ -65,6 +65,14 @@
 
 #if LINUX_VERSION_CODE >= 0x01031a /* <linux/scsi.h> introduced in 
1.3.26 */
 #if LINUX_VERSION_CODE >= 0x020000 /* <scsi/scsi.h> introduced 
somewhere. */
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
+    #define __KERNEL__
+    #include <asm/types.h>
+    #include <asm/byteorder.h>
+    #undef __KERNEL__
+#endif
+
 /* Need to fine tune the ifdef so we get the transition point right. */
 #include <scsi/scsi.h>
 #else

-- 
----
Jim Gifford
maillist@jg555.com


[-- Attachment #2: cdrtools-2.01-kernel_2.6-3[1].patch --]
[-- Type: text/x-patch, Size: 2013 bytes --]

Submitted By: Jim Gifford (jim at linuxfromscratch dot org)
Date: 2004-05-06
Initial Package Version: 2.01
Origin: Jim Gifford and http://kerneltrap.org/node/view/879
Upstream Status: Sent
Description: Fixes CDRTools Compile with the 2.6 Kernel
 
 
diff -Naur cdrtools-2.01.orig/DEFAULTS/Defaults.gnu cdrtools-2.01/DEFAULTS/Defaults.gnu
--- cdrtools-2.01.orig/DEFAULTS/Defaults.gnu	2003-02-16 00:01:47.000000000 +0000
+++ cdrtools-2.01/DEFAULTS/Defaults.gnu	2004-05-07 00:52:58.111410726 +0000
@@ -18,7 +18,7 @@
 ###########################################################################
 CWARNOPTS=
 
-DEFINCDIRS=	$(SRCROOT)/include /usr/src/linux/include
+DEFINCDIRS=	$(SRCROOT)/include
 LDPATH=		-L/opt/schily/lib
 RUNPATH=	-R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR)
 
diff -Naur cdrtools-2.01.orig/DEFAULTS/Defaults.linux cdrtools-2.01/DEFAULTS/Defaults.linux
--- cdrtools-2.01.orig/DEFAULTS/Defaults.linux	2003-02-16 00:01:48.000000000 +0000
+++ cdrtools-2.01/DEFAULTS/Defaults.linux	2004-05-07 00:53:05.850026970 +0000
@@ -18,7 +18,7 @@
 ###########################################################################
 CWARNOPTS=
 
-DEFINCDIRS=	$(SRCROOT)/include /usr/src/linux/include
+DEFINCDIRS=	$(SRCROOT)/include
 LDPATH=		-L/opt/schily/lib
 RUNPATH=	-R $(INS_BASE)/lib -R /opt/schily/lib -R $(OLIBSDIR)
 
diff -Naur cdrtools-2.01.orig/libscg/scsi-linux-sg.c cdrtools-2.01/libscg/scsi-linux-sg.c
--- cdrtools-2.01.orig/libscg/scsi-linux-sg.c	2004-04-18 10:26:44.000000000 +0000
+++ cdrtools-2.01/libscg/scsi-linux-sg.c	2004-05-07 00:52:47.953227014 +0000
@@ -65,6 +65,14 @@
 
 #if LINUX_VERSION_CODE >= 0x01031a /* <linux/scsi.h> introduced in 1.3.26 */
 #if LINUX_VERSION_CODE >= 0x020000 /* <scsi/scsi.h> introduced somewhere. */
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
+	#define __KERNEL__
+	#include <asm/types.h>
+	#include <asm/byteorder.h>
+	#undef __KERNEL__
+#endif
+
 /* Need to fine tune the ifdef so we get the transition point right. */
 #include <scsi/scsi.h>
 #else

  reply	other threads:[~2004-08-10 16:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-10 12:34 Linux Kernel bug report (includes fix) Joerg Schilling
2004-08-10 16:24 ` Jim Gifford [this message]
2004-08-12 15:35   ` Bill Davidsen
  -- strict thread matches above, loose matches on Subject: below --
2004-08-11 11:49 Joerg Schilling
2004-08-09 14:20 Joerg Schilling
2004-08-09 15:50 ` Paolo Ciarrocchi
2004-08-10  5:17 ` Matt Mackall
2004-08-10  9:24 ` Helge Hafting
2004-08-09 12:03 Joerg Schilling
2004-08-09 13:05 ` Alan Cox
2004-08-10 22:58 ` Horst von Brand
2004-08-07 12:51 Joerg Schilling
2004-08-07 13:26 ` Måns Rullgård
2004-08-07 19:32   ` Bernd Schubert
2004-08-08  1:18 ` Horst von Brand
2004-08-08  5:22   ` Alexander E. Patrakov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4118F6AC.7080903@jg555.com \
    --to=maillist@jg555.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=schilling@fokus.fraunhofer.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.