SUMMARY: compiling MySQL with gcc on Tru64 5.0

From: Irvine Short <irvine_at_sanbi.ac.za>
Date: Mon, 28 Aug 2000 12:38:05 +0200

OK, so it was a case of RTFM. I just had to find which FM to R!

Here's a link to the necessary info:
http://www.mysql.com/documentation/mysql/bychapter/manual_Installing.html#Alpha-DEC-Unix

Thanks to Antony Somerville, Sinisa Milivojevic and the others.

To cut a long story short, the trick is to use a combo of Compaq cc for
c and gcc for the c++ bits, like this:

CC=cc CFLAGS=-O CXX=gcc CXXFLAGS=-O3 ./configure \
--prefix=/usr/local/mysql

Then you will cop this error:
***
With `gcc' 2.95.2, you will probably run into the
following compile
error:

     sql_acl.cc:1456: Internal compiler error in
`scan_region', at except.c:2566
     Please submit a full bug report.

To fix this you should change to the `sql' directory and
do a 'cut and
paste' of the last `gcc' line, but change `-O3' to `-O0'
(or add `-O0'
immediately after `gcc' if you don't have any `-O'
option on your
compile line. After this is done you can just change
back to the top
level directly and run `make' again.

By the way, I didn't get this right so I edited the Makefile in the sql
directory and just changed all the O3's to O0's

I haven't yet done anything with MySQL but the daemon starts & stops and
mysqladmin can talk to it.


-- 
Irvine Short
Sys Admin
SANBI, University of the Western Cape, South Africa
http://www.sanbi.ac.za 
tel: +27-21-959 3645
fax: +27-21-959 2512
cel: +27-82-494 3828
Received on Mon Aug 28 2000 - 10:39:10 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT