List:General Discussion« Previous MessageNext Message »
From:Phil Wilshire Date:March 17 1999 12:29am
Subject:glibc2 bug ???
View as plain text  
Hi,
I have tried to compile under a new RedHet release.
I have got a compile error and the following note from Redhat...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Phil Wilshire wrote:
> 
> hi,
> I get the following compile fail with Mysql on 5.8.6
> 
> (cd .libs && ln -s ../libmysqlclient.la libmysqlclient.la)
> c++ -DUNDEF_THREADS_HACK -I./../include -I../include -I./.. -I.. -I..
> -O   -fno-implicit-templates -DDBUG_OFF -D_FILE_OFFSET_BITS=64 -c
> mysql.cc
> In file included from /usr/include/termios.h:40,
>                  from /usr/include/termcap.h:22,
>                  from mysql.cc:43:
> /usr/include/bits/termios.h:28: warning: `NCCS' redefined
> /usr/include/asm/termbits.h:10: warning: this is the location of the
> previous definition
> In file included from /usr/include/termios.h:40,
>                  from /usr/include/termcap.h:22,
>                  from mysql.cc:43:
> /usr/include/bits/termios.h:30: redefinition of `struct termios'
> /usr/include/asm/termbits.h:18: previous definition here
> make[2]: *** [mysql.o] Error 1
> make[2]: Leaving directory `/opt/mysql/mysql-3.22.20a/client'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/opt/mysql/mysql-3.22.20a'
> make: *** [all-recursive-am] Error 2
> 
> this looks like some problem back in the system include directories.
> 
> D'ya need a bugzilla on this one yet ??
> 
Nope it's a mysql bug with glibc one should not include asm/ or linux/
thingies since glibc is trying to abstract all that kinda stuff into the
libc.

So just remove the include of asm/something in the file which fails to
compile, afaik.

Atleast that was it last time  a friend of mine tried mysql with
glibc2.1
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
is there any official statement on this from mysql's view point ???

removing the offending line in mysql.cc seemed to fix the problem.

Regards
  Phil Wilshire
Thread
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