Re: darcs snapshot building error with lua 5.1
csant [EMAIL PROTECTED] writes: Still failing with the same error after applying the patch to a clean tree before running autoreconf. Then, can you try this one (on a clean tree): --- old-ion-3/configure.ac 2006-05-18 13:21:14.347139320 +0200 +++ new-ion-3/configure.ac 2006-05-18 13:21:14.400131264 +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([dl], [dlopen], [lua_extra_libs=$lua_extra_libs -ldl], []) 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 $lua_extra_libs], [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], []) + [$LUA_LIBS $lua_extra_libs]) dnl }}} dnl liblua_version {{{ If it doesn't work, it'd be great if you can investigate a bit on your side. AIUI, you need to add -lm to the command line compiling the test (the one that appears here in config.log: configure:5837: checking for lua_call in -llua5.1 configure:5867: gcc -o conftest -g -O2 conftest.c -llua5.1 -lm 5 configure:5873: $? = 0 ) Thanks a lot, -- Matthieu
Re: darcs snapshot building error with lua 5.1
On 2006-05-18 10:03 +0200, Matthieu Moy wrote: csant [EMAIL PROTECTED] writes: Still failing with the same error after applying the patch to a clean tree before running autoreconf. Then, can you try this one (on a clean tree): If you people can fix this issue, I'll make a new release. -- Tuomo
darcs snapshot building error with lua 5.1
The current darcs snapshot fails on ./configure with the following message: checking for lua_open in -llua... no configure: error: *** Can't find lua_open in lua. *** Check for liblua installation or --with-lua-libraries or --with-lua-suffix options It's sad :`(
Re: darcs snapshot building error with lua 5.1
On 2006-05-17, Vladimir Chizhov [EMAIL PROTECTED] wrote: The current darcs snapshot fails on ./configure with the following message: checking for lua_open in -llua... no configure: error: *** Can't find lua_open in lua. *** Check for liblua installation or --with-lua-libraries or --with-lua-suffix options It's sad :`( I don't like autoconf, and therefore you will not find me updating the scripts. -- Tuomo
Re: darcs snapshot building error with lua 5.1
Vladimir Chizhov [EMAIL PROTECTED] writes: The current darcs snapshot fails on ./configure with the following message: checking for lua_open in -llua... no configure: error: *** Can't find lua_open in lua. *** Check for liblua installation or --with-lua-libraries or --with-lua-suffix options I've hacked a bit, and it seems I have a working configure.ac. Tuomo, I've sent a patch (two, indeed) to you with darcs, but I'm afraid I mixed up everything (the predist.sh script seems to modify source files too). My version of configure.ac is available here: http://www-verimag.imag.fr/~moy/tmp/configure.ac And, here's the patch again: --- old-ion-3/configure.ac 2006-05-17 14:21:55.847203744 +0200 +++ new-ion-3/configure.ac 2006-05-17 14:21:55.852202984 +0200 @@ -176,11 +176,11 @@ dnl }}} dnl lua_version {{{ -AC_MSG_CHECKING([for lua version = 5.0]) +AC_MSG_CHECKING([for lua version = 5.1]) lua_version=$($LUA -v 21 | head -n 1 | cut -d' ' -f2) dnl lua_version=$($LUA -v 21 /dev/null | head -n 1 | $EGREP -o '[0-9]+(\.[0-9]+)+') case $lua_version in -0.* | 1.* | 2.* | 3.* | 4.*) +0.* | 1.* | 2.* | 3.* | 4.* | 5.0) AC_MSG_RESULT([no (found $lua_version)]) AC_MSG_ERROR([*** can't build ion with this version of lua]) ;; @@ -229,22 +229,17 @@ LUA_LIBS=-L$with_lua_prefix/lib fi AC_CHECK_LIB([lua$with_lua_suffix], - [lua_open], + [lua_call], [LUA_LIBS=$LUA_LIBS -llua$with_lua_suffix], - [AC_MSG_ERROR([*** Can't find lua_open in lua$with_lua_suffix. + [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], []) -AC_CHECK_LIB([lualib$with_lua_suffix], - [luaopen_loadlib], - [LUA_LIBS=$LUA_LIBS $lua_extra_libs -llualib$with_lua_suffix], - [exit 1], - [$LUA_LIBS $lua_extra_libs]) dnl }}} dnl liblua_version {{{ -AC_MSG_CHECKING([for liblua version = 5.0]) +AC_MSG_CHECKING([for liblua version = 5.1]) save_CFLAGS=$CFLAGS save_LIBS=$LIBS CFLAGS=$CFLAGS $LUA_INCLUDES @@ -257,12 +252,8 @@ int main() { -if(strcmp(lua_version(), LUA_VERSION)!=0){ -printf(Error: lua_version() does not match LUA_VERSION. ); -exit(EXIT_FAILURE); -} -printf((found %s)... , lua_version()); -if(strcmp(lua_version(), Lua 5.0)0) +printf((found %s)... , LUA_VERSION); +if(LUA_VERSION_NUM = 501) exit(EXIT_FAILURE); exit(EXIT_SUCCESS); } -- Matthieu
Re: darcs snapshot building error with lua 5.1
On 2006-05-17, Matthieu Moy [EMAIL PROTECTED] wrote: I've hacked a bit, and it seems I have a working configure.ac. BTW, there are a few other autoconf issues in the TODO list (included in the repository), in case anyone cares to fix them. -- Tuomo
Re: darcs snapshot building error with lua 5.1
Tuomo Valkonen wrote: On 2006-05-17, Matthieu Moy [EMAIL PROTECTED] wrote: I've hacked a bit, and it seems I have a working configure.ac. BTW, there are a few other autoconf issues in the TODO list (included in the repository), in case anyone cares to fix them. That should be fixed now, but testers (in particular, non-debian users) are welcome. To test: [ install darcs ] darcs get --partial http://iki.fi/tuomov/repos/ion-3/ cd ion-3 sh predist.sh -snapshot ./configure make Normally, any problem should be reported by ./configure, and if configure ends without error, make should work. (BTW, you can update the TODO.riot, which I didn't do because I don't know riot). -- Matthieu
Re: darcs snapshot building error with lua 5.1
On Wed, 17 May 2006 20:06:00 +0200, Matthieu Moy [EMAIL PROTECTED] wrote: That should be fixed now, but testers (in particular, non-debian users) on a system that once-upon-a-time was SUSE 9.3, mostly with packages built on the system now. To test: [ install darcs ] darcs get --partial http://iki.fi/tuomov/repos/ion-3/ cd ion-3 sh predist.sh -snapshot autoreconf ./configure configure: error: *** Can't find lua_call in lua. *** Check for liblua installation or --with-lua-libraries or --with-lua-suffix options Note that: 1.) $ autoreconf $ ./configure was working until requiring lua 5.1, and 2.) I can simply conpile by modifying the path to lua in system.mk. /c -- [Quote] I have measured out my life with coffee spoons; ~~~ T.S. Eliot
Re: darcs snapshot building error with lua 5.1
csant wrote: On Wed, 17 May 2006 20:06:00 +0200, Matthieu Moy [EMAIL PROTECTED] wrote: That should be fixed now, but testers (in particular, non-debian users) on a system that once-upon-a-time was SUSE 9.3, mostly with packages built on the system now. To test: [ install darcs ] darcs get --partial http://iki.fi/tuomov/repos/ion-3/ cd ion-3 sh predist.sh -snapshot autoreconf ./configure configure: error: *** Can't find lua_call in lua. *** Check for liblua installation or --with-lua-libraries or --with-lua-suffix options Where is liblua installed and how is it called? -- Matthieu
Re: darcs snapshot building error with lua 5.1
csant [EMAIL PROTECTED] writes: configure: error: *** Can't find lua_call in lua. *** Check for liblua installation or --with-lua-libraries or --with-lua-suffix options Where is liblua installed and how is it called? I installed lua 5.1 from source with $ make linux # make install after modifying the Makefile to install to /usr instead of /usr/local , and liblua is /usr/lib/liblua.a Ah, this is actually where it is supposed to be, so there's a problem here ... you should have the exact error message in the generated config.log file. Can you post it here please? Thanks, -- Matthieu
Re: darcs snapshot building error with lua 5.1
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 {{{ -- Matthieu