tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: compiling MyODBC-2.50.28 with gcc on 5.0
@ 2000-08-28 13:24 Irvine Short
  0 siblings, 0 replies; only message in thread
From: Irvine Short @ 2000-08-28 13:24 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-08-28 13:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-28 13:24 SUMMARY: compiling MyODBC-2.50.28 with gcc on 5.0 Irvine Short

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox