On Thu, 18 May 2006 00:40:38 +0200, Matthieu Moy <[EMAIL PROTECTED]>
wrote:
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?
configure:5526: found /usr/bin/lua
configure:5538: result: /usr/bin/lua
configure:5550: checking for lua version >= 5.1
configure:5562: result: yes (found 5.1)
configure:5570: checking for luac
configure:5588: found /usr/bin/luac
configure:5600: result: /usr/bin/luac
configure:5610: checking for lua version = luac version
configure:5614: result: yes (found 5.1)
configure:5644: checking lua.h usability
configure:5656: gcc -c -g -O2 conftest.c >&5
configure:5662: $? = 0
configure:5666: test -z
|| test ! -s conftest.err
configure:5669: $? = 0
configure:5672: test -s conftest.o
configure:5675: $? = 0
configure:5685: result: yes
configure:5689: checking lua.h presence
configure:5699: gcc -E conftest.c
configure:5705: $? = 0
configure:5725: result: yes
configure:5760: checking for lua.h
configure:5767: result: yes
configure:5644: checking lualib.h usability
configure:5656: gcc -c -g -O2 conftest.c >&5
configure:5662: $? = 0
configure:5666: test -z
|| test ! -s conftest.err
configure:5669: $? = 0
configure:5672: test -s conftest.o
configure:5675: $? = 0
configure:5685: result: yes
configure:5689: checking lualib.h presence
configure:5699: gcc -E conftest.c
configure:5705: $? = 0
configure:5725: result: yes
configure:5760: checking for lualib.h
configure:5767: result: yes
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
configure:5830: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "Ion Window Manager"
| #define PACKAGE_TARNAME "ion3"
| #define PACKAGE_VERSION "ION_VERSION"
| #define PACKAGE_STRING "Ion Window Manager ION_VERSION"
| #define PACKAGE_BUGREPORT "[EMAIL PROTECTED]"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_LUA_H 1
| #define HAVE_LUALIB_H 1
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char lua_call ();
| int
| main ()
| {
| lua_call ();
| ;
| return 0;
| }
configure:5856: result: no
configure:5862: error: *** Can't find lua_call in lua.
*** Check for liblua installation or
--with-lua-libraries or --with-lua-suffix options
Hope this is enough info from the config.log - please ask if you need more.
/c