Re: mysql-connector-odbc-5.1.11 Fails to build

"Martin J. Evans" <[email protected]> Fri, 03 Aug 2012 14:18:06 +0100
Newsgroups gmane.comp.db.mysql.odbc
Organization Easysoft Limited
Message-ID <[email protected]>
On 03/08/12 14:03, Caleb Ram=EDrez wrote:
> Hello,
>
> I'm trying to build mysql-connector-odbc on AIX 6.1. I've installed MyS=
QL client libraries and include files from source in /usr/local/mysql. Th=
e cmake version is 2.8.8. There are insalled  unixODBC and iODBC managers=
 and cmake finishes successfully. But when make is launched it exits with=
 folowing error:
>
> Scanning dependencies of target myodbc3u
> [  2%] Building C object util/CMakeFiles/myodbc3u.dir/stringutil.c.o
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c:1=
27:15: error: macro "my_free" requires 2 arguments, but only 1 given
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c: =
In function 'sqlchar_as_sqlwchar':
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c:1=
27: error: 'my_free' undeclared (first use in this function)
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c:1=
27: error: (Each undeclared identifier is reported only once
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/util/stringutil.c:1=
27: error: for each function it appears in.)
>
> -------I "fixed" the problem by setting same definitions for macro my_f=
ree on dirver/driver.h and util/stringutil.h but another error came up:--=
---------
>
> Target "util/CMakeFiles/myodbc3u.dir/build" is up to date.
> [  8%] Built target myodbc3u
> [ 10%] Building C object driver/CMakeFiles/myodbc5.dir/ansi.c.o
> [ 12%] Building C object driver/CMakeFiles/myodbc5.dir/catalog.c.o
> [ 14%] Building C object driver/CMakeFiles/myodbc5.dir/catalog_no_i_s.c=
.o
> [ 16%] Building C object driver/CMakeFiles/myodbc5.dir/connect.c.o
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c: I=
n function 'MySQLDriverConnect':
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:61=
4: error: 'RTLD_GLOBAL' undeclared (first use in this function)
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:61=
4: error: (Each undeclared identifier is reported only once
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:61=
4: error: for each function it appears in.)
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:61=
4: error: 'RTLD_LAZY' undeclared (first use in this function)
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:61=
4: warning: assignment makes pointer from integer without a cast
> /SOFTWARE/AIX/MYSQL/mysql-connector-odbc-5.1.11-src/driver/connect.c:63=
8: warning: passing argument 3 of 'set_dbc_error' makes pointer from inte=
ger without a cast
>
> And now I'm stucked here, can anybody help me please?
>
> Regards
>
>
>

Those macros (RTLD_*) are in dlfcn.h normally - see man page for dlopen. =
I haven't built mysql odbc driver for years and it may use libtool in whi=
ch case you need to install that. libtool provides a wrapper around dlope=
n etc.

Martin
--=20
Martin J. Evans
Easysoft Limited
http://www.easysoft.com

-- 
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe:    http://lists.mysql.com/myodbc