Re: compile 1.1.4 rc0 with lua 5.0 on darwin 7.9/OS X?

Kalle Olavi Niemitalo <[email protected]>
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
"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.

_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
signature.asc (application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHrWorHm9IGt60eMgRAgO7AKCusgyt/CV9ujdlNo3SP89H5YM42wCgnSxd
v0yDJRp1AZ8ogQGkuearRek=
=h297
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.