mozilla-services/lua_sandbox — pull request #4 by NixM0nk3y (2014-02-09 12:59:28+00:00)
Title: Failure to link lib on a ARM platform

Hi,

Came across issues building latest version of heka due to issue with cjson not compiled with fpic. Added additional compiler flags to the cjson patch fixed this.

Error encountered:

[100%] Built target mocks
Scanning dependencies of target hekad
# github.com/mozilla-services/heka/sandbox/lua
/usr/bin/ld.bfd.real: /usr/local/src/golang/heka/build/heka/lib/libcjson.a(strbuf.c.o): relocation R_ARM_THM_MOVW_ABS_NC against `stderr' can not be used when making a shared object; recompile with -fPIC
/usr/local/src/golang/heka/build/heka/lib/libcjson.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [CMakeFiles/hekad] Error 2
make[1]: *** [CMakeFiles/hekad.dir/all] Error 2
make: *** [all] Error 2