Hi Rob, thanks for the reply.

> Looking at the Inline::Lua source files, it seems that the directory you
> specified with the '-I' switch needs to be the directory that contains
> lua.h, lualib.h and lauxlib.h. (I'll assume that those files are in
> /opt/local/include as you've specified.)
> And the directory you specified with the '-L' switch needs to be the
> directory that contains the lua library(s). (I'll assume that you got that
> right, too - and that there's only one lua library, and it's called
> 'liblua.a'.)

Yup and yup. As you suspect, liblua.a is indeed the sole Lua library.

> 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.
I did notice that xsubpp is warning "Please specify prototyping behavior for
Lua.xs (see perlxs manual)". I saw this in my attempts yesterday, too, but
for some reason (unclean build?) wasn't in the output I sent. Being
unfamiliar with XS, I don't know if it's relevant at all, but... grasping at
straws here. Any further insight?

Thanks,
Peter

Complete output follows:

# perl Makefile.PL INC=-I/opt/local/include LIBS="-L/opt/local/lib -llua"
Checking if your kit is complete...
Looks good
Writing Makefile for Inline::Lua
# make
cp lib/Inline/Lua.pm blib/lib/Inline/Lua.pm
AutoSplitting blib/lib/Inline/Lua.pm (blib/lib/auto/Inline/Lua)
/opt/local/bin/perl /opt/local/lib/perl5/5.8.9/ExtUtils/xsubpp  -typemap
/opt/local/lib/perl5/5.8.9/ExtUtils/typemap -typemap typemap  Lua.xs >
Lua.xsc && mv Lua.xsc Lua.c
Please specify prototyping behavior for Lua.xs (see perlxs manual)
/usr/bin/gcc-4.0 -c  -I/opt/local/include -fno-common -DPERL_DARWIN
-I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe
-I/opt/local/include -O3   -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\"
 "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE"   Lua.c
Running Mkbootstrap for Inline::Lua ()
chmod 644 Lua.bs
rm -f blib/arch/auto/Inline/Lua/Lua.bundle
env MACOSX_DEPLOYMENT_TARGET=10.3 /usr/bin/gcc-4.0  -L/opt/local/lib -bundle
-undefined dynamic_lookup Lua.o  -o blib/arch/auto/Inline/Lua/Lua.bundle \
   -L/opt/local/lib -llua   \

chmod 755 blib/arch/auto/Inline/Lua/Lua.bundle
cp Lua.bs blib/arch/auto/Inline/Lua/Lua.bs
chmod 644 blib/arch/auto/Inline/Lua/Lua.bs
Manifying blib/man3/Inline::Lua.3pm
# make test
PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1_basic.........Can't load
'/opt/local/lib/perl5/site_perl/5.8.9//darwin-2level/auto/Inline/Lua/Lua.bundle'
for module Inline::Lua:
dlopen(/opt/local/lib/perl5/site_perl/5.8.9//darwin-2level/auto/Inline/Lua/Lua.bundle,
2): Symbol not found: _luaL_checkudata
  Referenced from:
/opt/local/lib/perl5/site_perl/5.8.9//darwin-2level/auto/Inline/Lua/Lua.bundle
  Expected in: dynamic lookup
 at /opt/local/lib/perl5/site_perl/5.8.9//darwin-2level/Inline/Lua.pm line
213
Compilation failed in require at (eval 6) line 1.
[snip]

Reply via email to