the problem of compile

44 views
Skip to first unread message

xin xing

unread,
Mar 27, 2012, 11:03:21 PM3/27/12
to Google MySQL
Hi:

the code is unable to successfully compile:

Making all in vio
Making all in sql
Making all in share
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\"/\" -DMYSQL_DATADIR=\"/var/
lib/mysql\" -DSHAREDIR=\"/usr/share/mysql\" -DPLUGINDIR=\"/usr/lib/
mysql/plugin\" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I/root/
google-mysql/sql -I../include -I/root/google-mysql/zlib -I/root/google-
mysql/lzo/include/lzo -I/root/google-mysql/google-perftools/src/google
-I../include -I/root/google-mysql/include -I/root/google-mysql/regex -
I/root/google-mysql/sql -Wall -Wextra -Wunused -Wwrite-strings -Wno-
strict-aliasing -Werror -Wno-unused-parameter -g -DSAFE_MUTEX -g3 -O0 -
fno-omit-frame-pointer -I/root/google-mysql/ncurses/include -I/root/
google-mysql/ncurses/include -DHAVE_TERM_H -fno-rtti -MT libndb_la-
ha_ndbcluster.lo -MD -MP -MF .deps/libndb_la-ha_ndbcluster.Tpo -c
ha_ndbcluster.cc -fPIC -DPIC -o libndb_la-ha_ndbcluster.o
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\"/\" -DMYSQL_DATADIR=\"/var/
lib/mysql\" -DSHAREDIR=\"/usr/share/mysql\" -DPLUGINDIR=\"/usr/lib/
mysql/plugin\" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I/root/
google-mysql/sql -I../include -I/root/google-mysql/zlib -I/root/google-
mysql/lzo/include/lzo -I/root/google-mysql/google-perftools/src/google
-I../include -I/root/google-mysql/include -I/root/google-mysql/regex -
I/root/google-mysql/sql -Wall -Wextra -Wunused -Wwrite-strings -Wno-
strict-aliasing -Werror -Wno-unused-parameter -g -DSAFE_MUTEX -g3 -O0 -
fno-omit-frame-pointer -I/root/google-mysql/ncurses/include -I/root/
google-mysql/ncurses/include -DHAVE_TERM_H -fno-rtti -MT libndb_la-
ha_ndbcluster_binlog.lo -MD -MP -MF .deps/libndb_la-
ha_ndbcluster_binlog.Tpo -c ha_ndbcluster_binlog.cc -fPIC -DPIC -o
libndb_la-ha_ndbcluster_binlog.o
g++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\"/\" -DMYSQL_DATADIR=\"/var/
lib/mysql\" -DSHAREDIR=\"/usr/share/mysql\" -DPLUGINDIR=\"/usr/lib/
mysql/plugin\" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I/root/
google-mysql/sql -I../include -I/root/google-mysql/zlib -I/root/google-
mysql/lzo/include/lzo -I/root/google-mysql/google-perftools/src/google
-I../include -I/root/google-mysql/include -I/root/google-mysql/regex -
I/root/google-mysql/sql -Wall -Wextra -Wunused -Wwrite-strings -Wno-
strict-aliasing -Werror -Wno-unused-parameter -g -DSAFE_MUTEX -g3 -O0 -
fno-omit-frame-pointer -I/root/google-mysql/ncurses/include -I/root/
google-mysql/ncurses/include -DHAVE_TERM_H -fno-rtti -MT libndb_la-
ha_ndbcluster_cond.lo -MD -MP -MF .deps/libndb_la-
ha_ndbcluster_cond.Tpo -c ha_ndbcluster_cond.cc -fPIC -DPIC -o
libndb_la-ha_ndbcluster_cond.o
gcc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=\"/\" -DMYSQL_DATADIR=\"/var/
lib/mysql\" -DSHAREDIR=\"/usr/share/mysql\" -DPLUGINDIR=\"/usr/lib/
mysql/plugin\" -DHAVE_EVENT_SCHEDULER -DHAVE_CONFIG_H -I. -I/root/
google-mysql/sql -I../include -I/root/google-mysql/zlib -I/root/google-
mysql/lzo/include/lzo -I/root/google-mysql/google-perftools/src/google
-I../include -I/root/google-mysql/include -I/root/google-mysql/regex -
I/root/google-mysql/sql -Wall -Wextra -Wunused -Wwrite-strings -Wno-
strict-aliasing -Werror -Wdeclaration-after-statement -g -DSAFE_MUTEX -
g3 -O0 -fno-omit-frame-pointer -I/root/google-mysql/ncurses/include -I/
root/google-mysql/ncurses/include -DHAVE_TERM_H -DUNIV_LINUX -
DUNIV_LINUX -MT udf_example.lo -MD -MP -MF .deps/udf_example.Tpo -c
udf_example.c -fPIC -DPIC -o udf_example.o
cc1plus: warnings being treated as errors

