On Thu, 18 May 2006 01:04:25 +0200, Matthieu Moy <[EMAIL PROTECTED]>
wrote:
csant <[EMAIL PROTECTED]> writes:
configure:5794: checking for lua_call in -llua
configure:5824: gcc -o conftest -g -O2 conftest.c -llua >&5
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblua.a(lvm.o)(.text+0xab5):
In function `Arith':
lvm.c: undefined reference to `pow'
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblua.a(lvm.o)(.text+0x1d82):
In function `luaV_execute':
lvm.c: undefined reference to `pow'
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../liblua.a(lcode.o)(.text+0x108d):
In function `codearith':
lcode.c: undefined reference to `pow'
collect2: ld returned 1 exit status
Can you try this patch ?
--- old-ion-3/configure.ac 2006-05-18 04:32:21.846862632 +0200
+++ new-ion-3/configure.ac 2006-05-18 04:32:22.063829648 +0200
@@ -244,14 +244,14 @@
elif test "x$with_lua_prefix" != x; then
LUA_LIBS="-L$with_lua_prefix/lib"
fi
+AC_CHECK_LIB([m], [exp], [lua_extra_libs="$lua_extra_libs -lm"], [])
AC_CHECK_LIB([lua$with_lua_suffix],
[lua_call],
- [LUA_LIBS="$LUA_LIBS -llua$with_lua_suffix"],
+ [LUA_LIBS="$LUA_LIBS -llua$with_lua_suffix -lm"],
[AC_MSG_ERROR([*** Can't find lua_call in
lua$with_lua_suffix.
*** Check for liblua installation or
--with-lua-libraries or --with-lua-suffix options])],
[$LUA_LIBS])
AC_CHECK_LIB([dl], [dlopen], [lua_extra_libs="$lua_extra_libs -ldl"],
[])
-AC_CHECK_LIB([m], [exp], [lua_extra_libs="$lua_extra_libs -lm"], [])
dnl }}}
dnl liblua_version {{{
Still failing with the same error after applying the patch to a clean tree
before running autoreconf.
/c