Hi,

I'm trying to install 'lbc' with luarocks and I'm getting errors.

Host system: Ubuntu 12.04.1, x86-64
Luarocks version: 2.0.10, compiled and installed from source
The problem:

~/work $ sudo luarocks install lbc
Installing http://luarocks.luaforge.net/rocks/lbc-20100404-1.src.rock...
Using http://luarocks.luaforge.net/rocks/lbc-20100404-1.src.rock...
switching to 'build' mode
Archive:  
/tmp/luarocks_luarocks-rock-lbc-20100404-1-5036/lbc-20100404-1.src.rock
  inflating: lbc-20100404-1.rockspec
 extracting: lbc.tar.gz
Warning: variable CFLAGS was not passed in build_variables
gcc -I/usr/include/lua5.1 -I. -ansi -pedantic -Wall -O2    -c -o lbc.o lbc.c
gcc -I/usr/include/lua5.1 -I. -ansi -pedantic -Wall -O2    -c -o
number.o number.c
number.c: In function ‘_bc_rec_mul’:
number.c:746:14: warning: variable ‘v0len’ set but not used
[-Wunused-but-set-variable]
number.c:746:7: warning: variable ‘u0len’ set but not used
[-Wunused-but-set-variable]
gcc -shared -o bc.so lbc.o number.o
/usr/bin/ld: lbc.o: relocation R_X86_64_32 against `.rodata.str1.1'
can not be used when making a shared object; recompile with -fPIC
lbc.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [bc.so] Error 1

If I understand this properly, lbc doesn't get the -fPIC flag from
luarocks. Is there a way to fix this?

Thanks,
Bogdan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to