Jump to content

MySQL plugin compilation error


Mellnik

Recommended Posts

Posted

The MySQL plugin gives me an error:

/usr/bin/ld: /home/mta/multitheftauto-modules-read-only/mta-mysql/luaimports/libluaimports.a(luaimports.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC 
/home/mta/multitheftauto-modules-read-only/mta-mysql/luaimports/libluaimports.a: could not read symbols: Bad value 
  

On Ubuntu 12

After running:

./configure

make

  • MTA Team
Posted

Maybe this:

autoreconf -ifv 
./configure 
make 

Type any errors it gives in to google

  • MTA Team
Posted

Could be that your compiling a 64 bit module. It would need to be 32 bit for MTA

Posted

Oh, I tried it on another machine with 32bit, no error appeared, but it looks like no .so has been output.

I also searched for it: find -name 'mta_mysql.so'

Posted

I used "find -name '*.so'" to search for it

But only this one was found:

mellnik@ubuntu:~/multitheftauto-modules-read-only/mta-mysql$ find -name '*.so' 
./src/.libs/libmta_mysql.so 
  

While compiling I noticed this:

ranlib .libs/libmta_mysql.a 
creating libmta_mysql.la 
(cd .libs && rm -f libmta_mysql.la && ln -s ../libmta_mysql.la libmta_mysql.la) 
  

  • MTA Team
Posted

I guess libmta_mysql.so is what you need.

Also, can I ask why you are compiling rather than using a binary?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...