[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: installing Lua 5.1 on AIX 5.2
- From: mfmorss@...
- Date: Wed, 1 Feb 2006 11:24:11 -0500
Actually, gcc would not produce dummy.so, issuing the message from "ld"
that ".lua_pushnil" is an undefined symbol.
Mark F. Morss
Principal Analyst, Market Risk
614-583-6757
Audinet 220-6757
Luiz Henrique de
Figueiredo
<lhf@tecgraf.puc- To
rio.br> Lua list
Sent by: <lua@bazar2.conectiva.com.br>
lua-bounces@bazar cc
2.conectiva.com.b
r Subject
Re: installing Lua 5.1 on AIX 5.2
02/01/2006 10:03
AM
Please respond to
Lua list
<lua@bazar2.conec
tiva.com.br>
> Is there something in particular to do to test this? Lua comes up fine
> interractively; I'm not sure how to tell if the dynamic loading is
enabled,
> but I did notice that the correct options were used during the
compilation.
If the linking went ok then at least dlopen and friends were found.
The question is whether dynamic loading is working, not merely enabled.
So try this in src/:
% cat >dummy.c
#include <stdio.h>
#include "lua.h"
int luaopen_dummy (lua_State *L) {
puts("hello from dummy");
lua_pushnil(L);
return 0;
}
(hit ^D here)
% gcc -o dummy.so -shared dummy.c
% lua -v -ldummy
If you see "hello from dummy", all is well.
If you see "undefined symbol: lua_pushnil", then dynamic loading is not
working.
--lhf