Jump to content

How To compile Metin2 Server Source on FreeBSD ?


Denis

Recommended Posts

  • Premium
linking ../game_r1_64....
linking ../test
/usr/bin/ld: cannot find -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
gmake: *** [../test] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [../game_r1_64] Error 1

From that I understand that mysqlclient is missing, but how do I obtain it? I am sure that I've copied everything I need. I have mysql installed on my VDS. Thank you.

 

SOLVED: cd /usr/local/lib && ln -s /usr/local/lib/mysql/libmysqlclient.a ... or something like that xD

Link to comment
Share on other sites

linking ../game_r1_64....
linking ../test
/usr/bin/ld: cannot find -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
gmake: *** [../test] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [../game_r1_64] Error 1

From that I understand that mysqlclient is missing, but how do I obtain it? I am sure that I've copied everything I need. I have mysql installed on my VDS. Thank you.

 

SOLVED: cd /usr/local/lib && ln -s /usr/local/lib/mysql/libmysqlclient.a ... or something like that xD

 

 

You have to take, in Novaline Server folder. After the / Server / Game you put the source

Link to comment
Share on other sites

  • Premium

@Reboot: Already solved. Read what you've been quoting.

 

I am trying to compile my source on a 64-bit system, but some libraries are for 32-bit, like "libanticpxsvr.a". When I try to compile my source I get this error:

/usr/bin/ld: skipping incompatible /usr/lib/libanticpxsvr.a when searching for -lanticpxsvr
/usr/bin/ld: cannot find -lanticpxsvr

Now... How do I obtain a 64bit library or how I can make (if it's possible) this to run for me? Thanks.
 

Link to comment
Share on other sites

I have a problem.

In file included from ../../libserverkey/CheckServerKey.h:3,
                 from check_server.h:6,
                 from main.cpp:93:
../../libserverkey/SIM.h: In member function 'bool SIM::checkmac(const char*)':
../../libserverkey/SIM.h:287: warning: format '%u' expects type 'unsigned int',                                                                                         but argument 3 has type 'size_t'
gmake: *** [OBJDIR/main.o] Error 1
gmake: *** Waiting for unfinished jobs....

Link to comment
Share on other sites

hello everyone, I can not find these libraries , I followed the guide but do not know where I was unpacked these libraries

 

 

From libdevil/ copy all .a files into /usr/lib
    From libgame/From lib copy the From libgame.a file into /usr/lib
    From libhackshield/From lib copy the From libanticpxsvr.a file into /usr/lib
    From liblua/From lib copy the .a files into /usr/lib
    From libpoly/ copy the .o files into /usr/lib
    From libserverkey/ copy the .o files into /usr/lib
    From libthecore/From lib copy the From libthecore.a files into /usr/lib

 

in short, where I find these libraries ?  ---> libgame ,libhackshield,liblua,libpoly,libserverkey,libthecore

 

 

Best Regards Davide :)

Link to comment
Share on other sites

  • Former Staff

hello everyone, I can not find these libraries , I followed the guide but do not know where I was unpacked these libraries

 

 

From libdevil/ copy all .a files into /usr/lib

    From libgame/From lib copy the From libgame.a file into /usr/lib

    From libhackshield/From lib copy the From libanticpxsvr.a file into /usr/lib

    From liblua/From lib copy the .a files into /usr/lib

    From libpoly/ copy the .o files into /usr/lib

    From libserverkey/ copy the .o files into /usr/lib

    From libthecore/From lib copy the From libthecore.a files into /usr/lib

 

in short, where I find these libraries ?  ---> libgame ,libhackshield,liblua,libpoly,libserverkey,libthecore

 

 

Best Regards Davide :)

you can find them in novaline/server/src  :)

 

Best regards

       FlyGun ^^

  • Love 1
Link to comment
Share on other sites

  • Bot

Hi, can anybody help me? I have this problem.

