Bug #2548 Error compiling mysql-4.1.2 dev tree sources on cygwin (libmysql!)
Submitted: 28 Jan 2004 22:39 Modified: 27 Sep 2008 9:49
Reporter: Andrey Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1.2 OS:Microsoft Windows (WinXP)
Assigned to: CPU Architecture:Any

[28 Jan 2004 22:39] Andrey
Description:
I've got the following message during compilation:

E:\mysql.src\mysql-4.1\libmysql>make
make: *** No rule to make target `libmysql.lo', needed by `libmysqlclient.la'.  Stop.

(of course, i ran ./DEBUG/compile-* script, not a make directly).

What should i do?

How to repeat:
[28 Jan 2004 22:57] Andrey
It's me again. May be I should replace ".lo" => ".$(OBJEXT)" ?

Sorry, I'm not familiar with unix make tools ...
[29 Jan 2004 12:09] MySQL Verification Team
Yuo have to use libtool, autoconf, automake and other tools as per recommandations in our manual. 

If they match our recommandtions, please let us know the exact versions that you use.
[29 Jan 2004 20:49] Andrey
I suspect, it's my fault. I try to make it under cygwin. There is no information about it in documentation. One of your developer, answer me that I should use *nix to create win-src package.
My conf:
   winXP
   cygwin-1.5.6
   make-3.80
   automake-1.7.9 (devel)/1.4 (stable)
   autoconf-2.59 (devel)/2.13 (stable)
   m4-1.4
   bison > 1.85
I don't know how to detect version of libtool.
[29 Jan 2004 23:33] Andrey
And once more comment about make_win_src_dist script.
Project files (*.dsp, *.dsw), created by this script don't compiling on my machine.
I took original files from VC++ dir and they are ok. It seems to be problem of "\n"=>"\r\n" conversion...
[29 Jan 2004 23:44] Andrey
And why InnoDB & BDB don't included into src distribution..

Script code:
#
# Create dummy innobase configure header
#

if [ -f $BASE/innobase/ib_config.h ]; then
  rm -f $BASE/innobase/ib_config.h
fi
touch $BASE/innobase/ib_config.h
^^^^^^^ - why ???? 
How should I compile InnoDB on windows machine?
[6 Feb 2004 20:31] MySQL Verification Team
Currently we don't have an active Cygwin environment for to test, fix or
provide solutions for bug reports like this one or another already reported
involving this compiler. Sorry for this inconvenience.
[27 Sep 2008 9:49] Konstantin Osipov
MySQL now uses a cygwin-free build procedure on Windows, documented at:
http://dev.mysql.com/doc/refman/5.1/en/windows-source-build-cmake.html