Building 64bit MySQL on Solaris 10

From: Mike Brodbelt (mike@coruscant.demon.co.uk)
Date: Wed May 10 2006 - 07:27:30 EDT


Hi,

I'm trying to build a 64 bit copy of MySQL on a SunFire 280R running
Solaris 10. I've got past most of the glitches that have come up in the
build process, but this one is currently stopping me. The build fails
with the following:-

gcc -DDBUG_OFF -m64 -fno-implicit-templates -fno-exceptions -fno-rtti
-DHAVE_RWLOCK_T -m64 -o .libs/gen_lex_hash gen_lex_hash.o -L/lib/64
-L/usr/sfw/lib/64 ../myisam/libmyisam.a ../myisammrg/libmyisammrg.a
../heap/libheap.a ../vio/libvio.a ../mysys/libmysys.a ../dbug/libdbug.a
../regex/libregex.a ../strings/libmystrings.a ../zlib/.libs/libz.so
-lpthread -lthread -lpthread -lthread -lpthread -lthread -lpthread
-lthread -lpthread -lthread -lposix4 -lcrypt -lgen -lsocket -lnsl -lm
-lpthread -lthread -Wl,-R -Wl,/usr/local/mysql/lib/mysql
creating gen_lex_hash
./gen_lex_hash > lex_hash.h
ld.so.1: gen_lex_hash: fatal: /usr/sfw/lib/libgcc_s.so.1: wrong ELF
class: ELFCLASS32

I've stripped the build script down to use a fairly minimal set of
compile options:-

CC=gcc
CFLAGS="-m64"
CXX=gcc
CXXFLAGS="-m64"
LDFLAGS="-m64 -L/lib/64 -L/usr/sfw/lib/64"
LD_LIBRARY_PATH="/opt/sfw/lib"

I'm running the build using GNU make, GCC 3.4 as provided with Solaris
10, and the Sun linker. It's obviously trying to link with the 32 bit
library in /usr/sfw/lib, as opposed to the 64-bit version in
/usr/sfw/lib/64, but I can't see what I'm doing wrong in the setup.

Any help much appreciated,

Mike
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:49 EDT