chyu# gmake
gmake: *** No targets specified and no makefile found.  Stop.
chyu# cd /usr/src/novaline/Server/
chyu# gmake
Makefile:47: warning: overriding recipe for target `libserverkey'
Makefile:13: warning: ignoring old recipe for target `libserverkey'
gmake -C libthecore/src dep
gmake[1]: Entering directory `/usr/src/novaline/Server/libthecore/src'
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -MM *.c > Depend
gmake[1]: Leaving directory `/usr/src/novaline/Server/libthecore/src'
gmake -C libthecore/src clean
gmake[1]: Entering directory `/usr/src/novaline/Server/libthecore/src'
rm -f *.o
rm -f ../lib/libthecore.a
gmake[1]: Leaving directory `/usr/src/novaline/Server/libthecore/src'
gmake -C libthecore/src
gmake[1]: Entering directory `/usr/src/novaline/Server/libthecore/src'
gmake ../lib/libthecore.a
gmake[2]: Entering directory `/usr/src/novaline/Server/libthecore/src'
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c socket.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c fdwatch.c
fdwatch.c: In function 'void fdwatch_clear_event(fdwatch*, socket_t, unsigned in                             t)':
fdwatch.c:163: warning: comparison between signed and unsigned integer expressio                             ns
fdwatch.c:165: warning: comparison between signed and unsigned integer expressio                             ns
fdwatch.c: In function 'int fdwatch_check_event(fdwatch*, socket_t, unsigned int                             )':
fdwatch.c:173: warning: comparison between signed and unsigned integer expressio                             ns
fdwatch.c:175: warning: comparison between signed and unsigned integer expressio                             ns
fdwatch.c: In function 'int fdwatch_get_ident(fdwatch*, unsigned int)':
fdwatch.c:207: warning: comparison between signed and unsigned integer expressio                             ns
fdwatch.c: In function 'void* fdwatch_get_client_data(fdwatch*, unsigned int)':
fdwatch.c:225: warning: comparison between signed and unsigned integer expressio                             ns
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c buffer.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c signal.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c log.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c utils.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c kstbl.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c hangul.c
hangul.c: In function 'const char* first_han(const BYTE*)':
hangul.c:47: warning: deprecated conversion from string constant to 'char*'
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c heart.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c main.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c tea.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c des.c
DES_table.h:164: warning: 'KeyPerm' defined but not used
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c gost.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c memcpy.c
if [ ! -d ../lib ]; then mkdir ../lib; fi
ar cru ../lib/libthecore.a socket.o fdwatch.o buffer.o signal.o log.o utils.o ks                             tbl.o hangul.o heart.o main.o tea.o des.o gost.o memcpy.o
ranlib ../lib/libthecore.a
chmod 700 ../lib/libthecore.a
gmake[2]: Leaving directory `/usr/src/novaline/Server/libthecore/src'
gmake[1]: Leaving directory `/usr/src/novaline/Server/libthecore/src'
gmake -C libgame/src dep
gmake[1]: Entering directory `/usr/src/novaline/Server/libgame/src'
touch Depend
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -I../include -MM *.cc > Depend
gmake[1]: Leaving directory `/usr/src/novaline/Server/libgame/src'
gmake -C libgame/src clean
gmake[1]: Entering directory `/usr/src/novaline/Server/libgame/src'
rm -f *.o
rm -f ../lib/libgame.a
gmake[1]: Leaving directory `/usr/src/novaline/Server/libgame/src'
gmake -C libgame/src
gmake[1]: Entering directory `/usr/src/novaline/Server/libgame/src'
gmake ../lib/libgame.a
gmake[2]: Entering directory `/usr/src/novaline/Server/libgame/src'
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -I../include -c grid.cc
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -I../include -c attribute.cc
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -I../include -c targa.cc
if [ ! -d ../lib ]; then mkdir ../lib; fi
ar cru ../lib/libgame.a grid.o attribute.o targa.o
ranlib ../lib/libgame.a
chmod 700 ../lib/libgame.a
gmake[2]: Leaving directory `/usr/src/novaline/Server/libgame/src'
gmake[1]: Leaving directory `/usr/src/novaline/Server/libgame/src'
gmake -C liblua clean
gmake[1]: Entering directory `/usr/src/novaline/Server/liblua'
cd include; gmake clean
gmake[2]: Entering directory `/usr/src/novaline/Server/liblua/include'
gmake[2]: Nothing to be done for `clean'.
gmake[2]: Leaving directory `/usr/src/novaline/Server/liblua/include'
cd src; gmake clean
gmake[2]: Entering directory `/usr/src/novaline/Server/liblua/src'
rm -f lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.                             o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.                             o lzio.o ../lib/liblua.a
gmake[2]: Leaving directory `/usr/src/novaline/Server/liblua/src'
cd src/lib; gmake clean
gmake[2]: Entering directory `/usr/src/novaline/Server/liblua/src/lib'
rm -f lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o load                             lib.o ../../lib/liblualib.a
gmake[2]: Leaving directory `/usr/src/novaline/Server/liblua/src/lib'
gmake[1]: Leaving directory `/usr/src/novaline/Server/liblua'
gmake -C liblua
gmake[1]: Entering directory `/usr/src/novaline/Server/liblua'
cd include; gmake all
gmake[2]: Entering directory `/usr/src/novaline/Server/liblua/include'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/src/novaline/Server/liblua/include'
cd src; gmake all
gmake[2]: Entering directory `/usr/src/novaline/Server/liblua/src'
gcc -O2 -g -Wall -I../include      -c -o lapi.o lapi.c
gcc -O2 -g -Wall -I../include      -c -o lcode.o lcode.c
gcc -O2 -g -Wall -I../include      -c -o ldebug.o ldebug.c
gcc -O2 -g -Wall -I../include      -c -o ldo.o ldo.c
gcc -O2 -g -Wall -I../include      -c -o ldump.o ldump.c
gcc -O2 -g -Wall -I../include      -c -o lfunc.o lfunc.c
gcc -O2 -g -Wall -I../include      -c -o lgc.o lgc.c
gcc -O2 -g -Wall -I../include      -c -o llex.o llex.c
llex.c: In function 'read_string':
llex.c:285: warning: case label value is less than minimum value for type
gcc -O2 -g -Wall -I../include      -c -o lmem.o lmem.c
gcc -O2 -g -Wall -I../include      -c -o lobject.o lobject.c
gcc -O2 -g -Wall -I../include      -c -o lopcodes.o lopcodes.c
gcc -O2 -g -Wall -I../include      -c -o lparser.o lparser.c
gcc -O2 -g -Wall -I../include      -c -o lstate.o lstate.c
gcc -O2 -g -Wall -I../include      -c -o lstring.o lstring.c
gcc -O2 -g -Wall -I../include      -c -o ltable.o ltable.c
gcc -O2 -g -Wall -I../include      -c -o ltests.o ltests.c
gcc -O2 -g -Wall -I../include      -c -o ltm.o ltm.c
gcc -O2 -g -Wall -I../include      -c -o lundump.o lundump.c
gcc -O2 -g -Wall -I../include      -c -o lvm.o lvm.c
gcc -O2 -g -Wall -I../include      -c -o lzio.o lzio.c
if [ ! -d ../lib ]; then mkdir ; fi
ar rcu ../lib/liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.                             o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm                             .o lundump.o lvm.o lzio.o
ranlib ../lib/liblua.a
gmake[2]: Leaving directory `/usr/src/novaline/Server/liblua/src'
cd src/lib; gmake all
gmake[2]: Entering directory `/usr/src/novaline/Server/liblua/src/lib'
gcc -O2 -g -Wall -I../../include         -c -o lauxlib.o lauxlib.c
gcc -O2 -g -Wall -I../../include         -c -o lbaselib.o lbaselib.c
gcc -O2 -g -Wall -I../../include         -c -o ldblib.o ldblib.c
gcc -O2 -g -Wall -I../../include         -c -o liolib.o liolib.c
liolib.c: In function 'g_iofile':
liolib.c:251: warning: value computed is not used
liolib.c: In function 'f_lines':
liolib.c:286: warning: value computed is not used
gcc -O2 -g -Wall -I../../include         -c -o lmathlib.o lmathlib.c
gcc -O2 -g -Wall -I../../include         -c -o ltablib.o ltablib.c
gcc -O2 -g -Wall -I../../include         -c -o lstrlib.o lstrlib.c
gcc -O2 -g -Wall -I../../include         -c -o loadlib.o loadlib.c
ar rcu ../../lib/liblualib.a lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o l                             tablib.o lstrlib.o loadlib.o
ranlib ../../lib/liblualib.a
gmake[2]: Leaving directory `/usr/src/novaline/Server/liblua/src/lib'
gmake[1]: Leaving directory `/usr/src/novaline/Server/liblua'
gmake -C game/src dep
gmake[1]: Entering directory `/usr/src/novaline/Server/game/src'
Makefile:125: *** missing separator.  Stop.
gmake[1]: Leaving directory `/usr/src/novaline/Server/game/src'
gmake: *** [game] Error 2

english_banner.gif

Link to comment
Share on other sites

hello all this is my fault , can someone help me please .

 

 

