1 message in com.mysql.lists.win32how to build MySQL on win32?
FromSent OnAttachments
D.J. Miller II10 Jul 2002 13:31 
Subject:how to build MySQL on win32?
From:D.J. Miller II (jam@realtime.net)
Date:07/10/2002 01:31:14 PM
List:com.mysql.lists.win32

Hi, All,

I'm running MySQL 3.23.47 on a win2k box and am experiencing a problem using the mysql.exe monitor [client] as an interactive subprocess of ntemacs (GNU Emacs 20.7.1): the monitor always runs as if it were a batch process, so there is no prompt and 'stdout' output doesn't always appear when it should. In short, the monitor is not really usable under emacs.

I pulled down the source for 3.23.47 and found the problem in client/mysql.cc. The client is deciding whether it is in 'batch' (non-interactive) mode by calling isatty() on STDIN and STDOUT. When spawned as a subprocess of ntemacs, it will always get a 0 back from isatty() ('not a character device') and so go into batch mode.

I modified client/mysql.cc to take a new "-I"/"--interactive" option which will cause it to circumvent the isatty() calls and stay in interactive mode, but when I build it using the autoconf script (by way of the cygwin/gcc/etc. installation on the win2k box), I get a mysql.exe client very different than that delivered with the win32 binary distribution. It seems that that win32 binary distribution was built in a way not documented in any of the files actually contained in the source distribution.

So here's the big question: is there publicly available documentation for the build process used to produce the win32 binary distributions of MySQL?

________________________________________________________________________

James Miller in Austin, Texas

________________________________________________________________________