There's a bug in the SConstruct where if it sees that you have MySQL 3.23 it tries to compile in the MySQL support even though it really needs MySQL 4.1 or newer. We were confused over the required version due to a bad install on one of our own machines. I thought this had been discussed on the list before, but I can't find where.

Anyway, the easiest thing is to say 'USE_MYSQL=0' on the scons command line to keep it from using MySQL. (You only have to do this once; it's a 'sticky' option.)

Or you can install this patch into build/SConstruct:

===== SConstruct 1.27 vs 1.28 =====
--- 1.27/build/SConstruct       2005-10-01 11:32:32 -04:00
+++ 1.28/build/SConstruct       2005-11-03 13:13:31 -05:00
@@ -205,10 +205,8 @@
     mysql_minor = int(mysql_version[1])
     # This version check is probably overly conservative, but it deals
     # with the versions we have installed.
-    if mysql_major < 3 or \
-           mysql_major == 3 and mysql_minor < 23 or \
-           mysql_major == 4 and mysql_minor < 1:
-        print "Warning: MySQL v3.23 or v4.1 or newer required."
+    if mysql_major < 4 or (mysql_major == 4 and mysql_minor < 1):
+        print "Warning: MySQL v4.1 or newer required."
         have_mysql = False

 # Set up mysql_config commands.

Steve


Zhang zhibin wrote:
hi all.
i'm trying to install m5 on my FC3 and get some error. i do not know why? can 
anyone here give me a hand?
thanks!

[EMAIL PROTECTED] build]# scons ALPHA_SE/m5.debug
scons: Reading SConscript files ...
Checking for C header file fenv.h... (cached) yes
Compiling in ALPHA_SE with MySQL support.
scons: done reading SConscript files.
scons: Building targets ...
cp libelf/lib/sys_elf.h ALPHA_SE/libelf/sys_elf.h
g++ -o ALPHA_SE/base/stats/events.do -c -pipe -fno-strict-aliasing -Wall 
-Wno-sign-compare -Werror -Wundef -g -gstabs+ -O0 -DDEBUG -Iext/dnet 
-I/usr/include/mysql -IALPHA_SE -Im5 m5/base/stats/events.cc
In file included from m5/base/stats/events.cc:39:
m5/base/mysql.hh: In member function `bool MySQL::Connection::autocommit(bool)':
m5/base/mysql.hh:197: error: `mysql_autocommit' undeclared (first use this 
function)
m5/base/mysql.hh:197: error: (Each undeclared identifier is reported only once 
for each function it appears in.)
m5/base/mysql.hh: In member function `bool MySQL::Connection::commit()':
m5/base/mysql.hh:203: error: `mysql_commit' undeclared (first use this function)
m5/base/mysql.hh: In member function `bool MySQL::Connection::rollback()':
m5/base/mysql.hh:209: error: `mysql_rollback' undeclared (first use this 
function)
scons: *** [ALPHA_SE/base/stats/events.do] Error 1
scons: building terminated because of errors.
[EMAIL PROTECTED] build]#
�����������������������������������������訂+甸殜X�'矈辵��J檔濨's痂蕥牠阭喓.�h侙氰畾鑞WΤ舡茫
        [EMAIL PROTECTED],悍鉃a{淈3�
#薖��嗃i��趘翔辟�r壙�夒~�jYhs鴿霟鑹�������������������������������������)�呵f)鄸+-洓"淃瑉���+-雏(悍~娻{�mο�⺋响㈥躽�+侊鐉咤娝l⺋)撸�)�呵�

Reply via email to