This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Conflicting include tree's (glibc <-> kernel)
- To: "H.J. Lu" <hjl@lucon.org>
- Subject: Re: Conflicting include tree's (glibc <-> kernel)
- From: Robert Stockmann <stock@sba.nl>
- Date: Sun, 2 Aug 1998 22:38:41 +0200 (MET DST)
- cc: GNU C Library <libc-hacker@cygnus.com>, Linus Torvalds <torvalds@transmeta.com>
On Sun, 2 Aug 1998, H.J. Lu wrote:
> Date: Sun, 2 Aug 1998 11:06:05 -0700 (PDT)
> From: "H.J. Lu" <hjl@lucon.org>
> To: Robert Stockmann <stock@sba.nl>
> Cc: GNU C Library <libc-hacker@cygnus.com>,
> Linus Torvalds <torvalds@transmeta.com>
> Subject: Re: Conflicting include tree's (glibc <-> kernel)
>
> >
> > Hi,
> >
> > Glibc based Linux distribs (RedHat 5.x) are to me a bit confusing.
> >
> > For instance try to build kermit from source. Within that the
cku192.tar.gz was long ago Kludged to get it working with Linux.
I removed the kludge and it compiles clean with glibc2.
The kludge was including kernel includes.
>
> glibc 2 does a translation between the user termios and the kernel
> termios, just like many other data structures. But glibc may miss
> a few places. Please send me a bug report with a simple testcase. I
> will fix it.
Applications should be looked over by maintainers for Linux Kludges
which got it working long ago. Here's a patch for cku192.tar.gz :
diff -u -r kermit/ckutio.c kermit.glibc2/ckutio.c
--- kermit/ckutio.c Mon Nov 25 01:20:49 1996
+++ kermit.glibc2/ckutio.c Sun Aug 2 22:18:11 1998
@@ -665,8 +665,7 @@
/* Kludge to fix redefinition in <linux/wait.h> */
#undef WNOHANG
#undef WUNTRACED
-#include <linux/fs.h>
-#include <linux/tty.h>
+#include <termio.h> /* Linux glibc2 needs it */
#include <sys/time.h>
#ifdef LINUXHISPEED
#include <linux/serial.h>
Robert
+============================+------------------------------------------
|Robert M. Stockmann |
+----------------------------+
|SBA Automatisering |
| Networking Engineer/ |
| UNIX Consultant |
| E-Mail: stock@sba.nl |
+============================+