Hello
I have a problem while compiling TFS 0.4 3777 tibia 860 in Ubuntu 12.4
i tried to remove the -werror flag and that no helping so please if you got any idea about fixing this problem tell me.
and this is my player.h file
http://pastebin.com/0DxXRVy5
I have a problem while compiling TFS 0.4 3777 tibia 860 in Ubuntu 12.4
i tried to remove the -werror flag and that no helping so please if you got any idea about fixing this problem tell me.
Code:
root@149-210-164-222:/var/TFS/source# ./build.sh
TheForgottenServer build script- seems to speed things up ALOT.
CCache: OK
CCache binaries located in /usr/lib/ccache
Building on 2 cores, using 3 processes
make all-am
make[1]: Entering directory `/var/TFS/source'
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT actions.o -MD -MP -MF .deps/actions.Tpo -c -o actions.o actions.cpp
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT beds.o -MD -MP -MF .deps/beds.Tpo -c -o beds.o beds.cpp
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT chat.o -MD -MP -MF .deps/chat.Tpo -c -o chat.o chat.cpp
In file included from party.h:20:0,
from chat.h:24,
from chat.cpp:18:
player.h: In member function قuint32_t Player::getCastIpByName(std::string)ق:
player.h:214:11: error: converting to non-pointer type قuint32_t {aka unsigned int}ق from NULL [-Werror=conversion-null]
cc1plus: all warnings being treated as errors
make[1]: *** [chat.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from actions.cpp:23:0:
player.h: In member function قuint32_t Player::getCastIpByName(std::string)ق:
player.h:214:11: error: converting to non-pointer type قuint32_t {aka unsigned int}ق from NULL [-Werror=conversion-null]
cc1plus: all warnings being treated as errors
make[1]: *** [actions.o] Error 1
In file included from house.h:27:0,
from beds.cpp:20:
player.h: In member function قuint32_t Player::getCastIpByName(std::string)ق:
player.h:214:11: error: converting to non-pointer type قuint32_t {aka unsigned int}ق from NULL [-Werror=conversion-null]
cc1plus: all warnings being treated as errors
make[1]: *** [beds.o] Error 1
make[1]: Leaving directory `/var/TFS/source'
make: *** [all] Error 2
root@149-210-164-222:/var/TFS/source#
and this is my player.h file
http://pastebin.com/0DxXRVy5