Problems building myodbc driver from Subversion repository

Problems building myodbc driver from Subversion repository

am 05.07.2006 12:22:03 von Anders Nordby

Hi,

We're having problems building MyODBC from the Subversion repository:

oasap@oaslog:~/connector-odbc3$ libtoolize
You should add the contents of `/usr/share/aclocal/libtool.m4' to
`aclocal.m4'.
oasap@oaslog:~/connector-odbc3$ cp /usr/share/aclocal/libtool.m4
aclocal.m4
oasap@oaslog:~/connector-odbc3$ libtoolize --force
oasap@oaslog:~/connector-odbc3$ autoheader
autoheader: WARNING: Using auxiliary files such as `acconfig.h',
`config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for
`config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template
without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced,
see the
autoheader: WARNING: documentation.
oasap@oaslog:~/connector-odbc3$ aclocal
oasap@oaslog:~/connector-odbc3$ automake
oasap@oaslog:~/connector-odbc3$ autoconf
oasap@oaslog:~/connector-odbc3$ ./configure --disable-gui
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) mawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for compress in -lz... yes
checking for lt_dlinit in -lltdl... yes
../configure: line 19452: 0: command not found
checking for X... no
checking for uname... /bin/uname
checking operating system... Linux
checking if we are using gcc >= 3.x... yes (gcc (GCC) 3.3.5 (Debian
1:3.3.5-13))
checking for localtime_r in -lc... yes
checking for perl... /usr/bin/perl
checking for mysql_real_query... yes
checking for mysql_real_query... (cached) yes
END OF MYSQL CONFIGURATION

ODBC DRIVER MANAGER CONFIGURATION - LIBRARIES AND HEADERS
checking for isql... /usr/bin/isql
checking for unixODBC version... unixODBC 2.2.4
checking sql.h usability... yes
checking sql.h presence... yes
checking for sql.h... yes
checking sqlext.h usability... yes
checking sqlext.h presence... yes
checking for sqlext.h... yes
checking sqltypes.h usability... yes
checking sqltypes.h presence... yes
checking for sqltypes.h... yes
checking odbcinst.h usability... yes
checking odbcinst.h presence... yes
checking for odbcinst.h... yes
checking for SQLGetPrivateProfileString in -lodbcinst... yes
checking for SQLHENV... yes
checking for SQLHDBC... yes
checking for SQLHSTMT... yes
checking for SQLINTEGER... yes
checking for SQLUINTEGER... yes
checking for SQLSMALLINT... yes
checking for SQLUSMALLINT... yes
checking for SQLPOINTER... yes
checking for SQLHWND... yes
checking for SQLRETURN... yes
checking for SQLCHAR... yes
END OF DRIVER MANAGER CONFIGURATION

checking if debug mode is enabled... no
checking if building of samples is enabled... yes
checking if building of test is enabled... yes
checking if linking of test library is specified... no

configure: creating ./config.status
config.status: creating Makefile
config.status: creating MYODBCDbg/Makefile
config.status: creating MYODBCDbg/MYODBCDbgLib/Makefile
config.status: creating myodbc3u/Makefile
config.status: creating myodbc3/Makefile
config.status: creating myodbc3S/Makefile
config.status: creating myodbc3c/Makefile
config.status: creating myodbc3i/Makefile
config.status: creating myodbc3m/Makefile
config.status: creating samples/Makefile
config.status: creating test/Makefile
config.status: creating scripts/Makefile
config.status: creating myodbc3/myconf.h
config.status: executing depfiles commands
(..)
oasap@oaslog:~/connector-odbc3$ make
Making all in MYODBCDbg
make[1]: Entering directory `/home/oasap/connector-odbc3/MYODBCDbg'
Making all in MYODBCDbgLib
make[2]: Entering directory
`/home/oasap/connector-odbc3/MYODBCDbg/MYODBCDbgLib'
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I../../myodbc3 -isystem -I/usr/local//include -O3 -DDBUG_OFF
-I/usr/include/mysql -DBIG_JOINS=1 -MT MYODBCDbgConnectAttrString.lo -MD
-MP -MF ".deps/MYODBCDbgConnectAttrString.Tpo" -c -o
MYODBCDbgConnectAttrString.lo MYODBCDbgConnectAttrString.c; \
then mv -f ".deps/MYODBCDbgConnectAttrString.Tpo"
".deps/MYODBCDbgConnectAttrString.Plo"; else rm -f
".deps/MYODBCDbgConnectAttrString.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../../myodbc3 -isystem
-I/usr/local//include -O3 -DDBUG_OFF -I/usr/include/mysql -DBIG_JOINS=1
-MT MYODBCDbgConnectAttrString.lo -MD -MP -MF
..deps/MYODBCDbgConnectAttrString.Tpo -c MYODBCDbgConnectAttrString.c
-fPIC -DPIC -o .libs/MYODBCDbgConnectAttrString.o
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I../../myodbc3 -isystem -I/usr/local//include -O3 -DDBUG_OFF
-I/usr/include/mysql -DBIG_JOINS=1 -MT MYODBCDbgConnectOptionString.lo
-MD -MP -MF ".deps/MYODBCDbgConnectOptionString.Tpo" -c -o
MYODBCDbgConnectOptionString.lo MYODBCDbgConnectOptionString.c; \
then mv -f ".deps/MYODBCDbgConnectOptionString.Tpo"
".deps/MYODBCDbgConnectOptionString.Plo"; else rm -f
".deps/MYODBCDbgConnectOptionString.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../myodbc3 -isystem
-I/usr/local//include -O3 -DDBUG_OFF -I/usr/include/mysql -DBIG_JOINS=1
-MT MYODBCDbgConnectOptionString.lo -MD -MP -MF
..deps/MYODBCDbgConnectOptionString.Tpo -c MYODBCDbgConnectOptionString.c
-fPIC -DPIC -o .libs/MYODBCDbgConnectOptionString.o
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I../../myodbc3 -isystem -I/usr/local//include -O3 -DDBUG_OFF
-I/usr/include/mysql -DBIG_JOINS=1 -MT MYODBCDbgDiagFieldString.lo -MD
-MP -MF ".deps/MYODBCDbgDiagFieldString.Tpo" -c -o
MYODBCDbgDiagFieldString.lo MYODBCDbgDiagFieldString.c; \
then mv -f ".deps/MYODBCDbgDiagFieldString.Tpo"
".deps/MYODBCDbgDiagFieldString.Plo"; else rm -f
".deps/MYODBCDbgDiagFieldString.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../myodbc3 -isystem
-I/usr/local//include -O3 -DDBUG_OFF -I/usr/include/mysql -DBIG_JOINS=1
-MT MYODBCDbgDiagFieldString.lo -MD -MP -MF
..deps/MYODBCDbgDiagFieldString.Tpo -c MYODBCDbgDiagFieldString.c -fPIC
-DPIC -o .libs/MYODBCDbgDiagFieldString.o
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I../../myodbc3 -isystem -I/usr/local//include -O3 -DDBUG_OFF
-I/usr/include/mysql -DBIG_JOINS=1 -MT MYODBCDbgEnvAttrString.lo -MD -MP
-MF ".deps/MYODBCDbgEnvAttrString.Tpo" -c -o MYODBCDbgEnvAttrString.lo
MYODBCDbgEnvAttrString.c; \
then mv -f ".deps/MYODBCDbgEnvAttrString.Tpo"
".deps/MYODBCDbgEnvAttrString.Plo"; else rm -f
".deps/MYODBCDbgEnvAttrString.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../myodbc3 -isystem
-I/usr/local//include -O3 -DDBUG_OFF -I/usr/include/mysql -DBIG_JOINS=1
-MT MYODBCDbgEnvAttrString.lo -MD -MP -MF
..deps/MYODBCDbgEnvAttrString.Tpo -c MYODBCDbgEnvAttrString.c -fPIC
-DPIC -o .libs/MYODBCDbgEnvAttrString.o
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I../../myodbc3 -isystem -I/usr/local//include -O3 -DDBUG_OFF
-I/usr/include/mysql -DBIG_JOINS=1 -MT MYODBCDbgFunctionsString.lo -MD
-MP -MF ".deps/MYODBCDbgFunctionsString.Tpo" -c -o
MYODBCDbgFunctionsString.lo MYODBCDbgFunctionsString.c; \
then mv -f ".deps/MYODBCDbgFunctionsString.Tpo"
".deps/MYODBCDbgFunctionsString.Plo"; else rm -f
".deps/MYODBCDbgFunctionsString.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../myodbc3 -isystem
-I/usr/local//include -O3 -DDBUG_OFF -I/usr/include/mysql -DBIG_JOINS=1
-MT MYODBCDbgFunctionsString.lo -MD -MP -MF
..deps/MYODBCDbgFunctionsString.Tpo -c MYODBCDbgFunctionsString.c -fPIC
-DPIC -o .libs/MYODBCDbgFunctionsString.o
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I../../myodbc3 -isystem -I/usr/local//include -O3 -DDBUG_OFF
-I/usr/include/mysql -DBIG_JOINS=1 -MT MYODBCDbgHandleTypeString.lo -MD
-MP -MF ".deps/MYODBCDbgHandleTypeString.Tpo" -c -o
MYODBCDbgHandleTypeString.lo MYODBCDbgHandleTypeString.c; \
then mv -f ".deps/MYODBCDbgHandleTypeString.Tpo"
".deps/MYODBCDbgHandleTypeString.Plo"; else rm -f
".deps/MYODBCDbgHandleTypeString.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../myodbc3 -isystem
-I/usr/local//include -O3 -DDBUG_OFF -I/usr/include/mysql -DBIG_JOINS=1
-MT MYODBCDbgHandleTypeString.lo -MD -MP -MF
..deps/MYODBCDbgHandleTypeString.Tpo -c MYODBCDbgHandleTypeString.c
-fPIC -DPIC -o .libs/MYODBCDbgHandleTypeString.o
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I../../myodbc3 -isystem -I/usr/local//include -O3 -DDBUG_OFF
-I/usr/include/mysql -DBIG_JOINS=1 -MT MYODBCDbgInfoTypeString.lo -MD
-MP -MF ".deps/MYODBCDbgInfoTypeString.Tpo" -c -o
MYODBCDbgInfoTypeString.lo MYODBCDbgInfoTypeString.c; \
then mv -f ".deps/MYODBCDbgInfoTypeString.Tpo"
".deps/MYODBCDbgInfoTypeString.Plo"; else rm -f
".deps/MYODBCDbgInfoTypeString.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../../myodbc3 -isystem
-I/usr/local//include -O3 -DDBUG_OFF -I/usr/include/mysql -DBIG_JOINS=1
-MT MYODBCDbgInfoTypeString.lo -MD -MP -MF
..deps/MYODBCDbgInfoTypeString.Tpo -c MYODBCDbgInfoTypeString.c -fPIC
-DPIC -o .libs/MYODBCDbgInfoTypeString.o
make[2]: *** No rule to make target `MYODBCDbgInit.lo', needed by
`libMYODBCDbg.la'. Stop.
make[2]: Leaving directory
`/home/oasap/connector-odbc3/MYODBCDbg/MYODBCDbgLib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/oasap/connector-odbc3/MYODBCDbg'
make: *** [all-recursive] Error 1

