lua-users home
lua-l archive

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


Hello,

I'm trying to use LuaProfiler (2.0) on Mac OS X (10.3.9) with Lua 5.1 (work6).

Compiling LuaProfiler produces the following warnings:

(info) compile: 'gcc -O2 -fno-common -c -o clocks.o clocks.c'
(info) compile: 'gcc -O2 -fno-common -c -o core_profiler.o core_profiler.c' (info) compile: 'gcc -O2 -fno-common -c -o function_meter.o function_meter.c' (info) compile: 'gcc -O2 -fno-common -c -o lua50_profiler.o lua50_profiler.c'
lua50_profiler.c: In function `profiler_init':
lua50_profiler.c:122: warning: passing arg 1 of `lprofP_init_core_profiler' discards qualifiers from pointer target type
lua50_profiler.c: At top level:
lua50_profiler.c:171: warning: `calcCallTime' was declared implicitly `extern' and later `static'
lua50_profiler.c:114: warning: previous declaration of `calcCallTime'
lua50_profiler.c:171: warning: type mismatch with previous implicit declaration lua50_profiler.c:114: warning: previous implicit declaration of `calcCallTime' lua50_profiler.c:171: warning: `calcCallTime' was previously implicitly declared to return `int'
(info) compile: 'gcc -O2 -fno-common -c -o stack.o stack.c'
(info) link: 'gcc -bundle -undefined dynamic_lookup -o profiler.so clocks.o core_profiler.o function_meter.o lua50_profiler.o stack.o'

Not sure if I should worry about those... but when trying to use the profiler, I get the following exception:

require( "profiler" )

profiler.start()

dyld: lua Undefined symbols:
./Library/Modules/profiler.so undefined reference to _lua_dostring expected to be defined in a dynamic image
Trace/BPT trap

Any ideas on what I might be doing wrong?

TIA!

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/