delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/28/09:08:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <004601c23637$cd38fb40$3400a8c0@sknet01>
From: "Terry Flannery" <terry DOT flannery AT btinternet DOT com>
To: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Cc: <cygwin AT cygwin DOT com>
References: <00b201c2352f$71e9d4c0$3400a8c0 AT sknet01> <190247813356 DOT 20020727104230 AT familiehaase DOT de> <137257096795 DOT 20020727131713 AT familiehaase DOT de> <027901c23571$443c6320$3400a8c0 AT sknet01> <48273246037 DOT 20020727174623 AT familiehaase DOT de> <02f601c235d8$b549dcc0$3400a8c0 AT sknet01> <4546552348 DOT 20020728113408 AT familiehaase DOT de>
Subject: Re: MySQL server under cygwin
Date: Sun, 28 Jul 2002 14:07:54 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

I have tried that, but no client applications can connect to the windows
version of the server, instead they die with
"ERROR 2002: Can't connect to local MySQL server through socket
'/tmp/mysql.sock' (2)"

I think i need to link them with the import library for the windows version
of the server, but then i get undefined references to loads of functions
defined in libmysqlclient.a but not in libmySQL.dll, such as the mysql
striing functions and many of the 'mysys' functions.

How have you resolved this?

TIA,
Terry

----- Original Message -----
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
To: "Terry Flannery" <terry DOT flannery AT btinternet DOT com>
Cc: <cygwin AT cygwin DOT com>
Sent: Sunday, July 28, 2002 10:34 AM
Subject: Re: MySQL server under cygwin


> Hallo Terry,
>
> Am Sonntag, 28. Juli 2002 um 03:47 schriebst du:
>
> > Yes it is. I would at least like to ba able to have cygwin enabled mysql
> > client applications... is this possible?
>
> Yes, libmysqlclient works fine when compiled under Cygwin.
> Once you have a static libmysqlclient.a it is possible to
> create a shared .dll from it.
>
> With the clientlib you can link most applications to enable
> the access to a MySQL server.
>
> Just add '--without-server' to the configure options.
>
> After you have a static lib you can create a shared lib
> like this (steamroller tactics):
>
> gcc -shared -o cygmysqlclient-3.23.51.dll \
>  -Wl,--out-implib=libmysqlclient.dll.a -Wl,--export-all-symbols \
>  -Wl,--enable-auto-import -Wl,--whole-archive libmysqlclient.a \
>  -Wl,--no-whole-archive -lcrypt -lz
>
> You also need to modify the file /usr/lib/mysql/libmysqlclient.la
> to point to the dll then:
> # The name that we can dlopen(3).
> dlname='/bin/cygmysqlclient-3.23.51.dll'
>
> # Names of this library.
> library_names='libmysqlclient.dll.a'
>
> # The name of the static archive.
> old_library='libmysqlclient.a'
>
>
> Gerrit
> --
> =^..^=
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019