yetanothergeek/xctrl

Build failure

GoogleCodeExporter opened this issue · 2 comments

I tried installing this on Trisquel 6, but I got the following error, and I now 
have no idea on how to proceed.

$ make EXTRA_CFLAGS=-I/usr/include/lua5.2
rm -f *.o xctrl.so
cc -I/usr/include/lua5.2 -Wall -DVERSION=\"1.09\" -Os -Wall -pedantic -Wshadow 
-Wunused -Wbad-function-cast -Wmissing-prototypes  -lX11 -lXmu -s -shared 
lxctrl.c -o xctrl.so
/usr/bin/ld: /tmp/ccnrYzNq.o: relocation R_X86_64_32 against `.rodata.str1.1' 
can not be used when making a shared object; recompile with -fPIC
/tmp/ccnrYzNq.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [xctrl.so] Error 1
make: *** [default] Error 2


Original issue reported on code.google.com by simon.ly...@gmail.com on 16 Nov 2014 at 2:01

Hello Simon,
Thanks for the report.

Maybe you can try this: 

make EXTRA_CFLAGS="-I/usr/include/lua5.2 -fpic" EXTRA_LDFLAGS=-Wl,--no-as-needed

Original comment by yetanoth...@gmail.com on 16 Nov 2014 at 3:21

Thanks, that did the trick!

Original comment by simon.ly...@gmail.com on 16 Nov 2014 at 7:14