SUMMARY: compiling MyODBC-2.50.28 with gcc on 5.0

From: Irvine Short <irvine_at_sanbi.ac.za>
Date: Mon, 28 Aug 2000 15:24:19 +0200

This wasn't straightforward so here it is for anyone else:

First, install libtool-1.3.4, unixODBC-1.8.8, and of course
mysql-3.22.32. Oh yes, and gcc 2.95.2 and gmake 3.7 or later.

Then, edit the configure script as otherwise it doesn't find the floor
function in one of the math libs.

Here's the diff:
# diff configure ../MyODBC-2.50.28.orig/configure
1957c1957
< LIBS="-L$mysql_libs"
---
> LIBS="-L$mysql_libs -lm"
1968c1968
< LIBS="-lmysqlclient  $LIBS"
---
> LIBS="$LIBS -lmysqlclient  "
1981c1981
< if { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest${ac_exeext}; then
---
> if { (eval echo configure:1982: \"$ac_link\") 1>&5; (eval $ac_link) ; } && test -s conftest${ac_exeext}; then
# 
------end of diff--------
Now run
CC=gcc
CXX=gcc
CXXFLAGS=-O3
CFLAGS=-O
and export all the above
Now, the configure script doesn't recognise Alpha EV6 with Tru64 5.0 so
we have to give it a --host=alphaev56-dec-osf4.0 like below:
# ./configure --prefix=/usr/local/MyODBC
--with-mysql-libs=/usr/local/mysql/lib/mysql
--with-mysql-includes=/usr/local/mysql/include/mysql
--with-unixODBC=/usr/local/unixODBC
--with-mysql-sources=../mysql-3.22.32/ --host=alphaev56-dec-osf4.0
Now run a make and a make install.
-- 
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 - 13:25:39 NZST

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