From: Michael Hall Date: March 17 1999 1:51pm Subject: Re: glibc2 bug ??? List-Archive: http://lists.mysql.com/mysql/420 Message-Id: <19990317055146.A13396@riverside.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 > #include > #include > > 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 > #include > #elif defined(HAVE_TERMBITS_H) > #include > #elif defined(HAVE_ASM_TERMBITS_H) > #include // 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 'libtermcap.so' is just a link to 'libncurses.so' with what I guess is just a token file for compatibility, it only includes . Also glibc-2.1 (which Phil and I are using) doesn't have anymore, its been replaced by which is included by and shouldn't be called directly. Hmm, now that I've said that I don't understand it, Phil should have a (both glibc 2.0.7 and 2.1 have it) so it should meet the first condition and be done, if one has either or then shouldn't be included. I wonder why its including both and 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 , (MH993) - http://www.riverside.org System Administrator (*nix, Perl, CGI hacker, certified OS/2 Specialist)