Description:
We want to connect with mysql database via odbc driver. Our system is AIX5.1 and mysql version is 3.23.58.
1. I can not find myodbc shared library for AIX5.1 from mysql website. We download MyODBC-3.51.07-ibm-aix5.1.0.0-powerpc.tar.gz. There is not shared library.
How can we get shared library of myodbc driver?
2. We also download myodbc source and tried to compile it. Unfortunately we got compiling error when I compiled catalog.c
How can we solve the compile error message if we have to build my own myodbc driver.
We appreciate for your help.
The following is the compiling error messages:
Making all in driver
make all-am
source='catalog.c' object='catalog.lo' libtool=yes depfile='.deps/catalog.Plo' tmpdepfile='.deps/catalog.TPlo' depmode=gcc /bin/sh ../depcomp /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local//include -O3 -DDBUG_OFF -DPORTABLE_GUI -I/home/mysql/include -c -o catalog.lo catalog.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local//include -O3 -DDBUG_OFF -DPORTABLE_GUI -I/home/mysql/include -c catalog.c -Wp,-MD,.deps/catalog.TPlo -o catalog.o
In file included from catalog.c:49:
myodbc3.h:72: parse error before string constant
In file included from myodbc3.h:116,
from catalog.c:49:
/usr/local/include/odbcinst.h:33: parse error before `HWND'
/usr/local/include/odbcinst.h:33: warning: no semicolon at end of struct or union
/usr/local/include/odbcinst.h:35: warning: data definition has no type or storage class
/usr/local/include/odbcinst.h:118: parse error before `hwndParent'
/usr/local/include/odbcinst.h:122: parse error before `hwndParent'
/usr/local/include/odbcinst.h:123: parse error before `hwndParent'
/usr/local/include/odbcinst.h:125: parse error before `hwnd'
/usr/local/include/odbcinst.h:150: parse error before `hwndParent'
/usr/local/include/odbcinst.h:187: parse error before `hwndParent'
/usr/local/include/odbcinst.h:234: parse error before `hwndParent'
/usr/local/include/odbcinst.h:239: parse error before `hwndParent'
/usr/local/include/odbcinst.h:243: parse error before `hwndParent'
catalog.c:258: incompatible types in initialization
catalog.c:258: initializer element is not constant
catalog.c:258: (near initialization for `SQLTABLES_fields[0].type')
catalog.c:258: warning: initialization makes integer from pointer without a cast
catalog.c:258: warning: excess elements in struct initializer
catalog.c:258: warning: (near initialization for `SQLTABLES_fields[0]')
catalog.c:258: warning: excess elements in struct initializer
catalog.c:258: warning: (near initialization for `SQLTABLES_fields[0]')
catalog.c:259: incompatible types in initialization
catalog.c:259: initializer element is not constant
catalog.c:259: (near initialization for `SQLTABLES_fields[1].type')
catalog.c:259: warning: initialization makes integer from pointer without a cast
catalog.c:259: warning: excess elements in struct initializer
catalog.c:259: warning: (near initialization for `SQLTABLES_fields[1]')
catalog.c:259: warning: excess elements in struct initializer
catalog.c:259: warning: (near initialization for `SQLTABLES_fields[1]')
catalog.c:260: incompatible types in initialization
catalog.c:260: initializer element is not constant
catalog.c:260: (near initialization for `SQLTABLES_fields[2].type')
catalog.c:260: warning: initialization makes integer from pointer without a cast
catalog.c:260: warning: excess elements in struct initializer
catalog.c:260: warning: (near initialization for `SQLTABLES_fields[2]')
catalog.c:260: warning: excess elements in struct initializer
catalog.c:260: warning: (near initialization for `SQLTABLES_fields[2]')
catalog.c:261: incompatible types in initialization
catalog.c:261: initializer element is not constant
......
How to repeat:
We failed to find a shared library of myodbc driver on AIX5.1.