yetanothergeek / xctrl

Shared library to control an X11 window manager.
GNU General Public License v2.0
13 stars 6 forks source link

Build failure #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Thanks, that did the trick!

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