lua-users home
lua-l archive

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


FYI,
I managed to install it via LuaRocks.

best,
valerio

On Mon, May 7, 2012 at 10:21 AM, Valerio Schiavoni
<valerio.schiavoni@gmail.com> wrote:
> Hello,
> i try to compile LuaProfiler https://github.com/luaforge/luaprofiler
> on a FreeBSD 7.3 machine, but I didn't succed.
>
> The modified Makefile.freebsd looks like this:
>
> include config.darwin
>
> OBJS= clocks.o core_profiler.o function_meter.o stack.o lua50_profiler.o
>
> profiler: $(OBJS)
>        mkdir -p bin && gcc -undefined -o $(PROFILER_OUTPUT) $(OBJS)
>
> clean:
>        rm -f $(PROFILER_OUTPUT) src/*.o
>
> install:
>        install -m 0755 $(PROFILER_OUTPUT) /usr/local/lib/lua/5.1
>
>
> When executed, I get this error:
>
>
> make -f Makefile.freebsd
> mkdir -p bin && gcc -undefined -o bin/profiler.so clocks.o
> core_profiler.o function_meter.o stack.o lua50_profiler.o
> core_profiler.o(.text+0x117): In function `lprofP_init_core_profiler':
> : warning: warning: tmpnam() possibly used unsafely; consider using mkstemp()
> /usr/bin/ld: warning: cannot find entry symbol _start; defaulting to
> 0000000008048470
> lua50_profiler.o(.text+0x26): In function `luaopen_profiler':
> : undefined reference to `luaL_openlib'
> lua50_profiler.o(.text+0x3e): In function `luaopen_profiler':
> : undefined reference to `lua_pushlstring'
> lua50_profiler.o(.text+0x56): In function `luaopen_profiler':
> : undefined reference to `lua_pushlstring'
> lua50_profiler.o(.text+0x66): In function `luaopen_profiler':
> : undefined reference to `lua_settable'
> lua50_profiler.o(.text+0x7e): In function `luaopen_profiler':
> : undefined reference to `lua_pushlstring'
> lua50_profiler.o(.text+0x96): In function `luaopen_profiler':
> : undefined reference to `lua_pushlstring'
> lua50_profiler.o(.text+0xa6): In function `luaopen_profiler':
> : undefined reference to `lua_settable'
> lua50_profiler.o(.text+0xbe): In function `luaopen_profiler':
> : undefined reference to `lua_pushlstring'
> lua50_profiler.o(.text+0xd6): In function `luaopen_profiler':
> : undefined reference to `lua_pushlstring'
> lua50_profiler.o(.text+0xe6): In function `luaopen_profiler':
> : undefined reference to `lua_settable'
> lua50_profiler.o(.text+0xfe): In function `luaopen_profiler':
> : undefined reference to `lua_pushlstring'
> lua50_profiler.o(.text+0x116): In function `luaopen_profiler':
> : undefined reference to `lua_pushlstring'
> lua50_profiler.o(.text+0x126): In function `luaopen_profiler':
> : undefined reference to `lua_settable'
> lua50_profiler.o(.text+0x167): In function `profiler_stop':
> : undefined reference to `lua_sethook'
> lua50_profiler.o(.text+0x177): In function `profiler_stop':
> : undefined reference to `lua_pushlightuserdata'
> lua50_profiler.o(.text+0x187): In function `profiler_stop':
> : undefined reference to `lua_gettable'
> lua50_profiler.o(.text+0x197): In function `profiler_stop':
> : undefined reference to `lua_type'
> lua50_profiler.o(.text+0x1ab): In function `profiler_stop':
> : undefined reference to `lua_touserdata'
> lua50_profiler.o(.text+0x1d1): In function `profiler_stop':
> : undefined reference to `lua_pushlightuserdata'
> lua50_profiler.o(.text+0x1d9): In function `profiler_stop':
> : undefined reference to `lua_pushnil'
> lua50_profiler.o(.text+0x1e9): In function `profiler_stop':
> : undefined reference to `lua_settable'
> lua50_profiler.o(.text+0x1f9): In function `profiler_stop':
> : undefined reference to `lua_pushboolean'
> lua50_profiler.o(.text+0x21c): In function `profiler_stop':
> : undefined reference to `lua_pushboolean'
> lua50_profiler.o(.text+0x257): In function `callhook':
> : undefined reference to `lua_pushlightuserdata'
> lua50_profiler.o(.text+0x267): In function `callhook':
> : undefined reference to `lua_gettable'
> lua50_profiler.o(.text+0x277): In function `callhook':
> : undefined reference to `lua_touserdata'
> lua50_profiler.o(.text+0x28e): In function `callhook':
> : undefined reference to `lua_getstack'
> lua50_profiler.o(.text+0x2b0): In function `callhook':
> : undefined reference to `lua_getinfo'
> lua50_profiler.o(.text+0x310): In function `callhook':
> : undefined reference to `lua_getinfo'
> lua50_profiler.o(.text+0x33a): In function `profiler_init':
> : undefined reference to `lua_pushlightuserdata'
> lua50_profiler.o(.text+0x34a): In function `profiler_init':
> : undefined reference to `lua_gettable'
> lua50_profiler.o(.text+0x35a): In function `profiler_init':
> : undefined reference to `lua_type'
> lua50_profiler.o(.text+0x378): In function `profiler_init':
> : undefined reference to `lua_settop'
> lua50_profiler.o(.text+0x3a7): In function `profiler_init':
> : undefined reference to `luaL_loadstring'
> lua50_profiler.o(.text+0x3c8): In function `profiler_init':
> : undefined reference to `lua_gettop'
> lua50_profiler.o(.text+0x3e6): In function `profiler_init':
> : undefined reference to `luaL_checklstring'
> lua50_profiler.o(.text+0x432): In function `profiler_init':
> : undefined reference to `lua_sethook'
> lua50_profiler.o(.text+0x442): In function `profiler_init':
> : undefined reference to `lua_pushlightuserdata'
> lua50_profiler.o(.text+0x44e): In function `profiler_init':
> : undefined reference to `lua_pushlightuserdata'
> lua50_profiler.o(.text+0x45e): In function `profiler_init':
> : undefined reference to `lua_settable'
> lua50_profiler.o(.text+0x476): In function `profiler_init':
> : undefined reference to `lua_getfield'
> lua50_profiler.o(.text+0x486): In function `profiler_init':
> : undefined reference to `lua_pushlightuserdata'
> lua50_profiler.o(.text+0x496): In function `profiler_init':
> : undefined reference to `lua_pushstring'
> lua50_profiler.o(.text+0x4a6): In function `profiler_init':
> : undefined reference to `lua_gettable'
> lua50_profiler.o(.text+0x4b6): In function `profiler_init':
> : undefined reference to `lua_settable'
> lua50_profiler.o(.text+0x4c6): In function `profiler_init':
> : undefined reference to `lua_pushstring'
> lua50_profiler.o(.text+0x4de): In function `profiler_init':
> : undefined reference to `lua_pushcclosure'
> lua50_profiler.o(.text+0x4ee): In function `profiler_init':
> : undefined reference to `lua_settable'
> lua50_profiler.o(.text+0x526): In function `profiler_init':
> : undefined reference to `lua_pushboolean'
> lua50_profiler.o(.text+0x56c): In function `profiler_init':
> : undefined reference to `lua_pcall'
> lua50_profiler.o(.text+0x581): In function `profiler_init':
> : undefined reference to `luaL_error'
> lua50_profiler.o(.text+0x5a7): In function `exit_profiler':
> : undefined reference to `lua_pushlightuserdata'
> lua50_profiler.o(.text+0x5b7): In function `exit_profiler':
> : undefined reference to `lua_gettable'
> lua50_profiler.o(.text+0x5c7): In function `exit_profiler':
> : undefined reference to `lua_touserdata'
> lua50_profiler.o(.text+0x5e8): In function `exit_profiler':
> : undefined reference to `lua_pushlightuserdata'
> lua50_profiler.o(.text+0x5f8): In function `exit_profiler':
> : undefined reference to `lua_gettable'
> lua50_profiler.o(.text+0x610): In function `exit_profiler':
> : undefined reference to `lua_call'
> lua50_profiler.o(.text+0x636): In function `profiler_resume':
> : undefined reference to `lua_pushlightuserdata'
> lua50_profiler.o(.text+0x646): In function `profiler_resume':
> : undefined reference to `lua_gettable'
> lua50_profiler.o(.text+0x656): In function `profiler_resume':
> : undefined reference to `lua_touserdata'
> lua50_profiler.o(.text+0x686): In function `profiler_pause':
> : undefined reference to `lua_pushlightuserdata'
> lua50_profiler.o(.text+0x696): In function `profiler_pause':
> : undefined reference to `lua_gettable'
> lua50_profiler.o(.text+0x6a6): In function `profiler_pause':
> : undefined reference to `lua_touserdata'
> /usr/lib/libc.so: undefined reference to `environ'
> /usr/lib/libc.so: undefined reference to `__progname'
> *** Error code 1
>
>
> Suggestions?
>
> thanks,
> valerio