Thanks Pierre,

That seems to have done it. The compilation went through without problems
after setting the CFLAGS variable to -m64.

I also edited the libtool file and changed all occurrences of pthread to pthreads
which removed the error messages related to that flag.

Thanks again,
/Mikael

Mikael Nordström
System Administrator - Synapse Mobile Networks
Phone: +46 8 55808827
Mobile: +46 735 241583
E-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


Pierre Girard wrote:
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



Reply via email to