List:General Discussion« Previous MessageNext Message »
From:Michael Hall Date:March 17 1999 1:51pm
Subject:Re: glibc2 bug ???
View as plain text  
On Wed, Mar 17, 1999 at 01:48:08PM +0200, Michael Widenius wrote:

> (/tmp) rpm -q -f /usr/include/termcap.h
> libtermcap-devel-2.0.8-10
> The above version of libtermcap uses the following header files:
> #include <features.h>
> #include <termios.h>
> #include <sys/types.h>
> To fix the above error, one have to modify and test configure on a
> machine that shows the above error.
> Note that the code in MySQL looks as follows:
> ------
> #if defined(HAVE_TERMIOS)
> #include <termios.h>
> #include <unistd.h>
> #elif defined(HAVE_TERMBITS_H)
> #include <termbits.h>
> #elif defined(HAVE_ASM_TERMBITS_H)
> #include <asm/termbits.h>			// Standard linux
> #endif
> -----
> In other words, if one has termbits.h installed:
> (/tmp) rpm -q -f /usr/include/termbits.h
> glibc-devel-2.0.7-29
> Then one shouldn't get the problem that happened to Phil.

  I see now why I didn't have the problem, I don't use RPM's :-) In all
seriousness though I have a Slackware based system which I've heavily
modified. I don't have an actual 'termcap' lib as I use 'ncurses' setup
as straight 'terminfo', my '' is just a link to ''
with what I guess is just a token <termcap.h> file for compatibility, it only
includes <sys/types.h>. Also glibc-2.1 (which Phil and I are using) doesn't
have <termbits.h> anymore, its been replaced by <bits/termios.h> which is
included by <termios.h> and shouldn't be called directly.
  Hmm, now that I've said that I don't understand it, Phil should have a
<termios.h> (both glibc 2.0.7 and 2.1 have it) so it should meet the first
condition and be done, if one has either <termios.h> or <termbits.h> then
<asm/termbits.h> shouldn't be included. I wonder why its including both
<termios.h> and <asm/termbits.h> for Phil ?

> The many different Linux/libc versions/combinations are sometimes a
> real pain...

  I can see that :-)

Anything that kills you makes you... well, dead.

Mike Hall <mhall@stripped>, (MH993)   -
System Administrator (*nix, Perl, CGI hacker, certified OS/2 Specialist)
glibc2 bug ???Phil Wilshire17 Mar
  • glibc2 bug ???Michael Widenius17 Mar
    • Re: glibc2 bug ???Michael Hall17 Mar
      • Re: glibc2 bug ???Michael Widenius17 Mar
        • Re: glibc2 bug ???Michael Hall17 Mar
  • Performance And, What am I MissingVan17 Mar
    • Performance And, What am I MissingMichael Widenius17 Mar
RE: glibc2 bug ???Robin Bowes17 Mar