MyODBC 3.51.12 compile problem
am 03.03.2006 20:55:40 von steve.ortonHello listers,
RH 9.0
glibc 2.3
MyODBC 3.51.12
unixODBC 2.2.11
MySQL 5.0.18
I seem to have a problem during linking of the myodbc driver. There =
are many multiple defines emitted from '/usr/lib/mysql/libz.a' I =
noticed there are two references to that library on the link line. I =
don't know if it's a configure issue or libtool or what. My question =
is, what controls the inclusion of the libraries to link against and how =
can I get rid of the extra library reference (by hand if necessary)? I =
tried to track this down in the Makefile with no success. I also tried =
a couple different argument combinations to 'configure' including just =
'./configure' on the command-line with the same error. I also tried =
using the binary RPM, but it complains of no 'libc++.so.6'. I'm up to =
'libc++.so.5'. So a fresh compile seems to be my only option. Any =
light that can be shed on this frustrating problem would be most =
excellent.
Thanks for any help....steve---
A snippet of the command-line:
*****************************************
Making all in driver
make[1]: Entering directory =
`/usr/local/src/mysql-connector-odbc-3.51.12/driver'
make all-am
make[2]: Entering directory =
`/usr/local/src/mysql-connector-odbc-3.51.12/driver'
/bin/sh ../libtool --tag=3DCC --mode=3Dlink gcc -O3 -DDBUG_OFF =
-I/usr/include/mysql -g -pipe -march=3Di386 -mcpu=3Di686 -o =
libmyodbc3.la -rpath /usr/local/lib -release 3.51.12 catalog.lo =
connect.lo cursor.lo dll.lo error.lo execute.lo handle.lo info.lo =
myodbc3.lo options.lo prepare.lo results.lo transact.lo utility.lo =
-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm =
.../util/libmyodbcutil.la -L/usr/local//lib -lz -lodbcinst
gcc -shared .libs/catalog.o .libs/connect.o .libs/cursor.o .libs/dll.o =
..libs/error.o .libs/execute.o .libs/handle.o .libs/info.o =
..libs/myodbc3.o .libs/options.o .libs/prepare.o .libs/results.o =
..libs/transact.o .libs/utility.o -Wl,--whole-archive =
.../util/.libs/libmyodbcutil.a /usr/lib/mysql/libmysqlclient.a =
/usr/lib/mysql/libz.a /usr/lib/mysql/libz.a -Wl,--no-whole-archive =
-L/usr/lib/mysql -lcrypt -lnsl -lm /usr/lib/libltdl.so -L/usr/local//lib =
-ldl -lpthread /usr/lib/libodbcinst.so -march=3Di386 -mcpu=3Di686 =
-Wl,-soname -Wl,libmyodbc3-3.51.12.so -o .libs/libmyodbc3-3.51.12.so
/usr/lib/mysql/libz.a(adler32.o)(.text+0x0): In function `adler32':
: multiple definition of `adler32'
/usr/lib/mysql/libz.a(adler32.o)(.text+0x0): first defined here
/usr/lib/mysql/libz.a(adler32.o)(.text+0x250): In function =
`adler32_combine':
: multiple definition of `adler32_combine'
/usr/lib/mysql/libz.a(adler32.o)(.text+0x250): first defined here
[snip] -- many more multiple defines --
*********************************************************
=20
Steven J Orton
Software Engineer
Northrop Grumman Mission Systems
--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc@m.gmane.o rg