log.cc:6982: Warning:‘class TableVisitingAlgorithm’ Has virtual
functions but no virtual destructor
log.cc:7041: Warning:‘class AuditComputer’ Has virtual functions but
no virtual destructor
log.cc:7060: Warning:‘class AliasCollector’ Has virtual functions but
no virtual destructor

Can you help me?

Razvan Musaloiu-E.

unread,
Mar 27, 2012, 11:32:45 PM3/27/12
to google...@googlegroups.com
How are you trying to compile? What Linux distribution are you using? Are you using the ./google/compile script?

-- Razvan ME

xin xing

unread,
Mar 27, 2012, 11:38:30 PM3/27/12
to Google MySQL
yes I am using the ./google/compile script.
I am using centOS 5.4
2.6.18-238.el5

On 3月28日, 上午11时32分, "Razvan Musaloiu-E." <razv...@google.com> wrote:

Razvan Musaloiu-E.

unread,
Mar 28, 2012, 12:07:59 AM3/28/12
to google...@googlegroups.com
I'll try to test on that. In the mean can you try the latest Ubuntu LTS or the latest Debian Squeeze? That's the two distributions that I would expect to work properly.

-- Razvan ME

xin xing

unread,
Mar 28, 2012, 1:39:36 AM3/28/12
to Google MySQL
OK I will try it.

xin xing

unread,
Apr 1, 2012, 2:21:42 AM4/1/12
to Google MySQL
hi Razvan :
The question before has been solved,it is the problem of gcc version.




but I encountered a new problem:




Making all in strings
mkdir .libs
gcc -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -
Werror -Wdeclaration-after-statement -g -DSAFE_MUTEX -g3 -O0 -fno-omit-
frame-pointer -I/root/google-mysql/ncurses/include -I/root/google-
mysql/ncurses/include -DHAVE_TERM_H -DUNIV_LINUX -DUNIV_LINUX -
rdynamic -o strings-t strings-t.o -lrt ../../unittest/mytap/
libmytap.a ../../mysys/libmysys.a ../../dbug/libdbug.a ../../strings/
libmystrings.a -lpthread -lcrypt -lnsl -lm -lpthread
Making all in vio
Making all in sql
make[1]: d: Command not found
sed: can't read y.tab.c: No such file or directory
make[1]: *** [sql_yacc.cc] Error 2
make[1]: *** Waiting for unfinished jobs....
mkdir .libs
g++ -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -
Werror -Wno-unused-parameter -g -DSAFE_MUTEX -g3 -O0 -fno-omit-frame-
pointer -I/root/google-mysql/ncurses/include -I/root/google-mysql/
ncurses/include -DHAVE_TERM_H -fno-rtti -rdynamic -o gen_lex_hash
gen_lex_hash.o ../vio/libvio.a ../mysys/libmysys.a ../dbug/
libdbug.a ../regex/libregex.a ../strings/libmystrings.a ../zlib/.libs/
libzlt.a -L/root/google-mysql/google-perftools /root/google-mysql/
google-perftools/.libs/libtcmalloc_minimal.a -lrt -lpthread /usr/local/
gcc-4.6.1/lib/../lib64/libstdc++.so -lpthread -lcrypt -lnsl -lm -
lpthread -Wl,--rpath -Wl,/usr/local/gcc-4.6.1/lib/../lib64 -Wl,--
rpath -Wl,/usr/local/gcc-4.6.1/lib/../lib64
make: *** [all-recursive] Error 1
*** Exit on error
Duration: 135 seconds




plz help me.thx

On 3月28日, 下午12时07分, "Razvan Musaloiu-E." <razv...@google.com> wrote:

Razvan Musaloiu-E.

unread,
Apr 1, 2012, 3:35:06 AM4/1/12
to google...@googlegroups.com
Can you make sure you have flex and bison installed on your system?

-- Razvan ME

xin xing

unread,
Apr 1, 2012, 4:59:16 AM4/1/12
to Google MySQL
yes I have found that it is the problem of bison. Thank you!
Reply all
Reply to author
Forward
0 new messages