lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Actually, gcc would not produce, issuing the message from "ld"
that ".lua_pushnil" is an undefined symbol.

Mark F. Morss
Principal Analyst, Market Risk
Audinet 220-6757

             Luiz Henrique de                                              
             <lhf@tecgraf.puc-                                          To 
   >                   Lua list                            
             Sent by:                  <>       
             lua-bounces@bazar                                          cc 
             r                                                     Subject 
                                       Re: installing Lua 5.1 on AIX 5.2   
             02/01/2006 10:03                                              
             Please respond to                                             
                 Lua list                                                  

> 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
> but I did notice that the correct options were used during the

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");
  return 0;

(hit ^D here)

% gcc -o -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