[Spock Proxy Devel] spockproxy build problem
Status: Alpha
Brought to you by:
kaotao
From: Xu, Y. <yu...@co...> - 2009-05-28 13:19:40
|
Hi Sir/Madam, I basicly follow your instruction ./autogen.sh, ./configure --without-lua, and make install. but I got the follow error when I excute "make install". How could I resolve this issue? Could you tell me how to make a binary build for 64 bit under 32 bit machine. [root@yudixu spockproxy]# ./configure -V spockproxy configure 0.8.7 generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. [root@yudixu spockproxy]# make install Making install in src make[1]: Entering directory `/root/sw/spockproxy/src' if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/mysql -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Werror -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -MT spockproxy-spockproxy.o -MD -MP -MF ".deps/spockproxy-spockproxy.Tpo" -c -o spockproxy-spockproxy.o `test -f 'spockproxy.cpp' || echo './'`spockproxy.cpp; \ then mv -f ".deps/spockproxy-spockproxy.Tpo" ".deps/spockproxy-spockproxy.Po"; else rm -f ".deps/spockproxy-spockproxy.Tpo"; exit 1; fi if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/mysql -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Werror -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -MT spockproxy-network-mysqld.o -MD -MP -MF ".deps/spockproxy-network-mysqld.Tpo" -c -o spockproxy-network-mysqld.o `test -f 'network-mysqld.cpp' || echo './'`network-mysqld.cpp; \ then mv -f ".deps/spockproxy-network-mysqld.Tpo" ".deps/spockproxy-network-mysqld.Po"; else rm -f ".deps/spockproxy-network-mysqld.Tpo"; exit 1; fi if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/mysql -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Werror -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -MT spockproxy-network-mysqld-proto.o -MD -MP -MF ".deps/spockproxy-network-mysqld-proto.Tpo" -c -o spockproxy-network-mysqld-proto.o `test -f 'network-mysqld-proto.cpp' || echo './'`network-mysqld-proto.cpp; \ then mv -f ".deps/spockproxy-network-mysqld-proto.Tpo" ".deps/spockproxy-network-mysqld-proto.Po"; else rm -f ".deps/spockproxy-network-mysqld-proto.Tpo"; exit 1; fi if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/mysql -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Werror -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -g -O2 -MT spockproxy-network-mysqld-proxy.o -MD -MP -MF ".deps/spockproxy-network-mysqld-proxy.Tpo" -c -o spockproxy-network-mysqld-proxy.o `test -f 'network-mysqld-proxy.cpp' || echo './'`network-mysqld-proxy.cpp; \ then mv -f ".deps/spockproxy-network-mysqld-proxy.Tpo" ".deps/spockproxy-network-mysqld-proxy.Po"; else rm -f ".deps/spockproxy-network-mysqld-proxy.Tpo"; exit 1; fi network-mysqld-proxy.cpp: In function `int proxy_read_query_result_is_finished(network_socket*, int*)': network-mysqld-proxy.cpp:3688: error: case label ` COM_QUIT' not within a switch statement network-mysqld-proxy.cpp:3689: error: case label ` COM_STATISTICS' not within a switch statement network-mysqld-proxy.cpp:3693: error: break statement not within loop or switch network-mysqld-proxy.cpp:3695: error: case label ` COM_PREPARE' not within a switch statement network-mysqld-proxy.cpp:3764: error: break statement not within loop or switch network-mysqld-proxy.cpp:3766: error: case label ` COM_EXECUTE' not within a switch statement network-mysqld-proxy.cpp:3767: error: case label ` COM_QUERY' not within a switch statement network-mysqld-proxy.cpp:3933: error: break statement not within loop or switch network-mysqld-proxy.cpp:3935: error: case label ` COM_BINLOG_DUMP' not within a switch statement network-mysqld-proxy.cpp:3941: error: break statement not within loop or switch network-mysqld-proxy.cpp:3943: error: case label not within a switch statement network-mysqld-proxy.cpp:3947: error: break statement not within loop or switch network-mysqld-proxy.cpp: At global scope: network-mysqld-proxy.cpp:3950: error: expected unqualified-id before "return" network-mysqld-proxy.cpp:3951: error: expected declaration before '}' token network-mysqld-proxy.cpp: In function `int proxy_read_query_result_is_finished(network_socket*, int*)': network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_SLEEP' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_QUIT' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_QUERY' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_CREATE_DB' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_DROP_DB' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_REFRESH' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_STATISTICS' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_PROCESS_INFO' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_CONNECT' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_TIME' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_DELAYED_INSERT' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_BINLOG_DUMP' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_TABLE_DUMP' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_CONNECT_OUT' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_REGISTER_SLAVE' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_PREPARE' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_EXECUTE' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_LONG_DATA' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_CLOSE_STMT' not handled in switch network-mysqld-proxy.cpp:3687: warning: enumeration value `COM_END' not handled in switch network-mysqld-proxy.cpp: At global scope: network-mysqld-proxy.cpp:145: warning: 'plugin_con_state* plugin_con_state_init()' defined but not used network-mysqld-proxy.cpp:329: warning: 'plugin_srv_state* plugin_srv_state_init()' defined but not used network-mysqld-proxy.cpp:2270: warning: 'retval_t proxy_read_handshake(network_mysqld*, network_mysqld_con*)' defined but not used network-mysqld-proxy.cpp:2492: warning: 'retval_t proxy_multiserver_read_handshake(network_mysqld*, network_mysqld_con*)' defined but not used network-mysqld-proxy.cpp:2926: warning: 'retval_t proxy_read_auth_result(network_mysqld*, network_mysqld_con*)' defined but not used network-mysqld-proxy.cpp:3003: warning: 'retval_t proxy_multiserver_read_auth_result(network_mysqld*, network_mysqld_con*)' defined but not used network-mysqld-proxy.cpp:3248: warning: 'retval_t proxy_read_query(network_mysqld*, network_mysqld_con*)' defined but not used network-mysqld-proxy.cpp:3274: warning: 'retval_t proxy_get_server_list(network_mysqld*, network_mysqld_con*)' defined but not used network-mysqld-proxy.cpp:3381: warning: 'retval_t proxy_get_server_connection_list(network_mysqld*, network_mysqld_con*)' defined but not used network-mysqld-proxy.cpp:3469: warning: 'retval_t proxy_send_query_result(network_mysqld*, network_mysqld_con*)' defined but not used make[1]: *** [spockproxy-network-mysqld-proxy.o] Error 1 make[1]: Leaving directory `/root/sw/spockproxy/src' make: *** [install-recursive] Error 1 Thanks, Yudi |