Bug #16528 Compile error using --without-server on HP-UX
Submitted: 16 Jan 2006 9:46 Modified: 27 Sep 2008 12:33
Reporter: [ name withheld ] Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.0.18 OS:HP/UX (HP-UX 11.00)
Assigned to: CPU Architecture:Any

[16 Jan 2006 9:46] [ name withheld ]
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
[17 Jan 2006 10:55] Valeriy Kravchuk
Please, try to remove --with-innodb from configure, then make and inform about the results. 

I hope it will work for you, as we are not really able to fix these gcc compilation problems any time soon, as you may already know.
[17 Jan 2006 15:35] [ name withheld ]
Same result.

So, perhaps if the bug #15861 is corrected, this one will be ok
[23 Jan 2006 16:20] Valeriy Kravchuk
Yes, it can be related to bug #15861, but as it is still not fixed, and we do not have clean GCC environment on HP-UX to make any decisions (and this can be gcc- and/or OS relted also), I'll mark this report as "to be fixed later".
[27 Sep 2008 12:33] Konstantin Osipov
We do not plan to support HP-UX in future.