3 messages in com.mysql.lists.win32Re: Building mySQL on WIN32 under Cygwin
FromSent OnAttachments
Pete French04 Oct 2000 02:23 
Markus Hoenicka04 Oct 2000 07:01 
Pete French04 Oct 2000 10:02 
Subject:Re: Building mySQL on WIN32 under Cygwin
From:Pete French (pfre@firstcallgroup.co.uk)
Date:10/04/2000 10:02:52 AM
List:com.mysql.lists.win32

this was discussed not too long ago on the cygwin mailing list. The following procedure seems to work (courtesy Lars Wuerfel <lw@computerwuerfel.de>):

TThanks for that - most useful. Some comments...

Step 2: I outcommented lines 12, 24, 29 and 36

...but he doesnt say which file. It's net.c for thoise trying this themselves. I also found I needed to uncomment 25 as well, as Cygwin does not have in_systm.h

/cygwin/usr/include/string.h: [52] #ifndef __STRICT_ANSI__ [53] // char *_EXFUN(strtok_r,(char *, const char *, char **));

This is line 51 in recent versions of Cygwin - whatever you have its always the strtok line inside the __STRICT_ANSI section that needs removing.

I solved this by including <errno.h> into

the undefined refferences to errno are an annoyance in Cygwin - I could ot work out which file to put errno.h in to get it to work, and instead deefined an int for it in each program. errno should be in libc as far as I know, but appears not to be on Cygwin. So you need to define it somewhere yourself. I think that the mySQL library is not really the appropriate place for this, so I made a separet entry in my own code library for this - which is a lot tidier.

Aside from this everything sems to work perfectly, thanks.