[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-odbc
Subject:    compiling MyODBC
From:       Ludwig Gamache <lgamache () gameloft ! com>
Date:       2001-01-30 23:18:00
[Download RAW message or body]

Hi all,

	It is me again with my problems. I have collected as much
information as I could. First of all: I try to compile MyODBC 2.50.36 with
unixODBC 2.0.3, PHP 4.0.4pl1. I also tried MyODBC 2.50.32. I get not error
at the compilation time. Here is the configuration I used:
./configure --with-unixODBC=/usr/local/unixODBC
--with-mysql-libs=/usr/local/mysql/lib
--with-mysql-includes=/usr/local/mysql/include --prefix=/usr/local/lib/odbc.
In the directory /usr/local/mysql, I installed the precompiled mysql
(3.23.30-gamma) for Linux (I am on Debian BTW). unixODBC is compiled without
threads. PHP is also compiled without threads. When I compile MyODBC, with
this configuration, here are the linked libraries:
        libmysqlclient.so.6 =>
/usr/local/mysqlclient/lib/mysql/libmysqlclient.so.6 (0x40019000)
        libc.so.6 => /lib/libc.so.6 (0x4002c000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40109000)
        libm.so.6 => /lib/libm.so.6 (0x4011f000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x4013d000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

	There is no libz.so linked to it. So, when I tried to add the link
flag -lgz (vi Makefile, and I change the line: LDFLAGS = to LDFLAGS = -lgz).
I get a message at the end of the make.
*** Warning: This library needs some functionality provided by -lgz.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

	But the linked libraries are the same.

	If instead, I compile with the -lz argument, when I make an ODBC
request, the apache server crash.

	I am on a Debian system. There is something strange. Even if I
specify to use the libs in /usr/local/mysql/lib, the linked
libmysqlclient.so.6 is in /usr/local/mysql/libmysqlclient.so.6.

	Ludwig

---------------------------------------------------------------------
Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
posting. To request this thread, e-mail myodbc-thread2737@lists.mysql.com

To unsubscribe, send a message to the address shown in the
List-Unsubscribe header of this message. If you cannot see it,
e-mail myodbc-unsubscribe@lists.mysql.com instead.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic