Mysql R7 problem on Ubuntu 12.04 LTS 64bits
#1

Hello everyone,

I have problem with different versions of mysql.so. Indeed, i use BlueG Mysql plugins and on Windows i dont have problem but on Linux Ubuntu i have big problem same as :

Код:
1# ./samp03svr

Started server on port: 7777, with maxplayers: 40 lanmode is OFF.



^C*** glibc detected *** ./samp03svr: free(): invalid pointer: 0xe0dc8608 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0xe0c97ee2]
/usr/lib/i386-linux-gnu/libmysqlclient_r.so.16(my_no_flags_free+0x21)[0xe09ae181]
/usr/lib/i386-linux-gnu/libmysqlclient_r.so.16(free_root+0x9b)[0xe09b1f4b]
/usr/lib/i386-linux-gnu/libmysqlclient_r.so.16(free_rows+0x31)[0xe09d8f71]
/usr/lib/i386-linux-gnu/libmysqlclient_r.so.16(mysql_free_result+0x47)[0xe09d9697]
plugins/mysql.so(_ZN13CMySQLHandler10FreeResultEv+0x36)[0xe0b6e716]
plugins/mysql.so(_ZN13CMySQLHandlerD1Ev+0x32)[0xe0b70bc2]
plugins/mysql.so(Unload+0x4b)[0xe0b7987b]
./samp03svr[0x80cf11b]
./samp03svr[0x80a8272]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xe0c3b4d3]
======= Memory map: ========
I try different versions of mysql.so but doesnt work and i try to compile but i am getting that :
Код:
mysql_rel# make
gcc -c -m32 -O3 -fPIC -w -DLINUX -Wall -I../SDK/amx/ ../SDK/amx/*.c
g++ -c -m32 -O3 -fPIC -w -DLINUX -Wall -I../SDK/amx/ ../SDK/*.cpp
g++ -c -m32 -O3 -fPIC -w -DLINUX -Wall -I../SDK/amx/ main.cpp
g++ -c -m32 -O3 -fPIC -w -DLINUX -Wall -I../SDK/amx/ misc.cpp
g++ -c -m32 -O3 -fPIC -w -DLINUX -Wall -I../SDK/amx/ source/*.cpp
g++ -O2 -fshort-wchar -shared -o "../mysql.so" *.o -L/usr/lib/mysql -lmysqlclient_r -lpthread
/usr/bin/ld: i386 architecture of input file `amxplugin.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `CAmxString.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `CMutex.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `CMySQLHandler.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `CScripting.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `getch.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `main.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `misc.o' is incompatible with i386:x86-64 output
CAmxString.o: In function `StrAmx::GetString(tagAMX*, int)':
CAmxString.cpp:(.text+0x149): undefined reference to `operator new[](unsigned int)'
CMutex.o: In function `Mutex::getInstance()':
CMutex.cpp:(.text+0xb0): undefined reference to `operator new(unsigned int)'
CMySQLHandler.o: In function `CMySQLHandler::FetchField(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
CMySQLHandler.cpp:(.text+0x49c): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
CMySQLHandler.o: In function `CMySQLHandler::FetchRow()':
CMySQLHandler.cpp:(.text+0x87b): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
CMySQLHandler.cpp:(.text+0x898): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
CMySQLHandler.cpp:(.text+0x9be): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, unsigned int)'
CMySQLHandler.o: In function `std::vector<char*, std::allocator<char*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >, char* const&)':
CMySQLHandler.cpp:(.text._ZNSt6vectorIPcSaIS0_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS0_S2_EERKS0_[std::vector<char*, std::allocator<char*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<char**, std::vector<char*, std::allocator<char*> > >, char* const&)]+0xbf): undefined reference to `operator new(unsigned int)'
CMySQLHandler.o: In function `std::_Deque_base<s_aFormat, std::allocator<s_aFormat> >::_M_initialize_map(unsigned int)':
CMySQLHandler.cpp:(.text._ZNSt11_Deque_baseI9s_aFormatSaIS0_EE17_M_initialize_mapEj[std::_Deque_base<s_aFormat, std::allocator<s_aFormat> >::_M_initialize_map(unsigned int)]+0x3f): undefined reference to `operator new(unsigned int)'
CMySQLHandler.cpp:(.text._ZNSt11_Deque_baseI9s_aFormatSaIS0_EE17_M_initialize_mapEj[std::_Deque_base<s_aFormat, std::allocator<s_aFormat> >::_M_initialize_map(unsigned int)]+0x68): undefined reference to `operator new(unsigned int)'
CMySQLHandler.o: In function `std::_Deque_base<CMySQLHandler::errorInfo, std::allocator<CMySQLHandler::errorInfo> >::_M_initialize_map(unsigned int)':
CMySQLHandler.cpp:(.text._ZNSt11_Deque_baseIN13CMySQLHandler9errorInfoESaIS1_EE17_M_initialize_mapEj[std::_Deque_base<CMySQLHandler::errorInfo, std::allocator<CMySQLHandler::errorInfo> >::_M_initialize_map(unsigned int)]+0x38): undefined reference to `operator new(unsigned int)'
CMySQLHandler.cpp:(.text._ZNSt11_Deque_baseIN13CMySQLHandler9errorInfoESaIS1_EE17_M_initialize_mapEj[std::_Deque_base<CMySQLHandler::errorInfo, std::allocator<CMySQLHandler::errorInfo> >::_M_initialize_map(unsigned int)]+0x60): undefined reference to `operator new(unsigned int)'
CScripting.o:CScripting.cpp:(.text+0x60): more undefined references to `operator new(unsigned int)' follow
CScripting.o: In function `Natives::Debug(char*, ...)':
CScripting.cpp:(.text+0x29f): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
CScripting.cpp:(.text+0x2c5): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
CScripting.cpp:(.text+0x2df): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
CScripting.cpp:(.text+0x2f6): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
CScripting.cpp:(.text+0x312): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
CScripting.cpp:(.text+0x339): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, unsigned int)'
CScripting.o: In function `Natives::n_mysql_fetch_field_row(tagAMX*, int*)':
CScripting.cpp:(.text+0x18b6): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, unsigned int)'
CScripting.o: In function `Natives::n_mysql_fetch_row_format(tagAMX*, int*)':
CScripting.cpp:(.text+0x1b50): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned int, unsigned int, unsigned int)'
CScripting.o: In function `Natives::n_mysql_connect(tagAMX*, int*)':
CScripting.cpp:(.text+0x2f94): undefined reference to `operator new(unsigned int)'
CScripting.cpp:(.text+0x3233): undefined reference to `operator new(unsigned int)'
CScripting.o: In function `Natives::n_mysql_query_callback(tagAMX*, int*)':
CScripting.cpp:(.text+0x379f): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned int)'
CScripting.cpp:(.text+0x3a1a): undefined reference to `operator new(unsigned int)'
CScripting.cpp:(.text+0x3b6c): undefined reference to `operator new(unsigned int)'
main.o: In function `AmxLoad':
main.cpp:(.text+0x1032): undefined reference to `operator new(unsigned int)'
main.o: In function `ProcessQueryThread(void*)':
main.cpp:(.text+0x1487): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned int)'
main.cpp:(.text+0x14d6): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned int)'
main.cpp:(.text+0x1514): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned int)'
main.cpp:(.text+0x18ea): undefined reference to `operator new(unsigned int)'
main.cpp:(.text+0x1b17): undefined reference to `operator new(unsigned int)'
main.cpp:(.text+0x1b87): undefined reference to `operator new(unsigned int)'
main.cpp:(.text+0x1c0d): undefined reference to `operator new(unsigned int)'
main.cpp:(.text+0x1ce7): undefined reference to `operator new(unsigned int)'
main.o:main.cpp:(.text+0x1dfc): more undefined references to `operator new(unsigned int)' follow
misc.o: In function `stringvprintf(char const*, char*)':
misc.cpp:(.text+0x1dd): undefined reference to `operator new[](unsigned int)'
collect2: ld returned 1 exit status
make: *** [all] Error 1
Will you help me solve this problem ?

thanks
Reply
#2

I fix my problem. I have been download R39 version on :
https://github.com/pBlueG/SA-MP-MySQL/releases

Thanks all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)