From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96746900300927.tru64-unix-managers.marc@archive.invalid> From: Irvine Short Date: Mon, 28 Aug 2000 13:24:19 +0000 To: tru64-unix-managers Subject: SUMMARY: compiling MyODBC-2.50.28 with gcc on 5.0 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96746900300927 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