Hi,

$ uname -a
Linux localhost 3.0.0-24-generic #40-Ubuntu SMP Tue Jul 24 15:38:25
UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ luarocks --version
luarocks 2.0.8
LuaRocks main command-line interface

$ sudo luarocks install lua-imlib2
Installing http://luarocks.org/repositories/rocks/lua-imlib2-0.1-2.src.rock...
Using http://luarocks.org/repositories/rocks/lua-imlib2-0.1-2.src.rock...
switching to 'build' mode
Archive:  
/tmp/luarocks_luarocks-rock-lua-imlib2-0.1-2-72/lua-imlib2-0.1-2.src.rock
  inflating: lua-imlib2-0.1-2.rockspec
 extracting: lua-imlib2-0.1.tar.gz
Applying patch libflag.patch...
successfully patched Makefile
Warning: variable CFLAGS was not passed in build_variables
gcc -I/usr/include/lua5.1 -I/usr/include  -Wall -O2   -c -o limlib2.o limlib2.c
limlib2.c: In function ‘image_load’:
limlib2.c:878:9: warning: variable ‘im’ set but not used
[-Wunused-but-set-variable]
gcc -o limlib2.so -shared limlib2.o -L/usr/lib -lImlib2
/usr/bin/ld: limlib2.o: relocation R_X86_64_32 against
`.rodata.str1.1' can not be used when making a shared object;
recompile with -fPIC
limlib2.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [limlib2.so] Error 1

Error: Build error: Failed building.

Note that the same rock builds fine under x86.

Alexander.

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to