Hi all,
We are trying to install the proxy in our architectura but we are getting compilation problems either in 32 bits and 64 bits.
It would be so nice to get some help.
Herve
www.lanetro.com
ERROR 32 bits
------------------------------------------------------------------------------
PROXY=> mysql-proxy v 0.7
OS => RedHat Enterprise Linux 5 - 32 bits
We downloaded the proxy code from: http://launchpad.net/mysql-proxy/trunk/0.7.0/+download/mysql-proxy-0.7.0.tar.gz
We installed:
- libevent-1.4.9-stable.tar.gz
- glib-2.18.4.tar.gz
- lua-5.1.4.tar.gz
We run the following command: export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
The instalation of mysql-proxy-0.7.0.tar.gz
./configure -> is successfull
But : make -> we get an error that stop compilation.
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/mysql -I/usr/include/glib-2.0 -I/usr/local/include/glib-2.0/glib -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -O2 -MT libmysql_proxy_la-network-mysqld-lua.lo -MD -MP -MF .deps/libmysql_proxy_la-network-mysqld-lua.Tpo -c network-mysqld-lua.c -fPIC -DPIC -o .libs/libmysql_proxy_la-network-mysqld-lua.o
mv -f .deps/libmysql_proxy_la-network-mysqld-lua.Tpo .deps/libmysql_proxy_la-network-mysqld-lua.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/mysql -I/usr/include/glib-2.0 -I/usr/local/include/glib-2.0/glib -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -O2 -MT libmysql_proxy_la-network-mysqld-proto.lo -MD -MP -MF .deps/libmysql_proxy_la-network-mysqld-proto.Tpo -c -o libmysql_proxy_la-network-mysqld-proto.lo `test -f 'network-mysqld-proto.c' || echo './'`network-mysqld-proto.c
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/mysql -I/usr/include/glib-2.0 -I/usr/local/include/glib-2.0/glib -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -O2 -MT libmysql_proxy_la-network-mysqld-proto.lo -MD -MP -MF .deps/libmysql_proxy_la-network-mysqld-proto.Tpo -c network-mysqld-proto.c -fPIC -DPIC -o .libs/libmysql_proxy_la-network-mysqld-proto.o
network-mysqld-proto.c: In function 'network_mysqld_proto_get_int8':
network-mysqld-proto.c:211: error: expected expression before '==' token
network-mysqld-proto.c: In function 'network_mysqld_proto_peek_int8':
network-mysqld-proto.c:231: error: expected expression before '==' token
network-mysqld-proto.c: In function 'network_mysqld_proto_get_int16':
network-mysqld-proto.c:252: error: expected expression before '==' token
network-mysqld-proto.c: In function 'network_mysqld_proto_peek_int16':
network-mysqld-proto.c:272: error: expected expression before '==' token
network-mysqld-proto.c: In function 'network_mysqld_proto_get_int24':
network-mysqld-proto.c:293: error: expected expression before '==' token
network-mysqld-proto.c: In function 'network_mysqld_proto_scramble':
network-mysqld-proto.c:842: error: 'GChecksum' undeclared (first use in this function)
network-mysqld-proto.c:842: error: (Each undeclared identifier is reported only once
network-mysqld-proto.c:842: error: for each function it appears in.)
network-mysqld-proto.c:842: error: 'cs' undeclared (first use in this function)
network-mysqld-proto.c:846: error: 'G_CHECKSUM_SHA1' undeclared (first use in this function)
make[3]: *** [libmysql_proxy_la-network-mysqld-proto.lo] Error 1
make[3]: se sale del directorio `/tmp/mysql-proxy-0.7.0/src'
make[2]: *** [all] Error 2
make[2]: se sale del directorio `/tmp/mysql-proxy-0.7.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/tmp/mysql-proxy-0.7.0'
make: *** [all] Error 2
ERROR 64 bits
------------------------------------------------------------------------------
PROXY=> mysql-proxy v 0.7
OS => RedHat Enterprise Linux 5 - 64 bits
We downloaded the proxy code from: http://launchpad.net/mysql-proxy/trunk/0.7.0/+download/mysql-proxy-0.7.0.tar.gz
We went through the same steps as before.
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/mysql -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -O2 -MT libmysql_chassis_la-chassis-keyfile.lo -MD -MP -MF .deps/libmysql_chassis_la-chassis-keyfile.Tpo -c chassis-keyfile.c -fPIC -DPIC -o .libs/libmysql_chassis_la-chassis-keyfile.o
mv -f .deps/libmysql_chassis_la-chassis-keyfile.Tpo .deps/libmysql_chassis_la-chassis-keyfile.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/mysql -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -O2 -MT libmysql_chassis_la-chassis-stats.lo -MD -MP -MF .deps/libmysql_chassis_la-chassis-stats.Tpo -c -o libmysql_chassis_la-chassis-stats.lo `test -f 'chassis-stats.c' || echo './'`chassis-stats.c
gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/mysql -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g -O2 -MT libmysql_chassis_la-chassis-stats.lo -MD -MP -MF .deps/libmysql_chassis_la-chassis-stats.Tpo -c chassis-stats.c -fPIC -DPIC -o .libs/libmysql_chassis_la-chassis-stats.o
mv -f .deps/libmysql_chassis_la-chassis-stats.Tpo .deps/libmysql_chassis_la-chassis-stats.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -export-dynamic -no-undefined -dynamic -o libmysql-chassis.la -rpath /usr/local/lib libmysql_chassis_la-glib-ext.lo libmysql_chassis_la-lua-load-factory.lo libmysql_chassis_la-lua-scope.lo libmysql_chassis_la-chassis-plugin.lo libmysql_chassis_la-chassis-log.lo libmysql_chassis_la-chassis-mainloop.lo libmysql_chassis_la-chassis-keyfile.lo libmysql_chassis_la-chassis-stats.lo -levent -L/usr/local/lib -lglib-2.0 -L/usr/local/lib -llua -lm -Wl,--export-dynamic -L/usr/local/lib -lgmodule-2.0 -lglib-2.0
gcc -shared .libs/libmysql_chassis_la-glib-ext.o .libs/libmysql_chassis_la-lua-load-factory.o .libs/libmysql_chassis_la-lua-scope.o .libs/libmysql_chassis_la-chassis-plugin.o .libs/libmysql_chassis_la-chassis-log.o .libs/libmysql_chassis_la-chassis-mainloop.o .libs/libmysql_chassis_la-chassis-keyfile.o .libs/libmysql_chassis_la-chassis-stats.o -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib /usr/local/lib/libevent.so -L/usr/local/lib -llua -lm /usr/local/lib/libgmodule-2.0.so /usr/local/lib/libglib-2.0.so -Wl,--export-dynamic -Wl,-soname -Wl,libmysql-chassis.so.0 -o .libs/libmysql-chassis.so.0.0.0
/usr/bin/ld: /usr/local/lib/liblua.a(lapi.o): relocation R_X86_64_32 against `luaO_nilobject_' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/liblua.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libmysql-chassis.la] Error 1
make[3]: se sale del directorio `/tmp/mysql-proxy-0.7.0/src'
make[2]: *** [all] Error 2
make[2]: se sale del directorio `/tmp/mysql-proxy-0.7.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/tmp/mysql-proxy-0.7.0'
make: *** [all] Error 2