PR: Linux binaries built for glibc 2.0 don"t work on RedHat betas with lastest glibc

PR: Linux binaries built for glibc 2.0 don"t work on RedHat betas with lastest glibc

am 29.12.2002 03:13:21 von Bernardo Innocenti

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>Description:
Most Linux binaries available from mysql.com are compiled to work with gli=
bc versions as old as 2.0,
but the latest glibc 2.3.2 shipped by RedHat has apparently dropped suppor=
t for 2.0 symbols.
This is what you get from mysqlcc:

./mysqlcc: relocation error: ./mysqlcc: symbol errno, version GLIBC_2.0 n=
ot defined in
file libc.so.6 with link time reference

>How-To-Repeat:
Install RH 8.1.92 (Phoebe) or RawHide and run mysqlcc or try using libmysq=
l.so shipped
with MySQL 4.0.7 RPM binaries.
>Fix:
Recompile on a system with glibc 2.1 or higher.

>Originator: Bernardo Innocenti
>MySQL support: none
>Synopsis: MySQL binaries built for glibc 2.0 don't work with latest glibc =
2.3.2
>Severity: serious
>Priority: medium
>Category: mysql
>Class: sw-bug
>Release: mysql-3.23.54 (Source distribution)

>Environment:
System: Linux beetle.trilan 2.4.20-2.2custom #3 Thu Dec 26 19:04:19 CET 200=
2 i686 athlon i386 GNU/Linux
Architecture: i686

Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/b=
in/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.1/specs
Configured with: ../configure --prefix=3D/usr --mandir=3D/usr/share/man --i=
nfodir=3D/usr/share/info --enable-shared --enable-threads=3Dposix --disable=
=2Dchecking --with-system-zlib --enable-__cxa_atexit --host=3Di386-redhat-l=
inux
Thread model: posix
gcc version 3.2.1 20021207 (Red Hat Linux 8.0 3.2.1-2)
Compilation info: CC=3D'i386-redhat-linux-gcc' CFLAGS=3D'-O2 -march=3Di386=
-mcpu=3Di686 -g -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE=
' CXX=3D'i386-redhat-linux-g++' CXXFLAGS=3D'-O2 -march=3Di386 -mcpu=3Di68=
6 -g -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -fno-rtti -=
fno-exceptions' LDFLAGS=3D''
LIBC:=20
lrwxrwxrwx 1 root root 13 Dec 28 08:52 /lib/libc.so.6 -> l=
ibc-2.3.1.so
=2D -rwxr-xr-x 1 root root 1226072 Dec 19 12:41 /lib/libc-2.3.1=
so
=2D -rw-r--r-- 1 root root 2231738 Dec 19 11:44 /usr/lib/libc.a
=2D -rw-r--r-- 1 root root 204 Dec 19 11:35 /usr/lib/libc.so
Configure command: ./configure '--host=3Di386-redhat-linux' '--build=3Di386=
=2Dredhat-linux' '--target=3Di386-redhat-linux-gnu' '--program-prefix=3D' '=
=2D-prefix=3D/usr' '--exec-prefix=3D/usr' '--bindir=3D/usr/bin' '--sbindir=
=3D/usr/sbin' '--sysconfdir=3D/etc' '--datadir=3D/usr/share' '--includedir=
=3D/usr/include' '--libdir=3D/usr/lib' '--libexecdir=3D/usr/libexec' '--loc=
alstatedir=3D/var' '--sharedstatedir=3D/usr/com' '--mandir=3D/usr/share/man=
' '--infodir=3D/usr/share/info' '--without-readline' '--without-debug' '--e=
nable-shared' '--with-extra-charsets=3Dcomplex' '--with-bench' '--localstat=
edir=3D/var/lib/mysql' '--with-unix-socket-path=3D/var/lib/mysql/mysql.sock=
' '--with-mysqld-user=3Dmysql' '--with-extra-charsets=3Dall' '--with-innodb=
' '--enable-local-infile' '--enable-large-files=3Dyes' '--enable-largefile=
=3Dyes' '--with-berkeley-db-includes=3D/usr/include' '--with-berkeley-db-li=
bs=3D/usr/lib' '--with-thread-safe-client' 'CFLAGS=3D-O2 -march=3Di386 -mcp=
u=3Di686 -g -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE' 'CX=
XFLAGS=3D-O2 -march=3Di386 -mcpu=3Di686 -g -D_GNU_SOURCE -D_FILE_OFFSET_BIT=
S=3D64 -D_LARGEFILE_SOURCE -fno-rtti -fno-exceptions' 'build_alias=3Di386-r=
edhat-linux' 'host_alias=3Di386-redhat-linux' 'target_alias=3Di386-redhat-l=
inux-gnu'

=2D --=20
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+DlpBltU4TfxqZsoRAnCrAJ4kcmiOFDTUW3Bt18Z4pXyj0fINxQCe MZwA
rvWHfVuUEWdWbF4ZqwWMv5Q=3D
=3DNhdd
=2D----END PGP SIGNATURE-----


------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13375@lists.mysql.com
To unsubscribe, e-mail

Re: PR: Linux binaries built for glibc 2.0 don"t work on RedHat betas with lastest glibc

am 30.12.2002 12:21:47 von Sinisa Milivojevic

Bernardo Innocenti writes:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> >Description:
> Most Linux binaries available from mysql.com are compiled to work with glibc versions as old as 2.0,
> but the latest glibc 2.3.2 shipped by RedHat has apparently dropped support for 2.0 symbols.
> This is what you get from mysqlcc:
>
> ./mysqlcc: relocation error: ./mysqlcc: symbol errno, version GLIBC_2.0 not defined in
> file libc.so.6 with link time reference
>
> >How-To-Repeat:
> Install RH 8.1.92 (Phoebe) or RawHide and run mysqlcc or try using libmysql.so shipped
> with MySQL 4.0.7 RPM binaries.

Thank you for your report, but latest MySQL binaries, including 4.0.7
were built with glibc 2.2.

The above error is some problem with glibc 2.3 which are not stable
yet, and as such will not be yet supported by us.

--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com

Join MySQL Users Conference and Expo:
http://www.mysql.com/events/uc2003/


------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13379@lists.mysql.com
To unsubscribe, e-mail