Using Linux Slackware and gcc 3.2.1.

Here is the compiler report:

make[4]: Entering directory `/home/local/src/mysql-4.0.8-gamma/sql'
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\""
-DDATADIR="\"/usr/local/mysql/var\""
-DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DHAVE_CONFIG_H -I.
-I. -I.. -I./../include -I./../regex -I. -I../include -I. -O3
-DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -c -o
ha_innodb.o `test -f ha_innodb.cc || echo './'`ha_innodb.cc

In file included from ha_innodb.cc:31:
sql_cache.h:380: friend declaration requires class-key, i.e. `friend void'
sql_cache.h:380: invalid type `void' declared `friend'
sql_cache.h:381: friend declaration requires class-key, i.e. `friend void'
sql_cache.h:381: invalid type `void' declared `friend'
sql_cache.h:404: declaration does not declare anything
sql_cache.h:405: declaration does not declare anything
make[4]: *** [ha_innodb.o] Error 1

The problem can be fixed by ifdef'ing the inclusion of the header in
ha_innodb.cc:

+#ifdef HAVE_QUERY_CACHE
 #include "sql_cache.h"
+#endif

After that everything builds just fine, but it seems ha_innodb.cc
needn't be compiled at all when --without-innodb option is
specified.

Please cc me in the answers to this email, as I'm not subscribed to
this list.

Regards,
Grisha



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to