Description:
During "make", I get an error:
cc -DDEFAULT_BASEDIR=\"/usr/local\" -DDATADIR="\"/usr/local/var\"" -DDEFAULT_CHARSET_HOME="\"/usr/local\"" -DSHAREDIR="\"/usr/local/share/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include -I.. -I. -O -DDBUG_OFF -DUNDEF_HAVE_GETHOSTBYNAME_R -c my_pthread.c
cc: Error: my_pthread.c, line 87: In this statement, "pthread_getspecific" expects 1 arguments, but 2 are supplied. (toomanyargs)
if (pthread_getspecific(key,(void *) &value))
------^
cc: Error: my_pthread.c, line 441: In this statement, "pthread_mutexattr_default" is not declared. (undeclared)
error=pthread_mutex_init(mp,pthread_mutexattr_default);
--------------------------------^
cc: Error: my_pthread.c, line 443: In this statement, "*attr" is of type "struct __pthread_mutexattr_t", and cannot be converted to "pointer to const struct __pthread_mutexattr_t". (noconvert)
error=pthread_mutex_init(mp,*attr);
--------------------------------^
cc: Error: my_pthread.c, line 451: In this statement, "pthread_condattr_default" is not declared. (undeclared)
error=pthread_cond_init(mp,pthread_condattr_default);
-------------------------------^
cc: Error: my_pthread.c, line 453: In this statement, "*attr" is of type "struct __pthread_condattr_t", and cannot be converted to "pointer to const struct __pthread_condattr_t". (noconvert)
error=pthread_cond_init(mp,*attr);
-------------------------------^
make[2]: *** [my_pthread.o] Error 1
make[2]: Leaving directory `/usr/local/src/mysql-4.0.24/mysys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mysql-4.0.24'
make: *** [all] Error 2
How to repeat:
./configure --quiet --without-bench --without-innodb
gmake