Bilal
Bilal

Reputation: 165

getting error "recompile with -fPIC"

After ./configure asterisk in centos I type make command but getting the following error

/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

Upvotes: 0

Views: 7673

Answers (2)

Bilal
Bilal

Reputation: 165

I resolved the problem. I was compiling on 64 bit platform, but /usr/local/lib/liblua.a is 32 bit. so I just disable it make menuselect.

Upvotes: 2

drivefast
drivefast

Reputation: 64

your problem seems to be the lua library. if you're on centos, try

yum install lua lua-devel

and then rerun your ./configure on asterisk.

Upvotes: 0

Related Questions