Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL++ - Programming with the C++ API to MySQL
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
compile problem with MyODBC 3.51.12

compile problem with MyODBC 3.51.12

2006-02-28       - By Orton, Steve

 Back

 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 (See http://dbc-3.ora-code.com).51.12/util'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/local/src/mysql-connector-odbc-3 (See http://dbc-3.ora-code.com).51.12/util'
Making all in driver
make[1]: Entering directory `/usr/local/src/mysql-connector-odbc-3 (See http://dbc-3.ora-code.com).51.12/driver'
make  all-am
make[2]: Entering directory `/usr/local/src/mysql-connector-odbc-3 (See http://dbc-3.ora-code.com).51.12/driver'
/bin/sh ../libtool --tag? --mode=link gcc  -O3 -DDBUG_OFF   -I/usr/include
/mysql -g -pipe -march=i386 -mcpu=i686   -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=i386 -mcpu=i686 -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 (See http://dbc-3.ora-code.com).51.12/driver'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/mysql-connector-odbc-3 (See http://dbc-3.ora-code.com).51.12/driver'
make: *** [all-recursive] Error 1

***************************************************************************

Steven J Orton
Software Engineer
Northrop Grumman Mission Systems
Middletown, RI 02842
[Email] steve.orton@(protected)
[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=mysql@(protected)