Any fix for this? Also, any new releases coming up? Version 3.51.12
fixed problems we had (see http://bugs.mysql.com/bug.php?id=11035), but we
can't make it work across the network:

oasap@oaslog:/data/oasap/RealMedia/ads/OpenAd$ ./XXXTool
_iodbcdm_driverload(libmyodbc_mysql.so, 0x845b8c8)

SQLAllocEnv ( ... )
SQL_SUCCESS

SQLAllocConnect ( ... )
SQL_SUCCESS

SQLDriverConnect ( ... )
SQL_ERROR

SQLError ( ... )
SQL_SUCCESS
[07/05/2006 12:15:28] INFO: Error connecting: [MySQL][ODBC 3.51
Driver]Invalid window handle for connection completion argument.
[07/05/2006 12:15:28] INFO: dbTool: Version: Jun 1 2004 01:27:57
[07/05/2006 12:15:28] INFO: dbTool: Execution begins...
[07/05/2006 12:15:28] INFO: Error: Could not connect to database.

We are running:

- Debian 3.1 (sarge)
- Automake/aclocal 1.9.5
- Autoconf 2.59
- Gcc 3.3.5 (Debian 1:3.3.5-13)
- Libtool 1.5.6 (1.1220.2.95 2004/04/11 05:50:42) Debian: 224 $
- MySQL 5.0.22 (older MySQL clients also installed, but myodbc seems to
use latest one)

We've tried following instructions on
http://dev.mysql.com/doc/connector/j/en/myodbc-installation- source.html
(Installing MyODBC from the Development Source Tree) as well as using
Makefile.svn to make the configure script/Makefiles, but fails building
on "*** No rule to make target `MYODBCDbgInit.lo', needed by
`libMYODBCDbg.la'" like mentioned above.

Cheers,

--
Anders Nordby
Aftenposten AS, UNIX/nettverksavd.
Postboks 1, 0051 Oslo

Tlf.: +47 22864083
Fax: +47 22864074

--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org

Re: Problems building myodbc driver from Subversion repository

am 05.07.2006 12:52:04 von Anders Nordby

Hi,

On Wed, Jul 05, 2006 at 12:22:03PM +0200, Anders Nordby wrote:
> Any fix for this? Also, any new releases coming up? Version 3.51.12
> fixed problems we had (see http://bugs.mysql.com/bug.php?id=11035), but we
> can't make it work across the network:
>
> oasap@oaslog:/data/oasap/RealMedia/ads/OpenAd$ ./XXXTool
> _iodbcdm_driverload(libmyodbc_mysql.so, 0x845b8c8)
>
> SQLAllocEnv ( ... )
> SQL_SUCCESS
>
> SQLAllocConnect ( ... )
> SQL_SUCCESS
>
> SQLDriverConnect ( ... )
> SQL_ERROR
>
> SQLError ( ... )
> SQL_SUCCESS
> [07/05/2006 12:15:28] INFO: Error connecting: [MySQL][ODBC 3.51
> Driver]Invalid window handle for connection completion argument.
> [07/05/2006 12:15:28] INFO: dbTool: Version: Jun 1 2004 01:27:57
> [07/05/2006 12:15:28] INFO: dbTool: Execution begins...
> [07/05/2006 12:15:28] INFO: Error: Could not connect to database.

By commenting out the check that gives the "Invalid window handle" error
message, I got the ODBC program here (commercial one, I don't have the
source) working again.

Bye,

--
Anders Nordby
Aftenposten AS, UNIX/nettverksavd.
Postboks 1, 0051 Oslo

Tlf.: +47 22864083
Fax: +47 22864074

--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org