Bug #9843 cannot compile v 4.0.24 on tru64 UNIX
Submitted: 12 Apr 2005 13:23 Modified: 27 Apr 2005 17:36
Reporter: michael caplin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:4.0.24 OS:Other (Tru64 UNIX v5.1B)
Assigned to: CPU Architecture:Any

[12 Apr 2005 13:23] michael caplin
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
[27 Apr 2005 17:31] michael caplin
This was resolved with the installation of OSFLIBA540 (static libraries) on Tru64 UNIX.  OSFLIBA contains /usr/ccs/lib/libpthreads.a and /usr/ccs/lib/libpthread.a  which seems to resolve this issue.
[27 Apr 2005 17:36] MySQL Verification Team
Thank you for the feedback.