[SerialICE] bitlib build error

Joseph Smith joe at settoplinux.org
Fri Jan 15 14:54:01 CET 2010




On Fri, 15 Jan 2010 11:48:42 +0100, Stefan Reinauer <stepan at coresystems.de>
wrote:
> On 1/15/10 7:25 AM, Joseph Smith wrote:
>> Keep getting this error when trying to build bitlib on my x86_64
>> laptop, any ideas?
>>
>> -----------------------
>> /usr/bin/ld: /usr/local/lib/liblua.a(lapi.o): relocation R_X86_64_32
>> against `luaO_nilobject_' can not be used when making a shared object;
>> recompile with -fPIC
>> /usr/local/lib/liblua.a: could not read symbols: Bad value
>> collect2: ld returned 1 exit status
>> make[1]: *** [bit.la] Error 1
>> make[1]: Leaving directory `/home/joe/lua-5.1.4/bitlib-25'
>> make: *** [all] Error 2
>> -----------------------
>>
>> I even tried configuring it with:
>>
>> ./configure --with-lua=/usr/local CXXFLAGS=-fPIC CFLAGS=-fPIC
>> CPPFLAGS=-fPIC
>>
>> But still same error....
> 
> You need to add -fPIC to CFLAGS in lua-5.1.4/src/Makefile

That's what I suspected, I will try as soon as I get a chance, thanks
Stefan.

-- 
Thanks,
Joseph Smith
Set-Top-Linux
www.settoplinux.org




More information about the SerialICE mailing list