Skip to content

Error when trying to compile #2

Description

@violetcereza

src/lua50_profiler.c:207: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘prof_funcs’

Full luarocks text:

Installing http://www.luarocks.org/repositories/rocks/luaprofiler-2.0.2-2.src.rock...
Using http://www.luarocks.org/repositories/rocks/luaprofiler-2.0.2-2.src.rock... switching to 'build' mode
Archive:  /tmp/luarocks_luarocks-rock-luaprofiler-2.0.2-2-808/luaprofiler-2.0.2-2.src.rock
  inflating: luaprofiler-2.0.2-2.rockspec  
 extracting: luaprofiler-2.0.2.tar.gz  
Do not use 'module' as a build type. Use 'builtin' instead.
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c src/clocks.c -o src/clocks.o
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c src/core_profiler.c -o src/core_profiler.o
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c src/function_meter.c -o src/function_meter.o
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c src/stack.c -o src/stack.o
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/usr/local/include -c src/lua50_profiler.c -o src/lua50_profiler.o
src/lua50_profiler.c:207: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘prof_funcs’
src/lua50_profiler.c: In function ‘luaopen_profiler’:
src/lua50_profiler.c:216: error: ‘prof_funcs’ undeclared (first use in this function)
src/lua50_profiler.c:216: error: (Each undeclared identifier is reported only once
src/lua50_profiler.c:216: error: for each function it appears in.)

Error: Build error: Failed compiling object src/lua50_profiler.o

I am on Mac OSX 10.6.8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions