lua-users home
lua-l archive

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


> After changing line 32 in lptypes.h from:
> 
> #if (LUA_VERSION_NUM == 502)
> 
> to
> 
> #if (LUA_VERSION_NUM >= 502)
> 
> 'make' succeeded in building a version of lpeg.so that gives the correct
> result.

That is still strange. With the old test (LUA_VERSION_NUM == 502), the
compilation should produce lots of warnings (e.g., "implicit declaration
of function ‘lua_getfenv’"), and then the dynamic linker would produce
a corresponding error:

  ../lua/lua: error loading module 'lpeg' from file './lpeg.so':
  	./lpeg.so: undefined symbol: lua_getfenv


-- Roberto