Bug #5947 MySQL 4.1.5 doesn't compile on cygwin
Submitted: 7 Oct 2004 7:31 Modified: 7 Oct 2004 8:50
Reporter: Jan Kneschke Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1.5 OS:cygwin - 20041007
Assigned to: CPU Architecture:Any

[7 Oct 2004 7:31] Jan Kneschke
Description:
compiling mysql 4.1.5 on cygwin under windows 2000 you get:

gcc -DDEFAULT_BASEDIR=\"/home/tn80/testbase/mysql/\" -DDATADIR="\"/home/tn80/testbas
e/mysql//var\"" -DDEFAULT_CHARSET_HOME="\"/home/tn80/testbase/mysql/\"" -DSHAREDIR="
\"/home/tn80/testbase/mysql//share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../includ
e -I.    -O3 -DDBUG_OFF    -c `test -f 'my_thr_init.c' || echo './'`my_thr_init.c
my_thr_init.c: In function `my_thread_global_init':
my_thr_init.c:72: error: `PTHREAD_MUTEX_ERRORCHECK_NP' undeclared (first use in this
 function)
my_thr_init.c:72: error: (Each undeclared identifier is reported only once
my_thr_init.c:72: error: for each function it appears in.)

pthread.h contains:

#define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP (pthread_mutex_t)20
#define PTHREAD_MUTEX_INITIALIZER PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP

but not PTHREAD_MUTEX_ERRORCHECK_NP

they reference to:

/* Defines. (These are correctly defined here as per
   http://www.opengroup.org/onlinepubs/7908799/xsh/pthread.h.html */

How to repeat:
try to build mysql 4.1.5 under cygwin on windows.
[7 Oct 2004 7:32] Jan Kneschke
no show-stopper
[7 Oct 2004 8:50] Joerg Bruehe
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the original bug instead.

Thank you for your interest in MySQL.
[7 Oct 2004 8:52] Joerg Bruehe
This is a duplicate of bug#5343, which is already assigned to me. 
However, Kent Boortz also intends to look into that one.