Mikael Nordstrom wrote:
I have downloaded and installed MySQL 5.0.45 as a binary in pkg format
and
I'm using gcc as compiler.
My configure command looks like this:
../configure --with-storage-driver=mysql_drv
--enable-preferences-extension --enable-clamav --enable-daemon
--with-mysql-includes=/opt/mysql/mysql/include
--with-mysql-libraries=/opt/mysql/mysql/lib --enable-virtual-users
Perhaps you only need to tell the compiler to create 64 bits binaries.
I assume that you're using the gcc that comes with solaris and by
default it creates 32 bits binary so it's not going to work with 64 bits
libraries.
> which gcc
/usr/sfw/bin/gcc
>gcc a.c
> file a.out
a.out: ELF 32-bit LSB executable 80386 Version 1, dynamically
linked, not stripped, no debugging information available
> gcc -m64 a.c
> file a.out
a.out: ELF 64-bit LSB executable AMD64 Version 1, dynamically
linked, not stripped, no debugging information available