"Rob" <[EMAIL PROTECTED]> writes: > I have been trying to compile elinks with lua scripting, but > for some reason, elinks is not recognizing my install of lua > when I run configure. I have tried this with lua 5.0 (which is > recommended on the elinks site) as well as 5.1 (which it seemed > like configure tried to check for).
We should remove the 5.1 check from configure, until ELinks properly supports that version. > Here is a link to my config.log file: > http://www.freeshells.ch/~alexyeh/config.log The relevant part is: | configure:17660: gcc -o conftest -g -O2 -Wall -rdynamic conftest.c -llua -llualib -lm -ldl -lz -lbz2 >&5 | ld: table of contents for archive: /usr/local/lib/liblualib.a is out of date; rerun ranlib(1) (can't load from it) That may be fixable by running (possibly as root): ranlib /usr/local/lib/liblualib.a However, this should have happened automatically when you installed Lua: lua-5.0/config:137: RANLIB= ranlib lua-5.0/Makefile:78: @echo "RANLIB = $(RANLIB)" lua-5.0/src/lib/Makefile:12: T= $(LIB)/liblualib.a lua-5.0/src/lib/Makefile:16: $T: $(OBJS) lua-5.0/src/lib/Makefile:17: $(AR) $@ $(OBJS) lua-5.0/src/lib/Makefile:18: $(RANLIB) $@ So, it would be interesting to see your Lua build log too. | gcc: unrecognized option `-rdynamic' That you can ignore. | conftest.c: In function `main': | conftest.c:132: warning: implicit declaration of function `luaL_newstate' | conftest.c:132: warning: initialization makes pointer from integer without a cast Those happen because GCC found <lua.h> of Lua 5.1 and it does #define lua_open() luaL_newstate() and ELinks does not #include <lauxlib.h>, which declares luaL_newstate. So please try with Lua 5.0 headers.
pgpULSOWNWEBO.pgp
Description: PGP signature
_______________________________________________ elinks-dev mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-dev
