----- Original Message -----
From: "Pete Parker" <pet.pete...@gmail.com>
The command that you run would then need to be:
# perl Makefile.PL INC=-I/opt/local/include LIBS="-L/opt/local/lib -llua"
I just tried this, with identical results--the bundle appears to build
successfully, but make test fails with the same "Symbol not found" error.
Is it still the same symbol that's not found ?
Did you run 'make clean' before re-building ? (It's important that you run
'make clean' between successive attempts to build the module ... though you
probably know that already.)
When you run 'perl Makefile.PL INC=-I/opt/local/include
LIBS="-L/opt/local/lib -llua"' do you get any "No library found for -llua"
warning ? If so, that means liblua.a has not been found, and we can then
expect that symbols won't be found.
If, on the other hand, there is no such warning, then we know that the
library has been found, and will be linked in. We then have to wonder why
the _luaL_checkudata symbol is not resolved, and I can only surmise that the
lua library simply doesn't resolve that symbol. Perhaps your Lua version is
too old (or too recent), or perhaps something else needs to resolve that
symbol (unlikely). The Inline::Lua README says that Lua-5.0 is needed and
that the author actually tested Inline::Lua against Lua-5.0.2.
I did notice that xsubpp is warning "Please specify prototyping behavior
for
Lua.xs (see perlxs manual)".
I have seen that warning on occasions, too - and it has never been a problem
for me. Nor, to my knowledge, has it ever been a problem for anyone else,
and I feel you can safely ignore it (though I shouldn't say that, as I don't
really know what the warning is on about).
I should add that I'm not a Mac user, so there could be Mac-specific forces
at play here, of which I'm unaware.
Cheers,
Rob