public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Linux Kernel bug report (includes fix)
@ 2004-08-10 12:34 Joerg Schilling
  2004-08-10 16:24 ` Jim Gifford
  0 siblings, 1 reply; 16+ messages in thread
From: Joerg Schilling @ 2004-08-10 12:34 UTC (permalink / raw)
  To: mpm, schilling; +Cc: alan, axboe, linux-kernel, vonbrand

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1135 bytes --]


>From: Matt Mackall <mpm@selenic.com>

>> You should know that GLIBc is unrelated to the Linux kernel interfaces we are> talking about. Start using serious arguments please.

>If you had any inkling, you'd have caught on by now that using kernel
>headers in userspace programs has been deprecated for about six years.

Well, everybody has the right to make mistakes and trying to force people
not to use the official header is a big mistake.


If Linux was a complete OS and not only a Kernel and if it was always released 
with a full set of /usr/include files, libc, utilities,.... this could work.
But even then only if somebody would test the consistence of everything.

Releasing the kernel separately requires the kernel distribution to contain
a usable set of include files that match the interfaces inside the kernel.


Jörg

-- 
 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
       schilling@fokus.fraunhofer.de	(work) chars I am J"org Schilling
 URL:  http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Linux Kernel bug report (includes fix)
@ 2004-08-11 11:49 Joerg Schilling
  0 siblings, 0 replies; 16+ messages in thread
From: Joerg Schilling @ 2004-08-11 11:49 UTC (permalink / raw)
  To: maillist, schilling; +Cc: alan, linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1350 bytes --]

>From: Jim Gifford <maillist@jg555.com>


>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

Of course, what you like to do is not the proper way....

>-DEFINCDIRS=    $(SRCROOT)/include /usr/src/linux/include
>+DEFINCDIRS=    $(SRCROOT)/include

/usr/src/linux/include is definitely needed on Linux-2.2 and before



> #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

If an application would need to #define __KERNEL__ and to include 
inofficial include files, the official include files are broken 
and should be fixed. This is exactly the reason why I send a bug report
against include/scsi/scsi.h & include/scsi/sg.h



Jörg

-- 
 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
       schilling@fokus.fraunhofer.de	(work) chars I am J"org Schilling
 URL:  http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Linux Kernel bug report (includes fix)
@ 2004-08-09 14:20 Joerg Schilling
  2004-08-09 15:50 ` Paolo Ciarrocchi
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Joerg Schilling @ 2004-08-09 14:20 UTC (permalink / raw)
  To: alan, schilling; +Cc: axboe, linux-kernel, vonbrand

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 788 bytes --]

>From: Alan Cox <alan@lxorguk.ukuu.org.uk>

>> As you don't know how kernel/user interfaces are handled, it would be wise for 
>> you to keep quiet.....

>Linux kernel include files are not meant to be used by user
>applications. He's perfectly correct. Glibc has its own exported set.
>This is intentional to seperate internals from user space.

You should know that GLIBc is unrelated to the Linux kernel interfaces we are 
talking about. Start using serious arguments please.



Jörg

-- 
 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
       schilling@fokus.fraunhofer.de	(work) chars I am J"org Schilling
 URL:  http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Re: Linux Kernel bug report (includes fix)
@ 2004-08-09 12:03 Joerg Schilling
  2004-08-09 13:05 ` Alan Cox
  2004-08-10 22:58 ` Horst von Brand
  0 siblings, 2 replies; 16+ messages in thread
From: Joerg Schilling @ 2004-08-09 12:03 UTC (permalink / raw)
  To: schilling, vonbrand; +Cc: axboe, linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

>From vonbrand@inf.utfsm.cl  Sun Aug  8 05:59:28 2004

>Joerg Schilling <schilling@fokus.fraunhofer.de> said:
>> -	Linux Kernel include files (starting with Linux-2.5) are buggy and 
>> 	prevent compilation.

>They do not, the kernel compiles just fine. They are _not_ to be used for
>random userspace programs.

As you don't know how kernel/user interfaces are handled, it would be wise for 
you to keep quiet.....

Jörg

-- 
 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
       schilling@fokus.fraunhofer.de	(work) chars I am J"org Schilling
 URL:  http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Linux Kernel bug report (includes fix)
@ 2004-08-07 12:51 Joerg Schilling
  2004-08-07 13:26 ` Måns Rullgård
  2004-08-08  1:18 ` Horst von Brand
  0 siblings, 2 replies; 16+ messages in thread
From: Joerg Schilling @ 2004-08-07 12:51 UTC (permalink / raw)
  To: axboe, schilling; +Cc: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1433 bytes --]

-	Linux Kernel include files (starting with Linux-2.5) are buggy and 
	prevent compilation. Many files may be affected but let me name
	the most important files for me:

	-	/usr/src/linux/include/scsi/scsi.h depends on a nonexistant
		type "u8". The correct way to fix this would be to replace
		any "u8" by "uint8_t". A quick and dirty fix is to call:

			"change u8 __u8 /usr/src/linux/include/scsi/scsi.h"

		ftp://ftp.berlios.de/pub/change/

	-	/usr/src/linux/include/scsi/sg.h includes "extra text" "__user"
		in some structure definitions. This may be fixed by adding
		#include <linux/compiler.h> somewhere at the beginning of
		/usr/src/linux/include/scsi/sg.h

	This bug has been reported several times (starting with Linux-2.5).

	Time to fix: 5 minutes.
	
I did spend far to much time with the discussion on LKML..... so I need a cue
whether it makes sense to continue this discussion.

You now again have the bug report _and_ the fix in a single short mail.

If the bug mentioned above is not fixed in Linux-2.6.8, I will asume that it 
makes no sense to spend further time in discussions with LKML.

Best regards

Jörg

-- 
 EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
       schilling@fokus.fraunhofer.de	(work) chars I am J"org Schilling
 URL:  http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-08-12 15:31 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-10 12:34 Linux Kernel bug report (includes fix) Joerg Schilling
2004-08-10 16:24 ` Jim Gifford
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox