From: Jeff S. <why...@ya...> - 2005-07-29 03:48:59
|
--- "Zachary T. Wilson" <zw...@um...> wrote: > Running ./configure --with-iodbc=/usr/local/lib ... I think in your case, you should have --with-iodbc=/usr/local (assuming the library location is /usr/local/lib/libiodbc.so). > ./configure: line 1191: syntax error near unexpected token `mdbtools,0.6pre1' > ./configure: line 1191: `AM_INIT_AUTOMAKE(mdbtools,0.6pre1)' I am guessing either the autotools (automake/autoconf/libtool) aren't properly installed, or they don't like the old AM_INIT_AUTOMAKE syntax. You might try replacing the lines at the beginning of configure.ac AC_INIT(src/extras/mdb-dump.c) AM_INIT_AUTOMAKE(mdbtools,0.6pre1) with AC_INIT(mdbtools, 0.6pre1, [mdb...@li...]) AC_CONFIG_SRCDIR(src/extras/mdb-dump.c) AM_INIT_AUTOMAKE and rerunning the autogen.sh > I am getting this for the iodbc manager: > > littlebird# iodbctest > iODBC Demonstration program > This program shows an interactive SQL processor > Driver Manager: 03.52.0205.0204 > > Enter ODBC connect string (? shows list): DSN=mydb > 1: SQLDriverConnect = [iODBC][Driver Manager]/usr/local/lib/libmdbodbc: undefined > symbol: log10 (0) SQLSTATE=00000 > 2: SQLDriverConnect = [iODBC][Driver Manager]Specified driver could not be loaded (0) > SQLSTATE=IM003 The 'undefined symbol: log10' error has to with not linking against the math library, i.e. libm. The fix for this would be to edit src/odbc/Makefile, adding ' -lm' to the end of the 'LIBS = ' line. Note that mdbtools in cvs no longer calls any math library functions. -- Jeff Smith __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |