Bug #69895 mysql 5.6.13 i386 ships with 64bit libraries
Submitted: 1 Aug 2013 9:34 Modified: 14 Aug 2013 12:37
Reporter: Leena Heino Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S1 (Critical)
Version:5.6.13 OS:Solaris (i386)
Assigned to: CPU Architecture:Any
Tags: installation, regression

[1 Aug 2013 9:34] Leena Heino
Description:
mysql-5.6.13-solaris-10-i386.tar.gz is supposed to be be 32bit but it is pacakaged with 64-bit version of lib/libstrlport.so.1. This makes it impossible to use the included binaries like mysql command

How to repeat:
Just unpack tar.gz and do:
% file mysql-5.6.13-solaris-10-i386/lib/libstrlport.so.1
ELF 64-bit LSB dynamic lib AMD64 Version 1 ...

Try to run mysql command:
% mysql-5.6.13-solaris-10-i386/bin/mysql
ld.so.1: mysql: fatal: ... libstrlport.so.1: wrong ELF class: ELFCLASS64

Suggested fix:
Repackage the tar.gz with correct 32bit libstrlport.so.1
[1 Aug 2013 10:33] Arnaud Adant
Thank you for your feedback. 

The bug is verified as described :

mysql-5.6.13-solaris10-i386/lib/libstlport.so.1:        ELF 64-bit LSB dynamic lib AMD64 Version 1 [SSE2 SSE CMOV FPU], dynamically linked, not stripped, no debugging information available

mysql-5.6.13-solaris10-i386/bin/mysql
ld.so.1: mysql: fatal: /tmp/mysql-5.6.13-solaris10-i386/bin/../lib/libstlport.so.1: wrong ELF class: ELFCLASS64
Killed

ldd mysql-5.6.13-solaris10-i386/bin/mysql
        libthread.so.1 =>        /lib/libthread.so.1
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libm.so.2 =>     /lib/libm.so.2
        librt.so.1 =>    /lib/librt.so.1
        libcurses.so.1 =>        /lib/libcurses.so.1
        libstlport.so.1 =>       /tmp/mysql-5.6.13-solaris10-i386/bin/../lib/libstlport.so.1  - wrong ELF class: ELFCLASS64
        libCrun.so.1 =>  /usr/lib/libCrun.so.1
        libc.so.1 =>     /lib/libc.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libmd.so.1 =>    /lib/libmd.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
[7 Aug 2013 11:35] Bjørn Munch
A 64 bit version of libstlport.so had been put in a location where the builds accidentally picked it up instead of the 32 OR 64 bit library that should have been used.

All Solaris 10 x86 packages (32 as well as 64 bit) have now been rebuilt with the correct libstlport.so and re-uploaded to dev.mysql.com
[14 Aug 2013 12:37] Bjørn Munch
Corrected packages were uploaded last week.