Subject: Fwd: Building mysql 4.0.17 under latest Cygwin (1.5.7)
From: "Gerrit P. Haase" <[email-masked]>
To: [email-masked]
Date: Wed, 11 Feb 2004 13:25:22 +0100

Dies ist eine weitergeleitete Nachricht - This is a forwarded message
Von    : Mikael Åsberg <[email-masked]>
An     : [email-masked]
Datum  : Dienstag, 10. Februar 2004, 20:37
Betreff: Building mysql 4.0.17 under latest Cygwin (1.5.7)

===8<=================== Original Nachrichtentext ===================
Hello Mr Haase! I am trying to build mysql 4.0.17 under the latest
offical Cygwin (1.5.7). I am following your instructions found at
http://anfaenger.de/cygwin-1.5/mysql/.
However, I am getting a compilation error during make (an error that
occurs after it has been compiling for some time). I made a script
that looks like this:
#!/bin/bash
patch -p1 <../mysql-4.0.17.diff
export CFLAGS="-O3"
export CC=gcc
export CXX=gcc
export CXXFLAGS="-O3 -mcpu=pentiumpro -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/mysql/data \
--libexecdir=/usr/sbin \
--enable-thread-safe-client \
--with-unix-socket-path=/var/mysql/mysql.sock \
--with-mysqld-user=mysqld \
--with-berkeley-db \
--with-innodb \
--without-debug \
--without-openssl \
--with-mysqld-ldflags=-all-static \
--with-vio \
--with-embedded-server

As you can, all it does is applying the patch found at your site, exporting some variables and then running ./configure
with the options you suggested. The script completes without any errors.
Then I run $ make
I get:
mysqld.cc: In function `void* signal_hand(void*)':
mysqld.cc:1779: error: `sigwait' undeclared (first use this function)
mysqld.cc:1779: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
make[4]: *** [mysqld.o] Error 1
make[4]: Leaving directory `/home/Administrator/mysql-4.0.17/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/Administrator/mysql-4.0.17/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Administrator/mysql-4.0.17/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Administrator/mysql-4.0.17'
make: *** [all] Error 2

Now I was wondering if you might have an idea what I did do wrong?
I haven't been using cygwin or the gnu tools very long so this is
all very new to me.

If you have any ideas, I would love to hear them!

Best regards

===8<============== Ende des Original Nachrichtentextes =============

Ciao,

Gerrit
-- 
=^..^=

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/