compile problem with MyODBC 3.51.12

compile problem with MyODBC 3.51.12

am 28.02.2006 22:48:57 von steve.orton

I recently downloaded the tarball for myodbc-connector version 3.51.12 =
and ran configure with the default args (i.e. just './configure' on the =
command-line). It ran without any perceived errors. During the 'make', =
many multiple defines errors were emitted coming from =
'/usr/lib/mysql/libz.a'. This looks like it's because there is a double =
reference to the library on the link line. I cannot figure out how =
where this is coming from so any insight into this problem would be =
greatly appreciated.

Here's the output from my 'make':

************************************************************ ****
Making all in util
make[1]: Entering directory =
`/usr/local/src/mysql-connector-odbc-3.51.12/util'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory =
`/usr/local/src/mysql-connector-odbc-3.51.12/util'
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
/usr/lib/mysql/libz.a(compress.o)(.text+0x0): In function `compress2':
: multiple definition of `compress2'
/usr/lib/mysql/libz.a(compress.o)(.text+0x0): first defined here
/usr/lib/mysql/libz.a(compress.o)(.text+0xb0): In function `compress':
: multiple definition of `compress'
/usr/lib/mysql/libz.a(compress.o)(.text+0xb0): first defined here
/usr/lib/mysql/libz.a(compress.o)(.text+0xf0): In function =
`compressBound':
: multiple definition of `compressBound'
/usr/lib/mysql/libz.a(compress.o)(.text+0xf0): first defined here

[snip]
-- many more multiple defines from same library --
[snip]

/usr/lib/mysql/libz.a(zutil.o)(.text+0x60): In function `zcfree':
: multiple definition of `zcfree'
/usr/lib/mysql/libz.a(zutil.o)(.text+0x60): first defined here
collect2: ld returned 1 exit status
make[2]: *** [libmyodbc3.la] Error 1
make[2]: Leaving directory =
`/usr/local/src/mysql-connector-odbc-3.51.12/driver'
make[1]: *** [all] Error 2
make[1]: Leaving directory =
`/usr/local/src/mysql-connector-odbc-3.51.12/driver'
make: *** [all-recursive] Error 1

************************************************************ *************=
**

Steven J Orton
Software Engineer
Northrop Grumman Mission Systems
Middletown, RI 02842
[Email] steve.orton@ngc.com
[Office] 401-851-3540
[Lab] 401-832-1959


--
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