26.02.2010, 20:33
search function doesn't find this, so i try getting help here:
Trying to compile the R3-2 source code on ubuntu 8.04.4 x86_64: (cuz the precompiled x86 doesn't seem 2 b working on 64bit linux)
adding the flag -fPIC to the COMPILE_FLAGS in the makefile also doesn't help, even produces more errors 
any idea?
-----------------------------------------
edit:
ok, i tried a differerent way.
- used the other makefile of the source package.
- made a space between "-L" and "/usr" ;P
- removed flag "-lmysqlclient_r"
- compile ran without errors
"yay \o/" i thought at first, but....
Trying to compile the R3-2 source code on ubuntu 8.04.4 x86_64: (cuz the precompiled x86 doesn't seem 2 b working on 64bit linux)
Код:
root@lvps1:/var/games/samp/default/mysql_plugin-R3-src_final_2/MySQL_VS# make gcc -c -O3 -w -DLINUX -Wall -I../SDK/amx/ ../SDK/amx/*.c g++ -c -O3 -w -DLINUX -Wall -I../SDK/amx/ ../SDK/*.cpp g++ -c -O3 -w -DLINUX -Wall -I../SDK/amx/ main.cpp g++ -c -O3 -w -DLINUX -Wall -I../SDK/amx/ source/*.cpp g++ -O2 -fshort-wchar -shared -o "../mysql.so" *.o ./mysql_lib/libmysqlclient.a -lpthread /usr/bin/ld: CAmxString.o: relocation R_X86_64_32 against `__gxx_personality_v0' can not be used when making a shared object; recompile with -fPIC CAmxString.o: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [all] Error 1

any idea?
-----------------------------------------
edit:
ok, i tried a differerent way.
- used the other makefile of the source package.
- made a space between "-L" and "/usr" ;P
- removed flag "-lmysqlclient_r"
- compile ran without errors
"yay \o/" i thought at first, but....
Код:
[23:51:51] Server Plugins [23:51:51] -------------- [23:51:51] Loading plugin: mysql.so [23:51:51] Failed (plugins/mysql.so: wrong ELF class: ELFCLASS64) [23:51:51] Loaded 0 plugins.