Bug #8081 options.cc:41: error: `DEFAULT_MONITORING_INTERVAL' was not declared in this
Submitted: 21 Jan 2005 22:16 Modified: 1 Feb 2005 12:24
Reporter: Mikael Ronström Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:MySQL 5.0 latest bk OS:MacOS (Mac OS X 10.3)
Assigned to: Ramil Kalimullin CPU Architecture:Any

[21 Jan 2005 22:16] Mikael Ronström
Description:
Making all in instance-manager
source='options.cc' object='options.o' libtool=no \
depfile='.deps/options.Po' tmpdepfile='.deps/options.TPo' \
depmode=gcc3 /bin/sh ../../depcomp \
gcc -DMYSQL_INSTANCE_MANAGER -DMYSQL_SERVER -I. -I. -I../.. -I../../include -I../../extra    -g -O -DSAFE_MUTEX -fno-omit-frame-pointer -fno-common -felide-constructors -fno-exceptions -fno-rtti   -fno-implicit-templates -fno-exceptions -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL -DHAVE_DARWIN_THREADS -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT  -c -o options.o `test -f 'options.cc' || echo './'`options.cc
options.cc:41: error: `DEFAULT_MONITORING_INTERVAL' was not declared in this 
   scope
options.cc:42: error: `DEFAULT_PORT' was not declared in this scope
make[3]: *** [options.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

How to repeat:
Use the following configure script on a Mac OS X 10.3

aclocal; autoheader; autoconf; automake
(cd innobase; aclocal; autoheader; autoconf; automake)
(cd bdb/dist; sh s_all)
C=gcc CFLAGS="-fno-omit-frame-pointer" CXX=gcc \
CXXFLAGS="-fno-omit-frame-pointer -fno-common -felide-constructors \
-fno-exceptions -fno-rtti" ./configure \
--with-extra-charsets=complex \
--with-debug --with-readline \
--without-innodb --enable-assembler \
--with-ndbcluster \
--prefix=/usr/local/mysql

make after that will give compiler error

Suggested fix:
Fix compiler erros
[21 Jan 2005 22:27] Jim Winstead
as i recall, this is due to the version of automake used (there is some construction here that requires a particular version, which isn't necessarily the latest version). i believe that serg had some idea of what causes this.
[21 Jan 2005 22:48] Mikael Ronström
automake --version
automake (GNU automake) 1.6.3
autoconf --version
autoconf (GNU Autoconf) 2.59
[1 Feb 2005 12:24] Ramil Kalimullin
You have to use automake 1.8 (or newer), see 
http://dev.mysql.com/doc/mysql/en/installing-source-tree.html