Код: Выделить всё
[root@blackBox /usr/local/ghost]# uname -rs
FreeBSD 7.0-RELEASE
[root@blackBox /usr/local/ghost]# pkg_info | grep gmp
libgmp-4.2.4 A free library for arbitrary precision arithmetic
[root@blackBox /usr/local/ghost]# pkg_info | grep gmake
gmake-3.81_3 GNU version of 'make' utility
[root@blackBox /usr/local/ghost]# pkg_info | grep pvpgn
pvpgn-1.8.2 Free Blizzard Battle.net emulation software
Сам бот: http://ghostplusplus.googlecode.com/fil ... _11.01.zip
Обсуждение установки бота под FreeBSD: http://forum.codelain.com/index.php?topic=852.0
Начинаю компилировать:
Код: Выделить всё
[root@gh_gate /home/ghopper/ghost/bncsutil/src/bncsutil]# gmake
g++ -Wall -O3 -I ../ -Wno-multichar -fPIC -shared -lgmp bsha1.o cdkeydecoder.o checkrevision.o decodekey.o file.o libinfo.o oldauth.o nls.o pe.o sha1.o stack.o -o libbncsutil.so
/usr/bin/ld: cannot find -lgmp
gmake: *** [libbncsutil.so] Ошибка 1
[root@gh_gate /home/ghopper/ghost/StormLib/stormlib]# gmake
g++ -o StormPortLinux.o -fPIC -D__SYS_ZLIB -c StormPortLinux.cpp
StormPortLinux.cpp: In function 'char* ErrString(int)':
StormPortLinux.cpp:46: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:48: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:50: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:52: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:54: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:56: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:58: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:60: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:62: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:64: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:66: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:68: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp:70: warning: deprecated conversion from string constant to 'char*'
StormPortLinux.cpp: In function 'void* CreateFile(const char*, DWORD, DWORD, void*, DWORD, DWORD, void*)':
StormPortLinux.cpp:79: error: 'O_LARGEFILE' was not declared in this scope
StormPortLinux.cpp: In function 'DWORD GetFileSize(void*, DWORD*)':
StormPortLinux.cpp:107: error: aggregate 'stat64 fileinfo' has incomplete type and cannot be defined
StormPortLinux.cpp:108: error: 'fstat64' was not declared in this scope
StormPortLinux.cpp: In function 'DWORD SetFilePointer(void*, LONG, LONG*, DWORD)':
StormPortLinux.cpp:121: error: 'off64_t' was not declared in this scope
StormPortLinux.cpp:121: error: expected `;' before 'nFileOffset'
StormPortLinux.cpp:124: error: 'nFileOffset' was not declared in this scope
StormPortLinux.cpp:124: error: expected primary-expression before ')' token
StormPortLinux.cpp:124: error: expected `)' before 'pOffSetHigh'
StormPortLinux.cpp:126: error: 'nFileOffset' was not declared in this scope
StormPortLinux.cpp:126: error: 'lseek64' was not declared in this scope
gmake: *** [StormPortLinux.o] Ошибка 1