Description:
Compilation of MySQL 5.0.18 on HP-UX 11.00 fails.
gcc version 3.0.1
seems to be similar to bug #15861
...
if gcc -DDEFAULT_BASEDIR=\"/PKl01h01/soft/mysql\" -DDATADIR="\"/PKl01h01/data/mysql\"" -DDEFAULT_CHARSET_HOME="\"/PKl01h01/soft/mysql\"" -DSHAREDIR
="\"/PKl01h01/soft/mysql/share/mysql\"" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DHAVE_CONFIG_H -I. -I. -I.. -I../zlib
-I../include -I../include -I. -O3 -DDBUG_OFF -DHPUX11 -DSNPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -DDONT_USE_FINITE -DHAVE_BROKEN_GETPASS -DNO_FCNTL_
NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -MT mf_keycache.o -MD -MP -MF ".deps/mf_keycache.Tpo" -c -o mf_keycache.o mf_key
cache.c; \
then mv -f ".deps/mf_keycache.Tpo" ".deps/mf_keycache.Po"; else rm -f ".deps/mf_keycache.Tpo"; exit 1; fi
In file included from mf_keycache.c:43:
../include/keycache.h:74: parse error before "pthread_mutex_t"
../include/keycache.h:74: warning: no semicolon at end of struct or union
../include/keycache.h:100: parse error before '}' token
../include/keycache.h:100: warning: data definition has no type or storage class
../include/keycache.h:103: parse error before "dflt_key_cache_var"
../include/keycache.h:103: warning: data definition has no type or storage class
../include/keycache.h:105: parse error before '*' token
../include/keycache.h:108: parse error before '*' token
../include/keycache.h:111: parse error before '*' token
../include/keycache.h:113: parse error before '*' token
../include/keycache.h:117: parse error before '*' token
../include/keycache.h:120: parse error before '*' token
../include/keycache.h:124: parse error before '*' token
../include/keycache.h:126: parse error before '*' token
../include/keycache.h:131: parse error before '*' token
../include/keycache.h:131: warning: data definition has no type or storage class
../include/keycache.h:133: parse error before "KEY_CACHE"
../include/keycache.h:134: parse error before '*' token
../include/keycache.h:137: parse error before "KEY_CACHE"
mf_keycache.c:103: parse error before "KEYCACHE_CONDVAR"
mf_keycache.c:103: warning: data definition has no type or storage class
mf_keycache.c:155: parse error before "KEYCACHE_CONDVAR"
mf_keycache.c:155: warning: no semicolon at end of struct or union
... (more than 100 errors in mf_keycache.c)
mf_keycache.c:2097: initializer element is not constant
mf_keycache.c:2097: warning: data definition has no type or storage class
mf_keycache.c:2098: parse error before "if"
...
...
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
How to repeat:
./configure \
--without-server \
--prefix=/PKl01h01/soft/mysql \
--localstatedir=/PKl01h01/data/mysql \
--with-innodb
make