Compile Error in mysql-proxy-0.6.0 and lua
Posted by:
Tom Krouper
Date: September 26, 2007 01:37PM
I seem to be having a compile problem. Based on other folks problem, I went ahead and gave as much information as I hope is helpful. I compiled lua 5.1.2 from source and got no errors. When I configure mysql-proxy I get an error that gets passed by, but when I do the make I get a fatal error. This is a RHEL5 machine if that has any relevance.
===========================================
# which lua
===========================================
/usr/local/bin/lua
===========================================
# lua -v
===========================================
Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
===========================================
excerpt of 'make'
===========================================
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/mysql -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES -DLIBDIR="\"/usr/local/share/mysql-proxy\"" -g -O2 -MT mysql_proxy-glib-ext.o -MD -MP -MF ".deps/mysql_proxy-glib-ext.Tpo" -c -o mysql_proxy-glib-ext.o `test -f 'glib-ext.c' || echo './'`glib-ext.c; \
then mv -f ".deps/mysql_proxy-glib-ext.Tpo" ".deps/mysql_proxy-glib-ext.Po"; else rm -f ".deps/mysql_proxy-glib-ext.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o mysql-proxy mysql_proxy-mysql-proxy.o mysql_proxy-network-mysqld.o mysql_proxy-network-mysqld-proto.o mysql_proxy-network-mysqld-proxy.o mysql_proxy-network-mysqld-server.o mysql_proxy-network-mysqld-table.o mysql_proxy-network-conn-pool.o mysql_proxy-network-socket.o mysql_proxy-sql-tokenizer.o mysql_proxy-glib-ext.o -levent -L/lib64 -lglib-2.0 -L/usr/local/lib -llua -ldl
mkdir .libs
gcc -g -O2 -o mysql-proxy mysql_proxy-mysql-proxy.o mysql_proxy-network-mysqld.o mysql_proxy-network-mysqld-proto.o mysql_proxy-network-mysqld-proxy.o mysql_proxy-network-mysqld-server.o mysql_proxy-network-mysqld-table.o mysql_proxy-network-conn-pool.o mysql_proxy-network-socket.o mysql_proxy-sql-tokenizer.o mysql_proxy-glib-ext.o /usr/local/lib/libevent.so -lrt -lresolv -L/lib64 -lglib-2.0 -L/usr/local/lib -llua -ldl -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
/usr/local/lib/liblua.a(lvm.o): In function `Arith':
lvm.c:(.text+0xc3c): undefined reference to `floor'
lvm.c:(.text+0xc9d): undefined reference to `pow'
/usr/local/lib/liblua.a(lvm.o): In function `luaV_execute':
lvm.c:(.text+0x2260): undefined reference to `floor'
lvm.c:(.text+0x2292): undefined reference to `pow'
/usr/local/lib/liblua.a(lcode.o): In function `codearith':
lcode.c:(.text+0x10d4): undefined reference to `floor'
lcode.c:(.text+0x1137): undefined reference to `pow'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_tan':
lmathlib.c:(.text+0x12f): undefined reference to `tan'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_tanh':
lmathlib.c:(.text+0x15f): undefined reference to `tanh'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_sqrt':
lmathlib.c:(.text+0x1a3): undefined reference to `sqrt'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_sin':
lmathlib.c:(.text+0x1cf): undefined reference to `sin'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_sinh':
lmathlib.c:(.text+0x1ff): undefined reference to `sinh'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_floor':
lmathlib.c:(.text+0x32f): undefined reference to `floor'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_random':
lmathlib.c:(.text+0x426): undefined reference to `floor'
lmathlib.c:(.text+0x475): undefined reference to `floor'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_pow':
lmathlib.c:(.text+0x4fb): undefined reference to `pow'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_log':
lmathlib.c:(.text+0x59f): undefined reference to `log'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_log10':
lmathlib.c:(.text+0x5cf): undefined reference to `log10'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_fmod':
lmathlib.c:(.text+0x6bb): undefined reference to `fmod'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_exp':
lmathlib.c:(.text+0x6ef): undefined reference to `exp'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_cos':
lmathlib.c:(.text+0x71f): undefined reference to `cos'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_cosh':
lmathlib.c:(.text+0x74f): undefined reference to `cosh'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_ceil':
lmathlib.c:(.text+0x77f): undefined reference to `ceil'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_atan':
lmathlib.c:(.text+0x7af): undefined reference to `atan'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_atan2':
lmathlib.c:(.text+0x80b): undefined reference to `atan2'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_asin':
lmathlib.c:(.text+0x83f): undefined reference to `asin'
/usr/local/lib/liblua.a(lmathlib.o): In function `math_acos':
lmathlib.c:(.text+0x86f): undefined reference to `acos'
collect2: ld returned 1 exit status
make[2]: *** [mysql-proxy] Error 1
make[2]: Leaving directory `/usr/local/src/mysql-proxy-0.6.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mysql-proxy-0.6.0'
make: *** [all] Error 2
===========================================
excerpt of './configure LUA_CFLAGS="-I/usr/local/include" LUA_LIBS="-L/usr/local/lib -llua -ldl"'
===========================================
checking for event.h... yes
checking for check - version >= 0.8.2... no
*** Could not run check test program, checking why...
*** The test program failed to compile or link. See the file config.log for
*** the exact error that occured.
configure: creating ./config.status
config.status: creating Makefile
===========================================
excerpt of config.log (that the configure command suggests looking at)
===========================================
configure:22484: gcc -o conftest -g -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES conftest.c -lcheck >&5
conftest.c:57:19: error: check.h: No such file or directory
conftest.c: In function 'main':
conftest.c:67: warning: incompatible implicit declaration of built-in function 'strdup'
conftest.c:73: error: 'CHECK_MAJOR_VERSION' undeclared (first use in this function)
conftest.c:73: error: (Each undeclared identifier is reported only once
conftest.c:73: error: for each function it appears in.)
conftest.c:73: error: 'check_major_version' undeclared (first use in this function)
conftest.c:74: error: 'CHECK_MINOR_VERSION' undeclared (first use in this function)
conftest.c:74: error: 'check_minor_version' undeclared (first use in this function)
conftest.c:75: error: 'CHECK_MICRO_VERSION' undeclared (first use in this function)
conftest.c:75: error: 'check_micro_version' undeclared (first use in this function)
configure:22487: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "mysql-proxy"
| #define PACKAGE_TARNAME "mysql-proxy"
Subject
Views
Written By
Posted
Compile Error in mysql-proxy-0.6.0 and lua
6846
September 26, 2007 01:37PM
3312
September 27, 2007 06:59AM
2750
September 27, 2007 08:03AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.