gmake[1]: Leaving directory `/usr/src/novaline/Server/game/src'
gmake -C game/src clean
gmake[1]: Entering directory `/usr/src/novaline/Server/game/src'
gmake[1]: Leaving directory `/usr/src/novaline/Server/game/src'
gmake -C game/src limit_time
gmake[1]: Entering directory `/usr/src/novaline/Server/game/src'
update limit time
gmake[1]: python: Command not found
gmake[1]: *** [limit_time] Error 127
gmake[1]: Leaving directory `/usr/src/novaline/Server/game/src'
gmake: *** [game] Error 2
root@devil:/usr/src/novaline/Server # :ph34r:
 

Link to comment
Share on other sites

 

 

From libdevil/ copy all .a files into /usr/lib

    From libgame/From lib copy the From libgame.a file into /usr/lib

    From libhackshield/From lib copy the From libanticpxsvr.a file into /usr/lib

    From liblua/From lib copy the .a files into /usr/lib

    From libpoly/ copy the .o files into /usr/lib

    From libserverkey/ copy the .o files into /usr/lib

    From libthecore/From lib copy the From libthecore.a files into /usr/lib

 

Everything here is stupid. You do not have to copy the / usr / lib.
 
There is nothing to explain how dear Denis, only to be installed programs are good.
 
I'll do the tutorials, good: D
Link to comment
Share on other sites

  • Premium

Hello Guys i have a Problem

 

I cant compile (i used for test novaline) and doing this Tutorial Step by Step but it gaves me this Error when i try to compile

 

Makefile:47: warning: overriding recipe for target 'libserverkey'
Makefile:13: warning: ignoring old recipe for target 'libserverkey'
 

Anyone can help me?

Link to comment
Share on other sites

can help me???

compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
compile char_affect.cpp
compile char_battle.cpp
compile char_change_empire.cpp
compile char_horse.cpp
compile char_item.cpp
compile char_manager.cpp
compile char_quickslot.cpp
compile char_resist.cpp
compile char_skill.cpp
compile char_state.cpp
compile PetSystem.cpp
compile cmd.cpp
compile cmd_emotion.cpp
compile cmd_general.cpp
compile cmd_gm.cpp
In file included from char_item.cpp:47:
belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:640: warning: comparison is always false due to limited range of data type
compile cmd_oxevent.cpp
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2388: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD'
char_item.cpp:2388: warning: unknown conversion type character '}' in format
char_item.cpp:2388: warning: too many arguments for format
char_item.cpp:2392: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD'
char_item.cpp:2392: warning: unknown conversion type character '}' in format
char_item.cpp:2392: warning: too many arguments for format
char_item.cpp:2404: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'DWORD'
char_item.cpp:2404: warning: unknown conversion type character '}' in format
char_item.cpp:2404: warning: too many arguments for format
char_item.cpp:2408: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'DWORD'
char_item.cpp:2408: warning: unknown conversion type character '}' in format
char_item.cpp:2408: warning: too many arguments for format
char_item.cpp:2435: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'DWORD'
char_item.cpp:2435: warning: unknown conversion type character '}' in format
char_item.cpp:2435: warning: too many arguments for format
char_item.cpp:2443: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'DWORD'
char_item.cpp:2443: warning: unknown conversion type character '}' in format
char_item.cpp:2443: warning: too many arguments for format
char_item.cpp:5094: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5166: warning: unused variable 'wDestCell'
char_item.cpp:5167: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6167: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
char_item.cpp:6231: warning: comparison between signed and unsigned integer expressions
compile config.cpp
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
char_item.cpp:7432: warning: unused variable 'itemType'
char_item.cpp:7433: warning: unused variable 'itemSubType'
compile constants.cpp
compile crc32.cpp
compile cube.cpp
compile db.cpp
compile desc.cpp
constants.cpp:292: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:293: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:294: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:295: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:296: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:297: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:298: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:299: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:300: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:301: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:302: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:303: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:304: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:305: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:306: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:307: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:308: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:309: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:310: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:311: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:312: warning: this decimal constant is unsigned only in ISO C90
compile desc_client.cpp
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
PetSystem.cpp:552: warning: unused variable 'petVID'
compile desc_manager.cpp
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
compile desc_p2p.cpp
compile dev_log.cpp
compile dungeon.cpp
compile empire_text_convert.cpp
cube.cpp: In function 'bool Cube_make(CHARACTER*)':
cube.cpp:544: warning: comparison between signed and unsigned integer expressions
cube.cpp: In function 'void Cube_MakeCubeInformationText()':
cube.cpp:716: warning: unused variable 'npcVNUM'
cube.cpp: In function 'bool Cube_InformationInitialize()':
cube.cpp:783: warning: comparison between signed and unsigned integer expressions
compile entity.cpp
compile entity_view.cpp
desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD, bool)':
desc_client.cpp:299: warning: comparison between signed and unsigned integer expressions
In file included from config.cpp:22:
check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
check_server.h:24: warning: comparison between signed and unsigned integer expressions
config.cpp: In function 'void config_init(const std::string&)':
config.cpp:505: warning: unused variable 'line'
compile event.cpp
compile event_queue.cpp
compile exchange.cpp
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6278: warning: 'pBuff' may be used uninitialized in this function
compile file_loader.cpp
compile fishing.cpp
compile gm.cpp
compile guild.cpp
compile guild_manager.cpp
compile guild_war.cpp
cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4464: warning: 'cell' may be used uninitialized in this function
compile horse_rider.cpp
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3980: warning: 'n' may be used uninitialized in this function
compile horsename_manager.cpp
compile input.cpp
cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:855: warning: 'x' may be used uninitialized in this function
cmd_gm.cpp:855: warning: 'y' may be used uninitialized in this function
compile input_auth.cpp
compile input_db.cpp
compile input_login.cpp
compile input_main.cpp
compile input_p2p.cpp
compile input_teen.cpp
compile input_udp.cpp
compile ip_ban.cpp
input_auth.cpp: In member function 'int CInputAuth::auth_OpenID(const char*, const char*, char*)':
input_auth.cpp:467: warning: unused variable 'last'
compile item.cpp
compile item_addon.cpp
compile item_attribute.cpp
compile item_manager.cpp
compile item_manager_idrange.cpp
compile locale.cpp
In file included from item.cpp:22:
belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
item.h: In constructor 'CItem::CItem(DWORD)':
item.h:286: warning: 'CItem::m_pkRealTimeExpireEvent' will be initialized after
item.h:283: warning:   'LPEVENT CItem::m_pkExpireEvent'
item.cpp:25: warning:   when initialized here
item.cpp: In function 'const bool CanPutIntoRing(CItem*, CItem*)':
item.cpp:1730: warning: unused variable 'vnum'
item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
item.cpp:2019: warning: comparison between signed and unsigned integer expressions
item.cpp: In member function 'int CItem::GetDuration()':
item.cpp:2074: warning: array subscript has type 'char'
compile locale_service.cpp
input_main.cpp: In member function 'void CInputMain::Move(CHARACTER*, const char*)':
input_main.cpp:1499: warning: unused variable 'fDist'
compile log.cpp
compile login_data.cpp
compile lzo_manager.cpp
compile marriage.cpp
item_manager.cpp: In member function 'TItemTable* ITEM_MANAGER::GetTable(DWORD)':
item_manager.cpp:604: warning: comparison between signed and unsigned integer expressions
compile matrix_card.cpp
compile messenger_manager.cpp
compile mining.cpp
compile mob_manager.cpp
compile monarch.cpp
compile motion.cpp
compile over9refine.cpp
compile p2p.cpp
compile packet_info.cpp
compile party.cpp
compile passpod.cpp
compile pcbang.cpp
compile polymorph.cpp
compile priv_manager.cpp
compile pvp.cpp
compile questevent.cpp
compile questlua.cpp
compile questlua_affect.cpp
compile questlua_arena.cpp
compile questlua_ba.cpp
compile questlua_building.cpp
compile questlua_danceevent.cpp
compile questlua_dungeon.cpp
compile questlua_forked.cpp
compile questlua_game.cpp
compile questlua_global.cpp
compile questlua_guild.cpp
compile questlua_horse.cpp
compile questlua_pet.cpp
compile questlua_item.cpp
compile questlua_marriage.cpp
questlua.cpp: In member function 'bool quest::FPartyCheckFlagLt::operator()(CHARACTER*)':
questlua.cpp:78: warning: 'returnBool' may be used uninitialized in this function
compile questlua_mgmt.cpp
compile questlua_monarch.cpp
compile questlua_npc.cpp
compile questlua_oxevent.cpp
compile questlua_party.cpp
compile questlua_pc.cpp
compile questlua_quest.cpp
compile questlua_target.cpp
compile questmanager.cpp
questlua_npc.cpp: In function 'int quest::npc_get_vid_attack_mul(lua_State*)':
questlua_npc.cpp:293: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_set_vid_attack_mul(lua_State*)':
questlua_npc.cpp:309: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_get_vid_damage_mul(lua_State*)':
questlua_npc.cpp:324: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_set_vid_damage_mul(lua_State*)':
questlua_npc.cpp:340: warning: unused variable 'q'
compile questnpc.cpp
compile questpc.cpp
compile refine.cpp
compile regen.cpp
compile safebox.cpp
compile sectree.cpp
compile sectree_manager.cpp
questnpc.cpp: In member function 'bool quest::NPC::HandleEvent(quest::PC&, int)':
questnpc.cpp:500: warning: unused variable 'pPC'
compile sequence.cpp
compile shop.cpp
compile skill.cpp
compile start_position.cpp
compile target.cpp
compile text_file_loader.cpp
compile trigger.cpp
compile utils.cpp
compile vector.cpp
compile war_map.cpp
shop.cpp: In member function 'virtual bool CShop::IsSellingItem(DWORD)':
shop.cpp:576: warning: comparison between signed and unsigned integer expressions
compile wedding.cpp
compile xmas_event.cpp
compile panama.cpp
version.cpp: In function 'void WriteVersion()':
version.cpp:10: warning: format '%s' expects type 'char*', but argument 3 has type 'int'
compile version.cpp
compile threeway_war.cpp
compile map_location.cpp
compile auth_brazil.cpp
compile BlueDragon.cpp
compile BlueDragon_Binder.cpp
compile DragonLair.cpp
compile questlua_dragonlair.cpp
compile HackShield.cpp
compile HackShield_Impl.cpp
compile char_hackshield.cpp
compile skill_power.cpp
compile affect.cpp
compile SpeedServer.cpp
compile questlua_speedserver.cpp
compile auction_manager.cpp
compile FileMonitor_FreeBSD.cpp
compile ClientPackageCryptInfo.cpp
compile cipher.cpp
compile buff_on_attributes.cpp
compile check_server.cpp
compile dragon_soul_table.cpp
In file included from check_server.cpp:1:
check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
check_server.h:24: warning: comparison between signed and unsigned integer expressions
ClientPackageCryptInfo.h: In constructor 'CClientPackageCryptInfo::CClientPackageCryptInfo()':
ClientPackageCryptInfo.h:50: warning: 'CClientPackageCryptInfo::m_pSerializedCryptKeyStream' will be initialized after
ClientPackageCryptInfo.h:48: warning:   'int CClientPackageCryptInfo::m_nCryptKeyPackageCnt'
ClientPackageCryptInfo.cpp:9: warning:   when initialized here
compile DragonSoul.cpp
compile group_text_parse_tree.cpp
../../../Extern/include/cryptopp/algparam.h: In constructor 'CryptoPP::ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]':
../../../Extern/include/cryptopp/filters.h:793:   instantiated from here
../../../Extern/include/cryptopp/algparam.h:26: warning: unused variable 'cryptopp_assert_26'
../../../Extern/include/cryptopp/algparam.h: In member function 'void CryptoPP::AlgorithmParametersTemplate<T>::MoveInto(void*) const [with T = CryptoPP::RandomNumberGenerator*]':
cipher.cpp:397:   instantiated from here
../../../Extern/include/cryptopp/algparam.h:322: warning: unused variable 'p'
compile char_dragonsoul.cpp
compile questlua_dragonsoul.cpp
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::ReadAdditionalApplys()':
dragon_soul_table.cpp:223: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckApplyNumSettings()':
dragon_soul_table.cpp:283: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckWeightTables()':
dragon_soul_table.cpp:311: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineGradeTables()':
dragon_soul_table.cpp:343: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp:372: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineStepTables()':
dragon_soul_table.cpp:397: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp:427: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineStrengthTables()':
dragon_soul_table.cpp:453: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckDragonHeartExtTables()':
dragon_soul_table.cpp:494: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp:513: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp:522: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckDragonSoulExtTables()':
dragon_soul_table.cpp:545: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = std::string]':
dragon_soul_table.cpp:129:   instantiated from here
group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = BYTE]':
dragon_soul_table.cpp:134:   instantiated from here
group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = int]':
dragon_soul_table.cpp:201:   instantiated from here
group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = float]':
dragon_soul_table.cpp:260:   instantiated from here
group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
buff_on_attributes.cpp: In member function 'void CBuffOnAttributes::ChangeBuffValue(BYTE)':
buff_on_attributes.cpp:113: warning: unused variable 'old_value'
buff_on_attributes.cpp:114: warning: unused variable 'new_value'
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = float]':
dragon_soul_table.cpp:828:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = int]':
group_text_parse_tree.h:159:   instantiated from 'bool CGroupNode::GetValue(const std::string&, const std::string&, T&) const [with T = int]'
group_text_parse_tree.h:203:   instantiated from 'bool CGroupNode::GetGroupValue(const std::string&, const std::string&, const std::string&, T&) const [with T = int]'
dragon_soul_table.cpp:612:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned int]':
group_text_parse_tree.h:159:   instantiated from 'bool CGroupNode::GetValue(const std::string&, const std::string&, T&) const [with T = unsigned int]'
group_text_parse_tree.h:203:   instantiated from 'bool CGroupNode::GetGroupValue(const std::string&, const std::string&, const std::string&, T&) const [with T = unsigned int]'
dragon_soul_table.cpp:884:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In constructor 'CGroupTextParseTreeLoader::CGroupTextParseTreeLoader()':
group_text_parse_tree.h:93: warning: 'CGroupTextParseTreeLoader::m_dwcurLineIndex' will be initialized after
group_text_parse_tree.h:91: warning:   'CGroupNode* CGroupTextParseTreeLoader::m_pRootGroupNode'
group_text_parse_tree.cpp:5: warning:   when initialized here
group_text_parse_tree.cpp: In member function 'bool CGroupTextParseTreeLoader::LoadGroup(CGroupNode*)':
group_text_parse_tree.cpp:99: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.cpp: In member function 'bool CGroupNode::GetRow(int, const CGroupNode::CGroupNodeRow**) const':
group_text_parse_tree.cpp:206: warning: comparison between signed and unsigned integer expressions
compile shop_manager.cpp
DragonSoul.cpp: In function 'int Gamble(std::vector<float, std::allocator<float> >&)':
DragonSoul.cpp:19: warning: comparison between signed and unsigned integer expressions
DragonSoul.cpp:25: warning: comparison between signed and unsigned integer expressions
compile shopEx.cpp
DragonSoul.cpp: In member function 'bool DSManager::RefreshItemAttributes(CItem*)':
DragonSoul.cpp:203: warning: comparison between signed and unsigned integer expressions
DragonSoul.cpp: In member function 'bool DSManager::PutAttributes(CItem*)':
DragonSoul.cpp:273: warning: comparison between signed and unsigned integer expressions
DragonSoul.cpp: In member function 'bool DSManager::ExtractDragonHeart(CHARACTER*, CItem*, CItem*)':
DragonSoul.cpp:350: warning: unused variable 'sum'
DragonSoul.cpp: In member function 'bool DSManager::PullOut(CHARACTER*, TItemPos, CItem*&, CItem*)':
DragonSoul.cpp:435: warning: unused variable 'dwVnum'
DragonSoul.cpp:469: warning: format '%d' expects type 'int', but argument 3 has type 'double'
DragonSoul.cpp:469: warning: format '%d' expects type 'int', but argument 4 has type 'double'
DragonSoul.cpp: In member function 'bool DSManager::DoRefineGrade(CHARACTER*, TItemPos (&)[15])':
DragonSoul.cpp:555: warning: unused variable 'prob_sum'
DragonSoul.cpp: In member function 'bool DSManager::DoRefineStep(CHARACTER*, TItemPos (&)[15])':
DragonSoul.cpp:763: warning: unused variable 'sum'
compile item_manager_read_tables.cpp
char_dragonsoul.cpp: In member function 'bool CHARACTER::DragonSoul_ActivateDeck(int)':
char_dragonsoul.cpp:91: warning: control reaches end of non-void function
compile minilzo.c
shopEx.cpp: In member function 'virtual int CShopEx::Buy(CHARACTER*, BYTE)':
shopEx.cpp:159: warning: comparison between signed and unsigned integer expressions
shop_manager.cpp: In function 'bool ConvertToShopItemTable(CGroupNode*, TShopTableEx&)':
shop_manager.cpp:473: warning: comparison between signed and unsigned integer expressions
item_manager_read_tables.cpp: In member function 'bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char*)':
item_manager_read_tables.cpp:637: warning: unused variable 'pkGroup'
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned int]':
group_text_parse_tree.h:175:   instantiated from 'bool CGroupNode::GetValue(const std::string&, int, T&) const [with T = DWORD]'
shop_manager.cpp:381:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]':
group_text_parse_tree.h:175:   instantiated from 'bool CGroupNode::GetValue(const std::string&, int, T&) const [with T = std::string]'
shop_manager.cpp:387:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned char]':
group_text_parse_tree.h:136:   instantiated from 'bool CGroupNode::GetValue(size_t, const std::string&, T&) const [with T = BYTE]'
shop_manager.cpp:442:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
item_manager_read_tables.cpp:627: warning: 'pkGroup' may be used uninitialized in this function
../../../Extern/include/cryptopp/misc.h: At global scope:
../../../Extern/include/cryptopp/misc.h:548: warning: 'std::string CryptoPP::StringNarrow(const wchar_t*, bool)' defined but not used
linking ../game_r40250_32....
linking ../test
OBJDIR/char.o: In function `CHARACTER::Disconnect(char const*)':
/usr/mainline_released/mainline_sg/Srcs/Server/game/src/char.cpp:1410: undefined reference to `CXTrapManager::DestroyClientSession(CHARACTER*)'
OBJDIR/char.o: In function `CHARACTER::Disconnect(char const*)':
/usr/mainline_released/mainline_sg/Srcs/Server/game/src/char.cpp:1410: undefined reference to `CXTrapManager::DestroyClientSession(CHARACTER*)'
OBJDIR/input_login.o: In function `CInputLogin::Analyze(DESC*, unsigned char, char const*)':
/usr/mainline_released/mainline_sg/Srcs/Server/game/src/input_login.cpp:1115: undefined reference to `CXTrapManager::Verify_CSStep3(CHARACTER*, unsigned char*)'
OBJDIR/input_main.o: In function `CInputMain::Analyze(DESC*, unsigned char, char const*)':
/usr/mainline_released/mainline_sg/Srcs/Server/game/src/input_main.cpp:3262: undefined reference to `CXTrapManager::Verify_CSStep3(CHARACTER*, unsigned char*)'
OBJDIR/input_login.o: In function `CInputLogin::Analyze(DESC*, unsigned char, char const*)':
/usr/mainline_released/mainline_sg/Srcs/Server/game/src/input_login.cpp:1115: undefined reference to `CXTrapManager::Verify_CSStep3(CHARACTER*, unsigned char*)'
OBJDIR/input_main.o: In function `CInputMain::Analyze(DESC*, unsigned char, char const*)':
/usr/mainline_released/mainline_sg/Srcs/Server/game/src/input_main.cpp:3262: undefined reference to `CXTrapManager::Verify_CSStep3(CHARACTER*, unsigned char*)'
gmake: *** [../game_r40250_32] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [../test] Error 1
root@:/usr/mainline_released/mainline_sg/Srcs/Server/game/src #

this is my makefile

PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)

GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
SVN_VERSION = 40250

CC = g++

INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = OBJDIR
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

# Standard Setting
LIBS = -pthread -lm -lmd
# Removed -fno-rtti 
CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_

ifeq ($(GCC_VERSION), 4)
CFLAGS += -mtune=i686 -fstack-protector-all
else
CFLAGS += -mcpu=i686
endif

# boost
INCDIR += -I../../../Extern/include/boost

# DevIL
INCDIR += -I../../libdevil
LIBDIR += -L../../libdevil
LIBS += -lIL -lpng -ltiff -lmng -llcms -ljpeg

# MySQL
ifeq ($(BSD_VERSION), 7)
INCDIR += -I../../libmysql/7.x-5.1.35
LIBDIR += -L../../libmysql/7.x-5.1.35
else
INCDIR += -I../../libmysql/5.x-5.1.35
LIBDIR += -L../../libmysql/5.x-5.1.35
endif

LIBS += -lmysqlclient -lz

# Miscellaneous external libraries
INCDIR += -I../../../Extern/include
LIBDIR += -L../../../Extern/lib
LIBS += -lcryptopp -lgtest

# HackShield
INCDIR += -I../../libhackshield/include
LIBDIR += -L../../libhackshield/lib
LIBS += -lanticpxsvr

# openssl
#INCDIR += -I/usr/include
#LIBS += -lssl
#LIBS += /usr/lib/libssl.a

# Project Library
INCDIR += -I../../liblua/include
INCDIR += -I/usr/local/include
INCDIR += -I../../libserverkey
LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib -L../../libserverkey
LIBDIR += -L/usr/local/lib
LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame -lserverkey
USE_STACKTRACE = 0
ifeq ($(USE_STACKTRACE), 1)
LIBS += /usr/local/lib/libexecinfo.a
endif

TARGET  = $(BINDIR)/game_r$(SVN_VERSION)_$(PLATFORM)

CFILE	= minilzo.c

CPPFILE = BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp
		  arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp
		  char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp
		  char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp
		  cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp
		  desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp
		  entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp
		  guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp
		  input_login.cpp input_main.cpp input_p2p.cpp input_teen.cpp input_udp.cpp ip_ban.cpp
		  item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp
		  locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp
		  messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp
		  party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp
		  questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp
		  questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp
		  questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp
		  questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp
		  questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp
		  refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp
		  skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp
		  wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp
		  BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp
		  HackShield.cpp HackShield_Impl.cpp char_hackshield.cpp skill_power.cpp affect.cpp
		  SpeedServer.cpp questlua_speedserver.cpp 
		  auction_manager.cpp FileMonitor_FreeBSD.cpp ClientPackageCryptInfo.cpp cipher.cpp
		  buff_on_attributes.cpp check_server.cpp dragon_soul_table.cpp DragonSoul.cpp
		  group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp
		  shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp


COBJS	= $(CFILE:%.c=$(OBJDIR)/%.o)
CPPOBJS	= $(CPPFILE:%.cpp=$(OBJDIR)/%.o)

MAINOBJ = $(OBJDIR)/main.o
MAINCPP = main.cpp

TESTOBJ = $(OBJDIR)/test.o
TESTCPP = test.cpp
TEST_TARGET = $(BINDIR)/test

default: $(TARGET) $(TEST_TARGET)

$(OBJDIR)/minilzo.o: minilzo.c
	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
	@echo compile $<

$(OBJDIR)/version.o: version.cpp
	@$(CC) $(CFLAGS) -D__SVN_VERSION__="$(SVN_VERSION)" -c $< -o $@
	@echo compile $<

$(OBJDIR)/%.o: %.cpp
	@echo compile $<
	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

limit_time:
	@echo update limit time
	@python update_limit_time.py

$(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ)
	@echo linking $(TARGET)....
	@$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TARGET)

$(TEST_TARGET): $(TESTCPP) $(CPPOBJS) $(COBJS) $(TESTOBJ)
	@echo linking $(TEST_TARGET)
	@$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(TESTOBJ) $(LIBS) -o ../test

clean:
	@rm -f $(COBJS) $(CPPOBJS)
	@rm -f $(BINDIR)/game_r* $(BINDIR)/conv

tag:
	ctags *.cpp *.h *.c

dep:
	makedepend -f Depend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(CPPFILE) $(CFILE) $(MAINCPP) $(TESTCPP) 2> /dev/null > Depend

sinclude Depend

and this is my version.cpp

#include <stdio.h>

void WriteVersion()
{
#ifndef __WIN32__
	FILE* fp = fopen("ver.txt", "w");

	if (fp)
	{
		fprintf(fp, "emulated game server revision: %sn", __SVN_VERSION__);
		//fprintf(fp, "%s@%s:%sn", __USER__, __HOSTNAME__, __PWD__);
		fclose(fp);
	}
#endif
}


Link to comment
Share on other sites

  • Premium

@revengertmt,

You deleted xTrap from your server I guess, but not all pieces of code from your source.

Delete or just comment these calls:

From char.cpp, in "CHARACTER::Disconnect" delete "CXTrapManager::DestroyClientSession"
From input_main.cpp in "CInputLogin::Analyze" delete "CXTrapManager::Verify_CSStep3"

Salutari din Romania, revengertmt.

Link to comment
Share on other sites

Hey :) habe das Tutorials ebenfalls genau befehlt und habe aber nun leider folgendes Problem:

x9mwQwh.png

 

 

Es ist der selbe fehler wie HIER. Dort hat er ihn ja anscheinend gelöst bekommen.
Aber leide ohne irgendwelche hinweiße zu posten..

 

Hier meine Makefile.

PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)

GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
SVN_VERSION = $(shell svnversion -n .)

CC = g++

INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = OBJDIR
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

# Standard Setting
LIBS = -pthread -lm -lmd
# Removed -fno-rtti
CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -D__SVN_VERSION__="$(SVN_VERSION)"

ifeq ($(GCC_VERSION), 4)
CFLAGS += -mtune=i686 -fstack-protector-all
else
CFLAGS += -mcpu=i686
endif

# boost
INCDIR += -I../../../Extern/include/boost

# DevIL
INCDIR += -I../../libdevil
LIBDIR += -L../../libdevil
LIBS += -lIL -lpng -ltiff -lmng -llcms -ljpeg

# MySQL
ifeq ($(BSD_VERSION), 7)
INCDIR += -I../../libmysql/7.x-5.1.35
LIBDIR += -L../../libmysql/7.x-5.1.35
else
INCDIR += -I../../libmysql/5.x-5.1.35
LIBDIR += -L../../libmysql/5.x-5.1.35
endif

LIBS += -lmysqlclient -lz

# Miscellaneous external libraries
INCDIR += -I../../../Extern/include
LIBDIR += -L../../../Extern/lib
LIBS += -lcryptopp -lgtest

# HackShield
INCDIR += -I../../libhackshield/include
LIBDIR += -L../../libhackshield/lib
LIBS += -lanticpxsvr

# XTrap
INCDIR += -I../../libxtrap/include

# openssl
#INCDIR += -I/usr/include
LIBS += -lssl

# Project Library
INCDIR += -I../../liblua/include
INCDIR += -I/usr/local/include
INCDIR += -I../../libserverkey
LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib -L../../libserverkey
LIBDIR += -L/usr/local/lib
LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame -lserverkey
USE_STACKTRACE = 0
ifeq ($(USE_STACKTRACE), 1)
LIBS += /usr/local/lib/libexecinfo.a
endif

TARGET  = $(BINDIR)/game_r$(P4_VERSION)_$(PLATFORM)

CFILE    = minilzo.c

CPPFILE = BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp
          arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp
          char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp
          char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp
          cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp
          desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp
          entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp
          guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp
          input_login.cpp input_main.cpp input_p2p.cpp input_teen.cpp input_udp.cpp ip_ban.cpp
          item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp
          locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp
          messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp
          party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp
          questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp
          questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp
          questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp
          questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp
          questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp
          refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp
          skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp
          wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp
          BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp
          HackShield.cpp HackShield_Impl.cpp char_hackshield.cpp skill_power.cpp affect.cpp
          SpeedServer.cpp questlua_speedserver.cpp XTrapManager.cpp
          auction_manager.cpp FileMonitor_FreeBSD.cpp ClientPackageCryptInfo.cpp cipher.cpp
          buff_on_attributes.cpp dragon_soul_table.cpp DragonSoul.cpp
          group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp
          shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp shutdown_manager.cpp


COBJS    = $(CFILE:%.c=$(OBJDIR)/%.o)
CPPOBJS    = $(CPPFILE:%.cpp=$(OBJDIR)/%.o)

MAINOBJ = $(OBJDIR)/main.o
MAINCPP = main.cpp

TESTOBJ = $(OBJDIR)/test.o
TESTCPP = test.cpp
TEST_TARGET = $(BINDIR)/test

default: $(TARGET) $(TEST_TARGET)

$(OBJDIR)/minilzo.o: minilzo.c
    @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    @echo compile $<

$(OBJDIR)/version.o: version.cpp
    @$(CC) $(CFLAGS) -D__USER__="$(USER)" -D__HOSTNAME__="$(HOSTNAME)" -D__PWD__="$(PWD)" -D__P4_VERSION__="$(P4_VERSION)" -c $< -o $@
    @echo compile $<

$(OBJDIR)/%.o: %.cpp
    @echo compile $<
    @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

limit_time:
    @echo update limit time
    @python update_limit_time.py

$(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ)
    @echo linking $(TARGET)....
    @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TARGET)

$(TEST_TARGET): $(TESTCPP) $(CPPOBJS) $(COBJS) $(TESTOBJ)
    @echo linking $(TEST_TARGET)
    @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(TESTOBJ) $(LIBS) -o ../test

clean:
    @rm -f $(COBJS) $(CPPOBJS)
    @rm -f $(BINDIR)/game_r* $(BINDIR)/conv

tag:
    ctags *.cpp *.h *.c

dep:
    makedepend -f Depend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(CPPFILE) $(CFILE) $(MAINCPP) $(TESTCPP) 2> /dev/null > Depend

sinclude Depend
 

 

Vielen Dank!

 

Benhero

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Hey :) habe das Tutorials ebenfalls genau befehlt und habe aber nun leider folgendes Problem:

x9mwQwh.png

 

 

Es ist der selbe fehler wie HIER. Dort hat er ihn ja anscheinend gelöst bekommen.

Aber leide ohne irgendwelche hinweiße zu posten..

 

Hier meine Makefile.

PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)

GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
SVN_VERSION = $(shell svnversion -n .)

CC = g++

INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = OBJDIR
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

# Standard Setting
LIBS = -pthread -lm -lmd
# Removed -fno-rtti
CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -D__SVN_VERSION__="$(SVN_VERSION)"

ifeq ($(GCC_VERSION), 4)
CFLAGS += -mtune=i686 -fstack-protector-all
else
CFLAGS += -mcpu=i686
endif

# boost
INCDIR += -I../../../Extern/include/boost

# DevIL
INCDIR += -I../../libdevil
LIBDIR += -L../../libdevil
LIBS += -lIL -lpng -ltiff -lmng -llcms -ljpeg

# MySQL
ifeq ($(BSD_VERSION), 7)
INCDIR += -I../../libmysql/7.x-5.1.35
LIBDIR += -L../../libmysql/7.x-5.1.35
else
INCDIR += -I../../libmysql/5.x-5.1.35
LIBDIR += -L../../libmysql/5.x-5.1.35
endif

LIBS += -lmysqlclient -lz

# Miscellaneous external libraries
INCDIR += -I../../../Extern/include
LIBDIR += -L../../../Extern/lib
LIBS += -lcryptopp -lgtest

# HackShield
INCDIR += -I../../libhackshield/include
LIBDIR += -L../../libhackshield/lib
LIBS += -lanticpxsvr

# XTrap
INCDIR += -I../../libxtrap/include

# openssl
#INCDIR += -I/usr/include
LIBS += -lssl

# Project Library
INCDIR += -I../../liblua/include
INCDIR += -I/usr/local/include
INCDIR += -I../../libserverkey
LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib -L../../libserverkey
LIBDIR += -L/usr/local/lib
LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame -lserverkey
USE_STACKTRACE = 0
ifeq ($(USE_STACKTRACE), 1)
LIBS += /usr/local/lib/libexecinfo.a
endif

TARGET  = $(BINDIR)/game_r$(P4_VERSION)_$(PLATFORM)

CFILE    = minilzo.c

CPPFILE = BattleArena.cpp FSM.cpp MarkConvert.cpp MarkImage.cpp MarkManager.cpp OXEvent.cpp TrafficProfiler.cpp ani.cpp
          arena.cpp banword.cpp battle.cpp blend_item.cpp block_country.cpp buffer_manager.cpp building.cpp castle.cpp
          char.cpp char_affect.cpp char_battle.cpp char_change_empire.cpp char_horse.cpp char_item.cpp char_manager.cpp
          char_quickslot.cpp char_resist.cpp char_skill.cpp char_state.cpp PetSystem.cpp cmd.cpp cmd_emotion.cpp cmd_general.cpp
          cmd_gm.cpp cmd_oxevent.cpp config.cpp constants.cpp crc32.cpp cube.cpp db.cpp desc.cpp
          desc_client.cpp desc_manager.cpp desc_p2p.cpp dev_log.cpp dungeon.cpp empire_text_convert.cpp entity.cpp
          entity_view.cpp event.cpp event_queue.cpp exchange.cpp file_loader.cpp fishing.cpp gm.cpp guild.cpp
          guild_manager.cpp guild_war.cpp horse_rider.cpp horsename_manager.cpp input.cpp input_auth.cpp input_db.cpp
          input_login.cpp input_main.cpp input_p2p.cpp input_teen.cpp input_udp.cpp ip_ban.cpp
          item.cpp item_addon.cpp item_attribute.cpp item_manager.cpp item_manager_idrange.cpp locale.cpp
          locale_service.cpp log.cpp login_data.cpp lzo_manager.cpp marriage.cpp matrix_card.cpp
          messenger_manager.cpp mining.cpp mob_manager.cpp monarch.cpp motion.cpp over9refine.cpp p2p.cpp packet_info.cpp
          party.cpp passpod.cpp pcbang.cpp polymorph.cpp priv_manager.cpp pvp.cpp
          questevent.cpp questlua.cpp questlua_affect.cpp questlua_arena.cpp questlua_ba.cpp questlua_building.cpp
          questlua_danceevent.cpp questlua_dungeon.cpp questlua_forked.cpp questlua_game.cpp questlua_global.cpp
          questlua_guild.cpp questlua_horse.cpp questlua_pet.cpp questlua_item.cpp questlua_marriage.cpp questlua_mgmt.cpp
          questlua_monarch.cpp questlua_npc.cpp questlua_oxevent.cpp questlua_party.cpp questlua_pc.cpp
          questlua_quest.cpp questlua_target.cpp questmanager.cpp questnpc.cpp questpc.cpp
          refine.cpp regen.cpp safebox.cpp sectree.cpp sectree_manager.cpp sequence.cpp shop.cpp
          skill.cpp start_position.cpp target.cpp text_file_loader.cpp trigger.cpp utils.cpp vector.cpp war_map.cpp
          wedding.cpp xmas_event.cpp version.cpp panama.cpp threeway_war.cpp map_location.cpp auth_brazil.cpp
          BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp
          HackShield.cpp HackShield_Impl.cpp char_hackshield.cpp skill_power.cpp affect.cpp
          SpeedServer.cpp questlua_speedserver.cpp XTrapManager.cpp
          auction_manager.cpp FileMonitor_FreeBSD.cpp ClientPackageCryptInfo.cpp cipher.cpp
          buff_on_attributes.cpp dragon_soul_table.cpp DragonSoul.cpp
          group_text_parse_tree.cpp char_dragonsoul.cpp questlua_dragonsoul.cpp
          shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp shutdown_manager.cpp


COBJS    = $(CFILE:%.c=$(OBJDIR)/%.o)
CPPOBJS    = $(CPPFILE:%.cpp=$(OBJDIR)/%.o)

MAINOBJ = $(OBJDIR)/main.o
MAINCPP = main.cpp

TESTOBJ = $(OBJDIR)/test.o
TESTCPP = test.cpp
TEST_TARGET = $(BINDIR)/test

default: $(TARGET) $(TEST_TARGET)

$(OBJDIR)/minilzo.o: minilzo.c
    @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    @echo compile $<

$(OBJDIR)/version.o: version.cpp
    @$(CC) $(CFLAGS) -D__USER__="$(USER)" -D__HOSTNAME__="$(HOSTNAME)" -D__PWD__="$(PWD)" -D__P4_VERSION__="$(P4_VERSION)" -c $< -o $@
    @echo compile $<

$(OBJDIR)/%.o: %.cpp
    @echo compile $<
    @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

limit_time:
    @echo update limit time
    @python update_limit_time.py

$(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ)
    @echo linking $(TARGET)....
    @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TARGET)

$(TEST_TARGET): $(TESTCPP) $(CPPOBJS) $(COBJS) $(TESTOBJ)
    @echo linking $(TEST_TARGET)
    @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(TESTOBJ) $(LIBS) -o ../test

clean:
    @rm -f $(COBJS) $(CPPOBJS)
    @rm -f $(BINDIR)/game_r* $(BINDIR)/conv

tag:
    ctags *.cpp *.h *.c

dep:
    makedepend -f Depend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(CPPFILE) $(CFILE) $(MAINCPP) $(TESTCPP) 2> /dev/null > Depend

sinclude Depend
 

Vielen Dank!

 

Benhero

 

You do not have gcc installed on you freebsd.

 

Install gcc with those commands:

pkg install gcc49
cd /usr/ports/lang/gcc49 && make install clean

After installing gcc, open your makefile and replace this:

CC = g++

With this:

CC = g++49
Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

Now it works.. But still have an Error..

Like THIS.

 

If often become this Error

 recipe for target 'OBJDIR/building.o' failed

FOR DIFERENT Files!

 

Here's the Code after i use "gmake clean & gmake -j20"

root@exosec:/usr/src/novaline/Server/game/src # gmake clean
gmake: Warning: File 'Makefile' has modification time 3261 s in the future
gmake: warning:  Clock skew detected.  Your build may be incomplete.
root@exosec:/usr/src/novaline/Server/game/src # gmake -j20
gmake: Warning: File 'Makefile' has modification time 3254 s in the future
compile MarkConvert.cpp
compile FSM.cpp
compile TrafficProfiler.cpp
compile MarkManager.cpp
compile BattleArena.cpp
compile OXEvent.cpp
compile MarkImage.cpp
compile arena.cpp
compile banword.cpp
compile blend_item.cpp
compile battle.cpp
In file included from FSM.cpp:4:0:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
compile block_country.cpp
compile building.cpp
compile castle.cpp
compile char_affect.cpp
Makefile:129: recipe for target 'OBJDIR/FSM.o' failed
gmake: *** [OBJDIR/FSM.o] Error 1
gmake: *** Waiting for unfinished jobs....
compile char.cpp
compile buffer_manager.cpp
compile char_change_empire.cpp
compile char_battle.cpp
compile ani.cpp
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkManager.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from blend_item.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from TrafficProfiler.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkConvert.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from block_country.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkImage.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from buffer_manager.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
Makefile:129: recipe for target 'OBJDIR/MarkImage.o' failed
gmake: *** [OBJDIR/MarkImage.o] Error 1
Makefile:129: recipe for target 'OBJDIR/MarkConvert.o' failed
gmake: *** [OBJDIR/MarkConvert.o] Error 1
Makefile:129: recipe for target 'OBJDIR/TrafficProfiler.o' failed
gmake: *** [OBJDIR/TrafficProfiler.o] Error 1
Makefile:129: recipe for target 'OBJDIR/MarkManager.o' failed
gmake: *** [OBJDIR/MarkManager.o] Error 1
Makefile:129: recipe for target 'OBJDIR/buffer_manager.o' failed
gmake: *** [OBJDIR/buffer_manager.o] Error 1
Makefile:129: recipe for target 'OBJDIR/block_country.o' failed
gmake: *** [OBJDIR/block_country.o] Error 1
Makefile:129: recipe for target 'OBJDIR/blend_item.o' failed
gmake: *** [OBJDIR/blend_item.o] Error 1
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from castle.cpp:12:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from banword.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from arena.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char_change_empire.cpp:2:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from OXEvent.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char_affect.cpp:2:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from ani.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char_battle.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from building.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from battle.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
char.cpp:7234:3: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
   return 2500000000;
   ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from char.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from banword.h:5,
                 from banword.cpp:3:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from castle.cpp:21:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from questmanager.h:4,
                 from arena.cpp:8:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from char_change_empire.cpp:4:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from char_affect.cpp:5:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from ani.cpp:11:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from desc_manager.h:4,
                 from char_battle.cpp:5:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
Makefile:129: recipe for target 'OBJDIR/banword.o' failed
gmake: *** [OBJDIR/banword.o] Error 1
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from building.cpp:8:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from char.cpp:6:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from battle.cpp:5:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
Makefile:129: recipe for target 'OBJDIR/castle.o' failed
gmake: *** [OBJDIR/castle.o] Error 1
Makefile:129: recipe for target 'OBJDIR/ani.o' failed
gmake: *** [OBJDIR/ani.o] Error 1
Makefile:129: recipe for target 'OBJDIR/char_change_empire.o' failed
gmake: *** [OBJDIR/char_change_empire.o] Error 1
Makefile:129: recipe for target 'OBJDIR/arena.o' failed
gmake: *** [OBJDIR/arena.o] Error 1
Makefile:129: recipe for target 'OBJDIR/char_affect.o' failed
gmake: *** [OBJDIR/char_affect.o] Error 1
Makefile:129: recipe for target 'OBJDIR/BattleArena.o' failed
gmake: *** [OBJDIR/BattleArena.o] Error 1
Makefile:129: recipe for target 'OBJDIR/OXEvent.o' failed
gmake: *** [OBJDIR/OXEvent.o] Error 1
Makefile:129: recipe for target 'OBJDIR/battle.o' failed
gmake: *** [OBJDIR/battle.o] Error 1
char_battle.cpp: In member function 'void CHARACTER::Reward(bool)':
char_battle.cpp:775:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
   if (GetLevel() - pkAttacker->GetLevel() >= -10)
      ^
Makefile:129: recipe for target 'OBJDIR/building.o' failed
gmake: *** [OBJDIR/building.o] Error 1
char.cpp: In member function 'int CHARACTER::GetPolymorphPoint(BYTE) const':
char.cpp:2871:57: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
      if (GetJob() == JOB_SHAMAN || GetJob() == JOB_SURA && GetSkillGroup() == 2)
                                                         ^
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3079:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (amount < 0 && exp < -amount)
                              ^
char.cpp: In member function 'void CHARACTER::SetTarget(LPCHARACTER)':
char.cpp:5116:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (m_pkChrTarget->IsPC() && !m_pkChrTarget->IsPolymorphed() || m_pkChrTarget->GetMaxHP() <= 0)
                             ^
Makefile:129: recipe for target 'OBJDIR/char_battle.o' failed
gmake: *** [OBJDIR/char_battle.o] Error 1
char.cpp: In member function 'bool CHARACTER::CanSummon(int)':
char.cpp:6301:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  return (iLeaderShip >= 20 || iLeaderShip >= 12 && m_dwLastDeadTime + 180 > get_dword_time());
                                                 ^
Makefile:129: recipe for target 'OBJDIR/char.o' failed
gmake: *** [OBJDIR/char.o] Error 1

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.