Jump to content

Hisoka

Inactive Member
  • Posts

    50
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Hisoka

  1. You have there 90% - it always fail? you can enable test_server: 1 at your actually game core at CONFIG file, to see debug chats <IMMUNE_FAIL> etc.

    I'm not pretty sure that you need party to this or not

    thanks for responding

    yes this allways fails and no bonus in /state

    https://metin2.download/picture/4go8E7226VyNMy9k7T8mrFhVInBAStAv/.png

  2. i dont know if this is posted

    horse skills no damage (only for M1 no G and P)

    open game /src/ char_skill.cpp

     

            if(GetMountVnum())
    		{
    			if( !((GetMountVnum() >= 20209 && GetMountVnum() <= 20212)	||
    				GetMountVnum() == 20215 || GetMountVnum() == 20218 || GetMountVnum() == 20225	)	)
    					return false;
    		}

    replaced by

    		if(GetMountVnum())
    		{
    			if( GetMountVnum() < 20209 && GetMountVnum() > 20212)
    				if (GetMountVnum() != 20215 || GetMountVnum() != 20218 || GetMountVnum() != 20220)
    					return false;
    		}

    like that

    ce10cdd2052d9b3d31f764a46c2144ff.png

  3. their are 2 solution 

    1- put pc/pc2 from any another client and replace it

    2- replace all msm files from another root to your root 

     

    sorry for my bad english but their is not time for google translate 

    :D 

    thanks but i put pc & pc2 of gameforge m2 and same error

  4. after compiling the source of mainline i have that bug

    https://metin2.download/picture/c9V6jK3xmI9tuZ84bb2vg0RW0AdaY3Kg/.jpg

    https://metin2.download/picture/H1Tb2uymq5doHsJwDBzG3FEvLDF6tQRr/.jpg

    syser says 

    0922 23:51:14768 :: Hair number 299 is not exist.
    0922 23:51:14808 :: Hair number 189 is not exist.
    0922 23:51:24383 :: Hair number 32001 is not exist.
    0922 23:51:24944 :: Hair number 32001 is not exist.

    ...

  5. Change libsql İn Novaline.

    I already tried but gave no result

     

    root@host:/usr/src/mainline/Srcs/Server/db/src # gmake clean
    root@host:/usr/src/mainline/Srcs/Server/db/src # gmake -j20
    compile Config.cpp
    compile NetBase.cpp
    compile Peer.cpp
    compile PeerBase.cpp
    compile Main.cpp
    compile Lock.cpp
    compile DBManager.cpp
    compile Cache.cpp
    compile LoginData.cpp
    compile ClientManager.cpp
    compile ClientManagerPlayer.cpp
    compile ClientManagerLogin.cpp
    compile ClientManagerBoot.cpp
    compile ClientManagerParty.cpp
    compile ClientManagerGuild.cpp
    compile GuildManager.cpp
    compile HB.cpp
    compile PrivManager.cpp
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
    ClientManagerBoot.cpp:402:11: warning: statement has no effect [-Wunused-value]
      test_data;
               ^
    ClientManagerBoot.cpp:201:7: warning: variable 'isNameFile' set but not used [-Wunused-but-set-variable]
      bool isNameFile = true;
           ^
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
    ClientManagerBoot.cpp:601:7: warning: variable 'isNameFile' set but not used [-Wunused-but-set-variable]
      bool isNameFile = true;
           ^
    ClientManagerBoot.cpp:703:6: warning: unused variable 'testValue' [-Wunused-variable]
      int testValue =  m_vec_itemTable.size();
          ^
    ClientManagerBoot.cpp: In member function 'bool CClientManager::MirrorItemTableIntoDB()':
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 25 has type 'long int' [-Wformat=]
         t.alValues[0], t.alValues[1], t.alValues[2], t.alValues[3], t.alValues[4], t.alValues[5]);
                                                                                                 ^
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 27 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 29 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 31 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 33 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 34 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 35 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 36 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 37 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 38 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 39 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 25 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 27 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 29 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 31 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 33 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 34 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 35 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 36 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 37 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 38 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 39 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 23 has type 'long int' [-Wformat=]
         t.alValues[0], t.alValues[1], t.alValues[2], t.alValues[3], t.alValues[4], t.alValues[5]);
                                                                                                 ^
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 25 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 27 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 29 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 31 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 32 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 33 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 34 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 35 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 36 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 37 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 23 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 25 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 27 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 29 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 31 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 32 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 33 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 34 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 35 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 36 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 37 has type 'long int' [-Wformat=]
    compile MoneyLog.cpp
    compile ItemAwardManager.cpp
    compile ClientManagerEventFlag.cpp
    compile Marriage.cpp
    compile Monarch.cpp
    compile BlockCountry.cpp
    compile ItemIDRangeManager.cpp
    compile ClientManagerHorseName.cpp
    compile AuctionManager.cpp
    compile version.cpp
    compile ProtoReader.cpp
    compile CsvReader.cpp
    CsvReader.cpp: In member function 'const char* cCsvAlias::operator[](size_t) const':
    CsvReader.cpp:72:25: warning: left operand of comma operator has no effect [-Wunused-value]
             LogToFile(NULL, "cannot find suitable conversion for %d", index);
                             ^
    CsvReader.cpp:72:67: warning: right operand of comma operator has no effect [-Wunused-value]
             LogToFile(NULL, "cannot find suitable conversion for %d", index);
                                                                       ^
    CsvReader.cpp: In member function 'size_t cCsvAlias::operator[](const char*) const':
    CsvReader.cpp:90:25: warning: left operand of comma operator has no effect [-Wunused-value]
             LogToFile(NULL, "cannot find suitable conversion for %s", name);
                             ^
    CsvReader.cpp:90:67: warning: right operand of comma operator has no effect [-Wunused-value]
             LogToFile(NULL, "cannot find suitable conversion for %s", name);
                                                                       ^
    linking ...
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0xf9f): undefined reference to `pthread_create'
    collect2: error: ld returned 1 exit status
    gmake: *** [../db_r54180] Error 1
    root@host:/usr/src/mainline/Srcs/Server/db/src #
    root@host:/usr/src/mainline/Srcs/Server/db/src #
    
    
    

     

    if I do with this makefile:

     

    MAKE = gmake
    CC = g++48
    CXX = g++48
    
    INCDIR =
    LIBDIR =
    BINDIR = ..
    OBJDIR = .obj
    
    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)
    P4_VERSION = 54180
    $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
    
    TARGET = $(BINDIR)/db_r$(P4_VERSION)
    
    CFLAGS = -Wall -ffat-lto-objects -flto -fuse-linker-plugin -Ofast -pipe -fno-rtti -fno-exceptions -pthread -D_THREAD_SAFE -lstdc++ -Wl,-rpath,/usr/local/lib32/metin2 -std=c++11 
    
    CFLAGS += -mtune=i686 -mssse3
    
    # boost
    INCDIR += -I../../boost
    
    LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib
    
    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 = -lthecore -lsql -lpoly -lgame -lm -lz
    LIBDIR += -L/usr/local/lib/mysql
    LIBS += -lmysqlclient -lz
    
    SRCS =	Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp 
    		Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp 
    		ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp 
    		PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp 
    		Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp 
    		AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 
    
    OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)
    
    default: $(TARGET) $(TEST_TARGET)
    	@strip $(TEST_TARGET)
    
    
    $(TARGET): $(OBJS)
    	@echo linking ...
    	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
    	@touch version.cpp
    
    
    $(OBJDIR)/%.o: %.cpp
    	@echo compile $<
    	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    
    $(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):
    	@mkdir $(OBJDIR)
    
    clean:
    	@rm -f $(OBJS) $(BINDIR)/db_r*
    
    dep:
    	@touch Depend
    	makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null
    
    sinclude Depend
    
    

     

    how could resolve this error without deleting anything?

     

    root@host:/usr/src/mainline/Srcs/Server/db/src # gmake clean
    root@host:/usr/src/mainline/Srcs/Server/db/src # gmake -j20
    compile Config.cpp
    compile NetBase.cpp
    compile Peer.cpp
    compile PeerBase.cpp
    compile Main.cpp
    compile Lock.cpp
    compile DBManager.cpp
    compile Cache.cpp
    compile LoginData.cpp
    compile ClientManager.cpp
    compile ClientManagerPlayer.cpp
    compile ClientManagerLogin.cpp
    compile ClientManagerBoot.cpp
    compile ClientManagerParty.cpp
    compile ClientManagerGuild.cpp
    compile GuildManager.cpp
    compile HB.cpp
    compile PrivManager.cpp
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
    ClientManagerBoot.cpp:460:22: error: aggregate 'std::ostringstream query' has incomplete type and cannot be defined
       std::ostringstream query;
                          ^
    ClientManagerBoot.cpp: In member function 'void CClientManager::CheckItemTable()':
    ClientManagerBoot.cpp:700:21: error: aggregate 'std::ostringstream query' has incomplete type and cannot be defined
      std::ostringstream query;
                         ^
    ClientManagerBoot.cpp:729:22: error: aggregate 'std::ostringstream query2' has incomplete type and cannot be defined
       std::ostringstream query2;
                          ^
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
    ClientManagerBoot.cpp:1032:22: error: aggregate 'std::ostringstream query' has incomplete type and cannot be defined
       std::ostringstream query;
                          ^
    compile MoneyLog.cpp
    compile ItemAwardManager.cpp
    gmake: *** [.obj/ClientManagerBoot.o] Error 1
    gmake: *** Waiting for unfinished jobs....
    root@host:/usr/src/mainline/Srcs/Server/db/src #
    
    

     

    im doing this because understand that it is possible to edit several things with new added features, such as adding new bonus vs mobs...

  6. MAKE = gmake
    CC = g++48
    CXX = g++48
    
    
    INCDIR =
    LIBDIR =
    BINDIR = ..
    OBJDIR = .obj
    
    
    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)
    P4_VERSION = 54180
    $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
    
    
    TARGET = $(BINDIR)/db_r$(P4_VERSION)
    
    
    CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_ 
    
    
    CFLAGS += -mtune=i686 -mcpu=i686
    
    
    # boost
    INCDIR += -I../../boost
    
    
    LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib
    
    
    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 = -lthecore -lsql -lpoly -lgame -lm -lz
    LIBDIR += -L/usr/local/lib/mysql
    LIBS += -lmysqlclient -lz
    
    
    SRCS =  Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp 
            Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp 
            ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp 
            PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp 
            Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp 
            AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 
    
    
    OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)
    
    
    default: $(TARGET) $(TEST_TARGET)
        @strip $(TEST_TARGET)
    
    
    
    
    $(TARGET): $(OBJS)
        @echo linking ...
        @$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
        @touch version.cpp
    
    
    $(OBJDIR)/%.o: %.cpp
        @echo compile $<
        @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    
    
    $(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):
        @mkdir $(OBJDIR)
    
    
    clean:
        @rm -f $(OBJS) $(BINDIR)/db_r*
    
    
    dep:
        @touch Depend
        makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null
    
    
    sinclude Depend

    Try This.

     

    new makefile:

     

    MAKE = gmake
    CC = g++48
    CXX = g++48
    
    INCDIR =
    LIBDIR =
    BINDIR = ..
    OBJDIR = .obj
    
    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)
    P4_VERSION = 54180
    $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
    
    TARGET = $(BINDIR)/db_r$(P4_VERSION)
    
    CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_ 
    
    CFLAGS += -mtune=i686 -mssse3
    
    # boost
    INCDIR += -I../../boost
    
    LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib
    
    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 = -lthecore -lsql -lpoly -lgame -lm -lz
    LIBDIR += -L/usr/local/lib/mysql
    LIBS += -lmysqlclient -lz
    
    SRCS =	Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 
    
    OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)
    
    default: $(TARGET) $(TEST_TARGET)
    	@strip $(TEST_TARGET)
    
    
    $(TARGET): $(OBJS)
    	@echo linking ...
    	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
    	@touch version.cpp
    
    
    $(OBJDIR)/%.o: %.cpp
    	@echo compile $<
    	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    
    $(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):
    	@mkdir $(OBJDIR)
    
    clean:
    	@rm -f $(OBJS) $(BINDIR)/db_r*
    
    dep:
    	@touch Depend
    	makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null
    
    sinclude Depend
    
    

     

    build log:

     

    root@host:/usr/src/mainline/Srcs/Server/db/src # gmake clean
    root@host:/usr/src/mainline/Srcs/Server/db/src # gmake -j20
    compile Config.cpp
    compile NetBase.cpp
    compile Peer.cpp
    compile PeerBase.cpp
    compile Main.cpp
    compile Lock.cpp
    compile DBManager.cpp
    compile Cache.cpp
    compile LoginData.cpp
    compile ClientManager.cpp
    compile ClientManagerPlayer.cpp
    compile ClientManagerLogin.cpp
    compile ClientManagerBoot.cpp
    compile ClientManagerParty.cpp
    compile ClientManagerGuild.cpp
    compile GuildManager.cpp
    compile HB.cpp
    compile PrivManager.cpp
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
    ClientManagerBoot.cpp:402:11: warning: statement has no effect [-Wunused-value]
      test_data;
               ^
    ClientManagerBoot.cpp:201:7: warning: variable 'isNameFile' set but not used [-Wunused-but-set-variable]
      bool isNameFile = true;
           ^
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
    ClientManagerBoot.cpp:601:7: warning: variable 'isNameFile' set but not used [-Wunused-but-set-variable]
      bool isNameFile = true;
           ^
    ClientManagerBoot.cpp:703:6: warning: unused variable 'testValue' [-Wunused-variable]
      int testValue =  m_vec_itemTable.size();
          ^
    ClientManagerBoot.cpp: In member function 'bool CClientManager::MirrorItemTableIntoDB()':
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 25 has type 'long int' [-Wformat=]
         t.alValues[0], t.alValues[1], t.alValues[2], t.alValues[3], t.alValues[4], t.alValues[5]);
                                                                                                 ^
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 27 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 29 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 31 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 33 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 34 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 35 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 36 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 37 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 38 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 39 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 25 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 27 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 29 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 31 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 33 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 34 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 35 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 36 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 37 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 38 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1491:93: warning: format '%d' expects argument of type 'int', but argument 39 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 23 has type 'long int' [-Wformat=]
         t.alValues[0], t.alValues[1], t.alValues[2], t.alValues[3], t.alValues[4], t.alValues[5]);
                                                                                                 ^
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 25 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 27 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 29 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 31 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 32 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 33 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 34 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 35 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 36 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 37 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 23 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 25 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 27 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 29 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 31 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 32 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 33 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 34 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 35 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 36 has type 'long int' [-Wformat=]
    ClientManagerBoot.cpp:1519:93: warning: format '%d' expects argument of type 'int', but argument 37 has type 'long int' [-Wformat=]
    compile MoneyLog.cpp
    compile ItemAwardManager.cpp
    compile ClientManagerEventFlag.cpp
    compile Marriage.cpp
    compile Monarch.cpp
    compile BlockCountry.cpp
    compile ItemIDRangeManager.cpp
    compile ClientManagerHorseName.cpp
    compile AuctionManager.cpp
    compile ProtoReader.cpp
    compile version.cpp
    compile CsvReader.cpp
    CsvReader.cpp: In member function 'const char* cCsvAlias::operator[](size_t) const':
    CsvReader.cpp:72:25: warning: left operand of comma operator has no effect [-Wunused-value]
             LogToFile(NULL, "cannot find suitable conversion for %d", index);
                             ^
    CsvReader.cpp:72:67: warning: right operand of comma operator has no effect [-Wunused-value]
             LogToFile(NULL, "cannot find suitable conversion for %d", index);
                                                                       ^
    CsvReader.cpp: In member function 'size_t cCsvAlias::operator[](const char*) const':
    CsvReader.cpp:90:25: warning: left operand of comma operator has no effect [-Wunused-value]
             LogToFile(NULL, "cannot find suitable conversion for %s", name);
                             ^
    CsvReader.cpp:90:67: warning: right operand of comma operator has no effect [-Wunused-value]
             LogToFile(NULL, "cannot find suitable conversion for %s", name);
                                                                       ^
    linking ...
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0xf9f): undefined reference to `pthread_create'
    collect2: error: ld returned 1 exit status
    gmake: *** [../db_r54180] Error 1
    root@host:/usr/src/mainline/Srcs/Server/db/src #
    root@host:/usr/src/mainline/Srcs/Server/db/src #
    
    

  7.  

    root@host:/usr/src/mainline/Srcs/Server/db/src # gmake -j20
    compile Config.cpp
    compile NetBase.cpp
    compile Peer.cpp
    compile PeerBase.cpp
    compile Main.cpp
    compile Lock.cpp
    compile DBManager.cpp
    compile Cache.cpp
    compile LoginData.cpp
    compile ClientManager.cpp
    compile ClientManagerPlayer.cpp
    compile ClientManagerLogin.cpp
    In file included from ClientManager.cpp:6:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    Cache.cpp:365:7: warning: no newline at end of file
    compile ClientManagerBoot.cpp
    compile ClientManagerParty.cpp
    compile GuildManager.cpp
    compile ClientManagerGuild.cpp
    compile HB.cpp
    In file included from ClientManagerBoot.cpp:8:
    ProtoReader.h:36:7: warning: no newline at end of file
    compile PrivManager.cpp
    compile MoneyLog.cpp
    compile ItemAwardManager.cpp
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
    ClientManagerBoot.cpp:402: warning: statement has no effect
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
    ClientManagerBoot.cpp:703: warning: unused variable 'testValue'
    ClientManagerBoot.cpp: In member function 'bool CClientManager::MirrorItemTableIntoDB()':
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 38 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 39 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 38 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 39 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 23 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 32 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 23 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 32 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ItemAwardManager.cpp:129:2: warning: no newline at end of file
    compile ClientManagerEventFlag.cpp
    compile Marriage.cpp
    compile Monarch.cpp
    compile BlockCountry.cpp
    compile ItemIDRangeManager.cpp
    compile ClientManagerHorseName.cpp
    compile AuctionManager.cpp
    compile ProtoReader.cpp
    compile CsvReader.cpp
    compile version.cpp
    In file included from ProtoReader.cpp:4:
    ProtoReader.h:36:7: warning: no newline at end of file
    AuctionManager.cpp:719:7: warning: no newline at end of file
    CsvReader.cpp: In member function 'const char* cCsvAlias::operator[](size_t) const':
    CsvReader.cpp:72: warning: left-hand operand of comma has no effect
    CsvReader.cpp:72: warning: right-hand operand of comma has no effect
    CsvReader.cpp: In member function 'size_t cCsvAlias::operator[](const char*) const':
    CsvReader.cpp:90: warning: left-hand operand of comma has no effect
    CsvReader.cpp:90: warning: right-hand operand of comma has no effect
    linking ...
    linking ...
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0xf9f): undefined reference to `pthread_create'
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0xf9f): undefined reference to `pthread_create'
    gmake: *** [../db_r54180_striped] Error 1
    gmake: *** Waiting for unfinished jobs....
    gmake: *** [../db_r54180] Error 1
    root@host:/usr/src/mainline/Srcs/Server/db/src #
    
    

    Paste Your Makefile.

     

    MAKE = gmake
    CC = g++
    CXX = g++
    
    INCDIR =
    LIBDIR =
    BINDIR = ..
    OBJDIR = .obj
    
    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)
    P4_VERSION = 54180
    $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
    
    TARGET = $(BINDIR)/db_r$(P4_VERSION)
    TEST_TARGET  = $(BINDIR)/db_r$(P4_VERSION)_striped
    
    CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_ 
    
    CFLAGS += -mtune=i686 -mcpu=i686
    
    # boost
    INCDIR += -I../../boost
    
    LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib
    
    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 = -lthecore -lsql -lpoly -lgame -lm -lz
    LIBDIR += -L/usr/local/lib/mysql
    LIBS += -lmysqlclient -lz
    
    SRCS =	Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp 
    		Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp 
    		ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp 
    		PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp 
    		Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp 
    		AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 
    
    OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)
    
    default: $(TARGET) $(TEST_TARGET)
    	@strip $(TEST_TARGET)
    
    
    $(TARGET): $(OBJS)
    	@echo linking ...
    	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
    	@touch version.cpp
    
    $(TEST_TARGET): $(OBJS)
    	@echo linking ...
    	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TEST_TARGET)
    	@touch version.cpp
    
    $(OBJDIR)/%.o: %.cpp
    	@echo compile $<
    	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    
    $(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):
    	@mkdir $(OBJDIR)
    
    clean:
    	@rm -f $(OBJS) $(BINDIR)/db_r*
    
    dep:
    	@touch Depend
    	makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null
    
    sinclude Depend
    
    
  8. root@host:/usr/src/mainline/Srcs/Server/db/src # gmake -j20
    compile Config.cpp
    compile NetBase.cpp
    compile Peer.cpp
    compile PeerBase.cpp
    compile Main.cpp
    compile Lock.cpp
    compile DBManager.cpp
    compile Cache.cpp
    compile LoginData.cpp
    compile ClientManager.cpp
    compile ClientManagerPlayer.cpp
    compile ClientManagerLogin.cpp
    In file included from ClientManager.cpp:6:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    Cache.cpp:365:7: warning: no newline at end of file
    compile ClientManagerBoot.cpp
    compile ClientManagerParty.cpp
    compile GuildManager.cpp
    compile ClientManagerGuild.cpp
    compile HB.cpp
    In file included from ClientManagerBoot.cpp:8:
    ProtoReader.h:36:7: warning: no newline at end of file
    compile PrivManager.cpp
    compile MoneyLog.cpp
    compile ItemAwardManager.cpp
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
    ClientManagerBoot.cpp:402: warning: statement has no effect
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
    ClientManagerBoot.cpp:703: warning: unused variable 'testValue'
    ClientManagerBoot.cpp: In member function 'bool CClientManager::MirrorItemTableIntoDB()':
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 38 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 39 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 38 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 39 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 23 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 32 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 23 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 32 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ItemAwardManager.cpp:129:2: warning: no newline at end of file
    compile ClientManagerEventFlag.cpp
    compile Marriage.cpp
    compile Monarch.cpp
    compile BlockCountry.cpp
    compile ItemIDRangeManager.cpp
    compile ClientManagerHorseName.cpp
    compile AuctionManager.cpp
    compile ProtoReader.cpp
    compile CsvReader.cpp
    compile version.cpp
    In file included from ProtoReader.cpp:4:
    ProtoReader.h:36:7: warning: no newline at end of file
    AuctionManager.cpp:719:7: warning: no newline at end of file
    CsvReader.cpp: In member function 'const char* cCsvAlias::operator[](size_t) const':
    CsvReader.cpp:72: warning: left-hand operand of comma has no effect
    CsvReader.cpp:72: warning: right-hand operand of comma has no effect
    CsvReader.cpp: In member function 'size_t cCsvAlias::operator[](const char*) const':
    CsvReader.cpp:90: warning: left-hand operand of comma has no effect
    CsvReader.cpp:90: warning: right-hand operand of comma has no effect
    linking ...
    linking ...
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0xf9f): undefined reference to `pthread_create'
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0xf9f): undefined reference to `pthread_create'
    gmake: *** [../db_r54180_striped] Error 1
    gmake: *** Waiting for unfinished jobs....
    gmake: *** [../db_r54180] Error 1
    root@host:/usr/src/mainline/Srcs/Server/db/src #
    
    
  9. root@host:/usr/src/mainline/Srcs/Server/db/src # gmake -j20
    compile Config.cpp
    compile NetBase.cpp
    compile Peer.cpp
    compile PeerBase.cpp
    compile Main.cpp
    compile Lock.cpp
    compile DBManager.cpp
    compile Cache.cpp
    compile LoginData.cpp
    compile ClientManager.cpp
    compile ClientManagerPlayer.cpp
    compile ClientManagerLogin.cpp
    In file included from ClientManager.cpp:6:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    Cache.cpp:365:7: warning: no newline at end of file
    compile ClientManagerBoot.cpp
    compile ClientManagerParty.cpp
    compile GuildManager.cpp
    compile ClientManagerGuild.cpp
    compile HB.cpp
    In file included from ClientManagerBoot.cpp:8:
    ProtoReader.h:36:7: warning: no newline at end of file
    compile PrivManager.cpp
    compile MoneyLog.cpp
    compile ItemAwardManager.cpp
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeMobTable()':
    ClientManagerBoot.cpp:402: warning: statement has no effect
    ClientManagerBoot.cpp: In member function 'bool CClientManager::InitializeItemTable()':
    ClientManagerBoot.cpp:703: warning: unused variable 'testValue'
    ClientManagerBoot.cpp: In member function 'bool CClientManager::MirrorItemTableIntoDB()':
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 38 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 39 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 38 has type 'long int'
    ClientManagerBoot.cpp:1491: warning: format '%d' expects type 'int', but argument 39 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 23 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 32 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 23 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 25 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 27 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 29 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 31 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 32 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 33 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 34 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 35 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 36 has type 'long int'
    ClientManagerBoot.cpp:1519: warning: format '%d' expects type 'int', but argument 37 has type 'long int'
    ItemAwardManager.cpp:129:2: warning: no newline at end of file
    compile ClientManagerEventFlag.cpp
    compile Marriage.cpp
    compile Monarch.cpp
    compile BlockCountry.cpp
    compile ItemIDRangeManager.cpp
    compile ClientManagerHorseName.cpp
    compile AuctionManager.cpp
    compile ProtoReader.cpp
    compile CsvReader.cpp
    compile version.cpp
    In file included from ProtoReader.cpp:4:
    ProtoReader.h:36:7: warning: no newline at end of file
    AuctionManager.cpp:719:7: warning: no newline at end of file
    CsvReader.cpp: In member function 'const char* cCsvAlias::operator[](size_t) const':
    CsvReader.cpp:72: warning: left-hand operand of comma has no effect
    CsvReader.cpp:72: warning: right-hand operand of comma has no effect
    CsvReader.cpp: In member function 'size_t cCsvAlias::operator[](const char*) const':
    CsvReader.cpp:90: warning: left-hand operand of comma has no effect
    CsvReader.cpp:90: warning: right-hand operand of comma has no effect
    linking ...
    linking ...
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0xf9f): undefined reference to `pthread_create'
    ../../libsql/libsql.a(AsyncSQL.o): In function `CAsyncSQL::Setup(char const*, char const*, char const*, char const*, char const*, bool, int)':
    AsyncSQL.cpp:(.text+0xf9f): undefined reference to `pthread_create'
    gmake: *** [../db_r54180_striped] Error 1
    gmake: *** Waiting for unfinished jobs....
    gmake: *** [../db_r54180] Error 1
    root@host:/usr/src/mainline/Srcs/Server/db/src #  
    
    

    Makefile:

     

    MAKE = gmake
    CC = g++
    CXX = g++
    
    INCDIR =
    LIBDIR =
    BINDIR = ..
    OBJDIR = .obj
    
    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)
    P4_VERSION = 54180
    $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
    
    TARGET = $(BINDIR)/db_r$(P4_VERSION)
    TEST_TARGET  = $(BINDIR)/db_r$(P4_VERSION)_striped
    
    CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_ 
    
    CFLAGS += -mtune=i686 -mcpu=i686
    
    # boost
    INCDIR += -I../../boost
    
    LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib
    
    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 = -lthecore -lsql -lpoly -lgame -lm -lz
    LIBDIR += -L/usr/local/lib/mysql
    LIBS += -lmysqlclient -lz
    
    SRCS =	Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp 
    		Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp 
    		ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp 
    		PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp 
    		Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp 
    		AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 
    
    OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)
    
    default: $(TARGET) $(TEST_TARGET)
    	@strip $(TEST_TARGET)
    
    
    $(TARGET): $(OBJS)
    	@echo linking ...
    	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
    	@touch version.cpp
    
    $(TEST_TARGET): $(OBJS)
    	@echo linking ...
    	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TEST_TARGET)
    	@touch version.cpp
    
    $(OBJDIR)/%.o: %.cpp
    	@echo compile $<
    	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    
    $(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):
    	@mkdir $(OBJDIR)
    
    clean:
    	@rm -f $(OBJS) $(BINDIR)/db_r*
    
    dep:
    	@touch Depend
    	makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null
    
    sinclude Depend
    

     

    Version.cpp

     

    #include <stdio.h>
    #include <stdlib.h>
    
    void WriteVersion()
    {
    #ifndef __WIN32__
    	FILE* fp(fopen("VERSION.txt", "w"));
    
    	if (NULL != fp)
    	{
    		fprintf(fp, "game perforce revision: %sn", __P4_VERSION__);
    		fprintf(fp, "%s@%s:%sn", __USER__, __HOSTNAME__, __PWD__);
    		fclose(fp);
    	}
    	else
    	{
    		fprintf(stderr, "cannot open VERSION.txtn");
    		exit(0);
    	}
    #endif
    }
    
    

  10. DWORD CHARACTER::GetAID() was defined 2x.

     

    thx bro fixed, now fails the end to compiling

     

    root@host:/usr/src/mainline/Srcs/Server/game/src # gmake clean
    root@host:/usr/src/mainline/Srcs/Server/game/src # gmake -j20
    compile BattleArena.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile FSM.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile MarkConvert.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile MarkImage.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile MarkManager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile OXEvent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile TrafficProfiler.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile ani.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile arena.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile banword.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile battle.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile blend_item.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile block_country.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile buffer_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile building.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile castle.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_affect.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char.cpp:4:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from char.cpp:25:
    shop_manager.h:40:7: warning: no newline at end of file
    In file included from char.cpp:63:
    PetSystem.h:163:31: warning: no newline at end of file
    char.cpp:7363:124: warning: trigraph ??) ignored, use -trigraphs to enable
    char.cpp:7363:248: warning: trigraph ??) ignored, use -trigraphs to enable
    char.cpp:7363:278: warning: trigraph ??) ignored, use -trigraphs to enable
    compile char_battle.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_change_empire.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char_battle.cpp:27:
    shop_manager.h:40:7: warning: no newline at end of file
    compile char_horse.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_item.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char_horse.cpp:14:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile char_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char_item.cpp:44:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from char_item.cpp:47:
    belt_inventory_helper.h:148:42: warning: no newline at end of file
    compile char_quickslot.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_resist.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_skill.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_state.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile PetSystem.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char_state.cpp:25:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile cmd.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from PetSystem.cpp:8:
    PetSystem.h:163:31: warning: no newline at end of file
    In file included from PetSystem.cpp:9:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    PetSystem.cpp:637:2: warning: no newline at end of file
    compile cmd_emotion.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile cmd_general.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    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 cmd_gm.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile cmd_oxevent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from cmd_general.cpp:36:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile config.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
    char_item.cpp:6446: warning: 'pBuff' may be used uninitialized in this function
    compile constants.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile crc32.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile cube.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile db.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile desc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile desc_client.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile desc_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile desc_p2p.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile dev_log.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile dungeon.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile empire_text_convert.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from desc_manager.cpp:15:
    ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
    compile entity.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile entity_view.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile event.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile event_queue.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile exchange.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile file_loader.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile fishing.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile gm.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile guild.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile guild_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile guild_war.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile horse_rider.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile horsename_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_auth.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_db.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_login.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from input_db.cpp:13:
    shop_manager.h:40:7: warning: no newline at end of file
    input_db.cpp:2731:2: warning: no newline at end of file
    compile input_main.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_p2p.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from input_main.cpp:16:
    shop_manager.h:40:7: warning: no newline at end of file
    In file included from input_main.cpp:44:
    belt_inventory_helper.h:148:42: warning: no newline at end of file
    compile input_teen.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_udp.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile ip_ban.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile item.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile item_addon.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile item_attribute.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from item.cpp:22:
    belt_inventory_helper.h:148:42: warning: no newline at end of file
    In file included from item.cpp:23:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    item.cpp:2094:2: warning: no newline at end of file
    compile item_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile item_manager_idrange.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from item_manager.cpp:21:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile locale.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile locale_service.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile log.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile login_data.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile lzo_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile marriage.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile matrix_card.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile messenger_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile mining.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile mob_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile monarch.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile motion.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    monarch.cpp:276:2: warning: no newline at end of file
    compile over9refine.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile p2p.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile packet_info.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile party.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile passpod.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile pcbang.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile polymorph.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile priv_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile pvp.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questevent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_affect.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_arena.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_ba.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_building.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_danceevent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_dungeon.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_forked.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_game.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_global.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_guild.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_horse.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_pet.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_item.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from questlua_pet.cpp:11:
    PetSystem.h:163:31: warning: no newline at end of file
    questlua_pet.cpp:170:2: warning: no newline at end of file
    compile questlua_marriage.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_mgmt.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_monarch.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_npc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    questlua_item.cpp: In function 'int quest::item_equip_selected(lua_State*)':
    questlua_item.cpp:602: warning: comparison is always false due to limited range of data type
    questlua_item.cpp:616: warning: comparison is always true due to limited range of data type
    compile questlua_oxevent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from questlua_npc.cpp:9:
    shop_manager.h:40:7: warning: no newline at end of file
    compile questlua_party.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_pc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    questlua_npc.cpp: In function 'int quest::npc_get_vid_attack_mul(lua_State*)':
    questlua_npc.cpp:379: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_set_vid_attack_mul(lua_State*)':
    questlua_npc.cpp:395: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_get_vid_damage_mul(lua_State*)':
    questlua_npc.cpp:410: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_set_vid_damage_mul(lua_State*)':
    questlua_npc.cpp:426: warning: unused variable 'q'
    compile questlua_quest.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_target.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questmanager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questnpc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questpc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile refine.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile regen.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile safebox.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile sectree.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile sectree_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile sequence.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile shop.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile skill.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile start_position.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile target.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile text_file_loader.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile trigger.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile utils.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from trigger.cpp:8:
    shop_manager.h:40:7: warning: no newline at end of file
    compile vector.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile war_map.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile wedding.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile xmas_event.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile panama.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile version.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile threeway_war.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile map_location.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile auth_brazil.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile BlueDragon.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile BlueDragon_Binder.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile DragonLair.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_dragonlair.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile HackShield.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile HackShield_Impl.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_hackshield.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile skill_power.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile affect.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile SpeedServer.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_speedserver.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile XTrapManager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile auction_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile FileMonitor_FreeBSD.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile ClientPackageCryptInfo.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    FileMonitor_FreeBSD.cpp:136:2: warning: no newline at end of file
    compile cipher.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from ClientPackageCryptInfo.cpp:2:
    ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
    compile buff_on_attributes.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile check_server.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    ../../../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'
    compile dragon_soul_table.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    ../../../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'
    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
    compile DragonSoul.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    buff_on_attributes.cpp: In member function 'void CBuffOnAttributes::ChangeBuffValue(BYTE)':
    buff_on_attributes.cpp:119: warning: unused variable 'old_value'
    buff_on_attributes.cpp:120: warning: unused variable 'new_value'
    In file included from dragon_soul_table.cpp:4:
    dragon_soul_table.h:74:7: warning: no newline at end of file
    compile group_text_parse_tree.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from DragonSoul.cpp:9:
    dragon_soul_table.h:74:7: warning: no newline at end of file
    compile char_dragonsoul.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_dragonsoul.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    DragonSoul.cpp: In member function 'bool DSManager::ExtractDragonHeart(CHARACTER*, CItem*, CItem*)':
    DragonSoul.cpp:353: warning: unused variable 'sum'
    DragonSoul.cpp: In member function 'bool DSManager::PullOut(CHARACTER*, TItemPos, CItem*&, CItem*)':
    DragonSoul.cpp:438: warning: unused variable 'dwVnum'
    DragonSoul.cpp: In member function 'bool DSManager::DoRefineGrade(CHARACTER*, TItemPos (&)[15])':
    DragonSoul.cpp:558: warning: unused variable 'prob_sum'
    DragonSoul.cpp: In member function 'bool DSManager::DoRefineStep(CHARACTER*, TItemPos (&)[15])':
    DragonSoul.cpp:766: warning: unused variable 'sum'
    char_dragonsoul.cpp:149:2: warning: no newline at end of file
    compile shop_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile shopEx.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from shop_manager.cpp:22:
    shop_manager.h:40:7: warning: no newline at end of file
    compile item_manager_read_tables.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile minilzo.c with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    item_manager_read_tables.cpp: In member function 'bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char*)':
    item_manager_read_tables.cpp:637: warning: unused variable 'pkGroup'
    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_r54250_32 with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686....
    linking ../game_r54250_striped with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686....
    OBJDIR/char.o: In function `std::vector<std::string, std::allocator<std::string> >::size() const':
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBlockListArray'
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBlockListArray'
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBannListArray'
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBannListArray'
    OBJDIR/cmd_gm.o: In function `do_reload(CHARACTER*, char const*, int, int)':
    /usr/src/mainline/Srcs/Server/game/src/cmd_gm.cpp:2156: undefined reference to `LoadBlockSpamList()'
    /usr/src/mainline/Srcs/Server/game/src/cmd_gm.cpp:2157: undefined reference to `LoadBannSpamList()'
    OBJDIR/char.o: In function `std::vector<std::string, std::allocator<std::string> >::size() const':
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBlockListArray'
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBlockListArray'
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBannListArray'
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBannListArray'
    OBJDIR/cmd_gm.o: In function `do_reload(CHARACTER*, char const*, int, int)':
    /usr/src/mainline/Srcs/Server/game/src/cmd_gm.cpp:2156: undefined reference to `LoadBlockSpamList()'
    /usr/src/mainline/Srcs/Server/game/src/cmd_gm.cpp:2157: undefined reference to `LoadBannSpamList()'
    OBJDIR/questlua.o: In function `quest::CQuestManager::InitializeLua()':
    /usr/src/mainline/Srcs/Server/game/src/questlua.cpp:474: undefined reference to `quest::RegisterUniqueFunctionTable()'
    /usr/src/mainline/Srcs/Server/game/src/questlua.cpp:476: undefined reference to `quest::RegistermysqlFunctionTable()'
    OBJDIR/questlua.o: In function `quest::CQuestManager::InitializeLua()':
    /usr/src/mainline/Srcs/Server/game/src/questlua.cpp:474: undefined reference to `quest::RegisterUniqueFunctionTable()'
    /usr/src/mainline/Srcs/Server/game/src/questlua.cpp:476: undefined reference to `quest::RegistermysqlFunctionTable()'
    OBJDIR/main.o: In function `main':
    /usr/src/mainline/Srcs/Server/game/src/main.cpp:453: undefined reference to `LoadBlockSpamList()'
    /usr/src/mainline/Srcs/Server/game/src/main.cpp:454: undefined reference to `LoadBannSpamList()'
    OBJDIR/main.o: In function `main':
    /usr/src/mainline/Srcs/Server/game/src/main.cpp:453: undefined reference to `LoadBlockSpamList()'
    /usr/src/mainline/Srcs/Server/game/src/main.cpp:454: undefined reference to `LoadBannSpamList()'
    gmake: *** [../game_r54250_32] Error 1
    gmake: *** Waiting for unfinished jobs....
    gmake: *** [../game_r54250_striped] Error 1
    root@host:/usr/src/mainline/Srcs/Server/game/src #
    root@host:/usr/src/mainline/Srcs/Server/game/src #
    root@host:/usr/src/mainline/Srcs/Server/game/src # gmake clean
    root@host:/usr/src/mainline/Srcs/Server/game/src # gmake -j20
    compile BattleArena.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile FSM.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile MarkConvert.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile MarkImage.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile MarkManager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile OXEvent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile TrafficProfiler.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile ani.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile arena.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile banword.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile battle.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile blend_item.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile block_country.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile buffer_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile building.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile castle.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_affect.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char.cpp:4:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from char.cpp:25:
    shop_manager.h:40:7: warning: no newline at end of file
    In file included from char.cpp:63:
    PetSystem.h:163:31: warning: no newline at end of file
    char.cpp:7363:124: warning: trigraph ??) ignored, use -trigraphs to enable
    char.cpp:7363:248: warning: trigraph ??) ignored, use -trigraphs to enable
    char.cpp:7363:278: warning: trigraph ??) ignored, use -trigraphs to enable
    compile char_battle.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_change_empire.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char_battle.cpp:27:
    shop_manager.h:40:7: warning: no newline at end of file
    compile char_horse.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_item.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char_horse.cpp:14:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile char_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char_item.cpp:44:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from char_item.cpp:47:
    belt_inventory_helper.h:148:42: warning: no newline at end of file
    compile char_quickslot.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_resist.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_skill.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_state.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile PetSystem.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char_state.cpp:25:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile cmd.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from PetSystem.cpp:8:
    PetSystem.h:163:31: warning: no newline at end of file
    In file included from PetSystem.cpp:9:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    PetSystem.cpp:637:2: warning: no newline at end of file
    compile cmd_emotion.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile cmd_general.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    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 cmd_gm.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile cmd_oxevent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from cmd_general.cpp:36:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile config.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
    char_item.cpp:6446: warning: 'pBuff' may be used uninitialized in this function
    compile constants.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile crc32.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile cube.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile db.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile desc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile desc_client.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile desc_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile desc_p2p.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile dev_log.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile dungeon.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile empire_text_convert.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from desc_manager.cpp:15:
    ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
    compile entity.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile entity_view.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile event.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile event_queue.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile exchange.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile file_loader.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile fishing.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile gm.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile guild.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile guild_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile guild_war.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile horse_rider.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile horsename_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_auth.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_db.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_login.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from input_db.cpp:13:
    shop_manager.h:40:7: warning: no newline at end of file
    input_db.cpp:2731:2: warning: no newline at end of file
    compile input_main.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_p2p.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from input_main.cpp:16:
    shop_manager.h:40:7: warning: no newline at end of file
    In file included from input_main.cpp:44:
    belt_inventory_helper.h:148:42: warning: no newline at end of file
    compile input_teen.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_udp.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile ip_ban.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile item.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile item_addon.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile item_attribute.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from item.cpp:22:
    belt_inventory_helper.h:148:42: warning: no newline at end of file
    In file included from item.cpp:23:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    item.cpp:2094:2: warning: no newline at end of file
    compile item_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile item_manager_idrange.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from item_manager.cpp:21:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile locale.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile locale_service.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile log.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile login_data.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile lzo_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile marriage.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile matrix_card.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile messenger_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile mining.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile mob_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile monarch.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile motion.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    monarch.cpp:276:2: warning: no newline at end of file
    compile over9refine.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile p2p.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile packet_info.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile party.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile passpod.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile pcbang.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile polymorph.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile priv_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile pvp.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questevent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_affect.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_arena.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_ba.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_building.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_danceevent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_dungeon.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_forked.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_game.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_global.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_guild.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_horse.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_pet.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_item.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from questlua_pet.cpp:11:
    PetSystem.h:163:31: warning: no newline at end of file
    questlua_pet.cpp:170:2: warning: no newline at end of file
    compile questlua_marriage.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_mgmt.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_monarch.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_npc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    questlua_item.cpp: In function 'int quest::item_equip_selected(lua_State*)':
    questlua_item.cpp:602: warning: comparison is always false due to limited range of data type
    questlua_item.cpp:616: warning: comparison is always true due to limited range of data type
    compile questlua_oxevent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from questlua_npc.cpp:9:
    shop_manager.h:40:7: warning: no newline at end of file
    compile questlua_party.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_pc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    questlua_npc.cpp: In function 'int quest::npc_get_vid_attack_mul(lua_State*)':
    questlua_npc.cpp:379: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_set_vid_attack_mul(lua_State*)':
    questlua_npc.cpp:395: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_get_vid_damage_mul(lua_State*)':
    questlua_npc.cpp:410: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_set_vid_damage_mul(lua_State*)':
    questlua_npc.cpp:426: warning: unused variable 'q'
    compile questlua_quest.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_target.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questmanager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questnpc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questpc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile refine.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile regen.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile safebox.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile sectree.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile sectree_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile sequence.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile shop.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile skill.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile start_position.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile target.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile text_file_loader.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile trigger.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile utils.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from trigger.cpp:8:
    shop_manager.h:40:7: warning: no newline at end of file
    compile vector.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile war_map.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile wedding.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile xmas_event.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile panama.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile version.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile threeway_war.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile map_location.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile auth_brazil.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile BlueDragon.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile BlueDragon_Binder.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile DragonLair.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_dragonlair.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile HackShield.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile HackShield_Impl.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_hackshield.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile skill_power.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile affect.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile SpeedServer.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_speedserver.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile XTrapManager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile auction_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile FileMonitor_FreeBSD.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile ClientPackageCryptInfo.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    FileMonitor_FreeBSD.cpp:136:2: warning: no newline at end of file
    compile cipher.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from ClientPackageCryptInfo.cpp:2:
    ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
    compile buff_on_attributes.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile check_server.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    ../../../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'
    compile dragon_soul_table.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    ../../../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'
    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
    compile DragonSoul.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    buff_on_attributes.cpp: In member function 'void CBuffOnAttributes::ChangeBuffValue(BYTE)':
    buff_on_attributes.cpp:119: warning: unused variable 'old_value'
    buff_on_attributes.cpp:120: warning: unused variable 'new_value'
    In file included from dragon_soul_table.cpp:4:
    dragon_soul_table.h:74:7: warning: no newline at end of file
    compile group_text_parse_tree.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from DragonSoul.cpp:9:
    dragon_soul_table.h:74:7: warning: no newline at end of file
    compile char_dragonsoul.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_dragonsoul.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    DragonSoul.cpp: In member function 'bool DSManager::ExtractDragonHeart(CHARACTER*, CItem*, CItem*)':
    DragonSoul.cpp:353: warning: unused variable 'sum'
    DragonSoul.cpp: In member function 'bool DSManager::PullOut(CHARACTER*, TItemPos, CItem*&, CItem*)':
    DragonSoul.cpp:438: warning: unused variable 'dwVnum'
    DragonSoul.cpp: In member function 'bool DSManager::DoRefineGrade(CHARACTER*, TItemPos (&)[15])':
    DragonSoul.cpp:558: warning: unused variable 'prob_sum'
    DragonSoul.cpp: In member function 'bool DSManager::DoRefineStep(CHARACTER*, TItemPos (&)[15])':
    DragonSoul.cpp:766: warning: unused variable 'sum'
    char_dragonsoul.cpp:149:2: warning: no newline at end of file
    compile shop_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile shopEx.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from shop_manager.cpp:22:
    shop_manager.h:40:7: warning: no newline at end of file
    compile item_manager_read_tables.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile minilzo.c with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    item_manager_read_tables.cpp: In member function 'bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char*)':
    item_manager_read_tables.cpp:637: warning: unused variable 'pkGroup'
    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_r54250_32 with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686....
    linking ../game_r54250_striped with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686....
    OBJDIR/char.o: In function `std::vector<std::string, std::allocator<std::string> >::size() const':
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBlockListArray'
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBlockListArray'
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBannListArray'
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBannListArray'
    OBJDIR/cmd_gm.o: In function `do_reload(CHARACTER*, char const*, int, int)':
    /usr/src/mainline/Srcs/Server/game/src/cmd_gm.cpp:2156: undefined reference to `LoadBlockSpamList()'
    /usr/src/mainline/Srcs/Server/game/src/cmd_gm.cpp:2157: undefined reference to `LoadBannSpamList()'
    OBJDIR/char.o: In function `std::vector<std::string, std::allocator<std::string> >::size() const':
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBlockListArray'
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBlockListArray'
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBannListArray'
    /usr/include/c++/4.2/bits/stl_vector.h:408: undefined reference to `SpamBannListArray'
    OBJDIR/cmd_gm.o: In function `do_reload(CHARACTER*, char const*, int, int)':
    /usr/src/mainline/Srcs/Server/game/src/cmd_gm.cpp:2156: undefined reference to `LoadBlockSpamList()'
    /usr/src/mainline/Srcs/Server/game/src/cmd_gm.cpp:2157: undefined reference to `LoadBannSpamList()'
    OBJDIR/questlua.o: In function `quest::CQuestManager::InitializeLua()':
    /usr/src/mainline/Srcs/Server/game/src/questlua.cpp:474: undefined reference to `quest::RegisterUniqueFunctionTable()'
    /usr/src/mainline/Srcs/Server/game/src/questlua.cpp:476: undefined reference to `quest::RegistermysqlFunctionTable()'
    OBJDIR/questlua.o: In function `quest::CQuestManager::InitializeLua()':
    /usr/src/mainline/Srcs/Server/game/src/questlua.cpp:474: undefined reference to `quest::RegisterUniqueFunctionTable()'
    /usr/src/mainline/Srcs/Server/game/src/questlua.cpp:476: undefined reference to `quest::RegistermysqlFunctionTable()'
    OBJDIR/main.o: In function `main':
    /usr/src/mainline/Srcs/Server/game/src/main.cpp:453: undefined reference to `LoadBlockSpamList()'
    /usr/src/mainline/Srcs/Server/game/src/main.cpp:454: undefined reference to `LoadBannSpamList()'
    OBJDIR/main.o: In function `main':
    /usr/src/mainline/Srcs/Server/game/src/main.cpp:453: undefined reference to `LoadBlockSpamList()'
    /usr/src/mainline/Srcs/Server/game/src/main.cpp:454: undefined reference to `LoadBannSpamList()'
    gmake: *** [../game_r54250_32] Error 1
    gmake: *** Waiting for unfinished jobs....
    gmake: *** [../game_r54250_striped] Error 1
    root@host:/usr/src/mainline/Srcs/Server/game/src #
    root@host:/usr/src/mainline/Srcs/Server/game/src #
     
  11. the new error:

    root@host:/usr/src/mainline/Srcs/Server/game/src # gmake clean
    root@host:/usr/src/mainline/Srcs/Server/game/src # gmake -j20
    compile BattleArena.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile FSM.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile MarkConvert.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile MarkImage.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile MarkManager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile OXEvent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile TrafficProfiler.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile ani.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile arena.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile banword.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile battle.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile blend_item.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile block_country.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile buffer_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile building.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile castle.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_affect.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char.cpp:4:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from char.cpp:25:
    shop_manager.h:40:7: warning: no newline at end of file
    In file included from char.cpp:63:
    PetSystem.h:163:31: warning: no newline at end of file
    char.cpp:7363:124: warning: trigraph ??) ignored, use -trigraphs to enable
    char.cpp:7363:248: warning: trigraph ??) ignored, use -trigraphs to enable
    char.cpp:7363:278: warning: trigraph ??) ignored, use -trigraphs to enable
    compile char_battle.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_change_empire.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char_battle.cpp:27:
    shop_manager.h:40:7: warning: no newline at end of file
    compile char_horse.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_item.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char_horse.cpp:14:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile char_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char_item.cpp:44:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    In file included from char_item.cpp:47:
    belt_inventory_helper.h:148:42: warning: no newline at end of file
    compile char_quickslot.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_resist.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_skill.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_state.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile PetSystem.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from char_state.cpp:25:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile cmd.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from PetSystem.cpp:8:
    PetSystem.h:163:31: warning: no newline at end of file
    In file included from PetSystem.cpp:9:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    PetSystem.cpp:637:2: warning: no newline at end of file
    compile cmd_emotion.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile cmd_general.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    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 cmd_gm.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile cmd_oxevent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from cmd_general.cpp:36:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile config.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
    char_item.cpp:6446: warning: 'pBuff' may be used uninitialized in this function
    compile constants.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile crc32.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile cube.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile db.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile desc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile desc_client.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile desc_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile desc_p2p.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile dev_log.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile dungeon.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile empire_text_convert.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile entity.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from desc_manager.cpp:15:
    ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
    compile entity_view.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile event.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile event_queue.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile exchange.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile file_loader.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile fishing.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile gm.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile guild.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile guild_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile guild_war.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile horse_rider.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile horsename_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_auth.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_db.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_login.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from input_db.cpp:13:
    shop_manager.h:40:7: warning: no newline at end of file
    input_db.cpp:2731:2: warning: no newline at end of file
    compile input_main.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_p2p.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from input_main.cpp:16:
    shop_manager.h:40:7: warning: no newline at end of file
    In file included from input_main.cpp:44:
    belt_inventory_helper.h:148:42: warning: no newline at end of file
    compile input_teen.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile input_udp.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile ip_ban.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile item.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile item_addon.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from item.cpp:22:
    belt_inventory_helper.h:148:42: warning: no newline at end of file
    In file included from item.cpp:23:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    item.cpp:2094:2: warning: no newline at end of file
    compile item_attribute.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile item_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile item_manager_idrange.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile locale.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from item_manager.cpp:21:
    ../../common/VnumHelper.h:59:32: warning: no newline at end of file
    compile locale_service.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile log.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile login_data.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile lzo_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile marriage.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile matrix_card.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile messenger_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile mining.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile mob_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile monarch.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile motion.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    monarch.cpp:276:2: warning: no newline at end of file
    compile over9refine.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile p2p.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile packet_info.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile party.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile passpod.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile pcbang.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile polymorph.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile priv_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile pvp.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questevent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_affect.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_arena.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_ba.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_building.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_danceevent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_dungeon.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_forked.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_game.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_global.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_guild.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_horse.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_pet.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_item.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from questlua_pet.cpp:11:
    PetSystem.h:163:31: warning: no newline at end of file
    questlua_pet.cpp:170:2: warning: no newline at end of file
    compile questlua_marriage.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_mgmt.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_monarch.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_npc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    questlua_item.cpp: In function 'int quest::item_equip_selected(lua_State*)':
    questlua_item.cpp:602: warning: comparison is always false due to limited range of data type
    questlua_item.cpp:616: warning: comparison is always true due to limited range of data type
    compile questlua_oxevent.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from questlua_npc.cpp:9:
    shop_manager.h:40:7: warning: no newline at end of file
    compile questlua_party.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_pc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_quest.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    questlua_npc.cpp: In function 'int quest::npc_get_vid_attack_mul(lua_State*)':
    questlua_npc.cpp:379: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_set_vid_attack_mul(lua_State*)':
    questlua_npc.cpp:395: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_get_vid_damage_mul(lua_State*)':
    questlua_npc.cpp:410: warning: unused variable 'q'
    questlua_npc.cpp: In function 'int quest::npc_set_vid_damage_mul(lua_State*)':
    questlua_npc.cpp:426: warning: unused variable 'q'
    compile questlua_target.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questmanager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questnpc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questpc.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile refine.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile regen.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile safebox.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile sectree.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile sectree_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile sequence.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile shop.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile skill.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile start_position.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile target.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile text_file_loader.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile trigger.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile utils.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from trigger.cpp:8:
    shop_manager.h:40:7: warning: no newline at end of file
    compile vector.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile war_map.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile wedding.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile xmas_event.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile panama.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile version.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile threeway_war.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile map_location.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile auth_brazil.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile BlueDragon.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile BlueDragon_Binder.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile DragonLair.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_dragonlair.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile HackShield.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile HackShield_Impl.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile char_hackshield.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile skill_power.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile affect.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile SpeedServer.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile questlua_speedserver.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile XTrapManager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile auction_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile FileMonitor_FreeBSD.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile ClientPackageCryptInfo.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    FileMonitor_FreeBSD.cpp:136:2: warning: no newline at end of file
    compile cipher.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile buff_on_attributes.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from ClientPackageCryptInfo.cpp:2:
    ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
    compile dragon_soul_table.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile DragonSoul.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from dragon_soul_table.cpp:4:
    dragon_soul_table.h:74:7: warning: no newline at end of file
    compile group_text_parse_tree.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    buff_on_attributes.cpp: In member function 'void CBuffOnAttributes::ChangeBuffValue(BYTE)':
    buff_on_attributes.cpp:119: warning: unused variable 'old_value'
    buff_on_attributes.cpp:120: warning: unused variable 'new_value'
    In file included from DragonSoul.cpp:9:
    dragon_soul_table.h:74:7: warning: no newline at end of file
    compile char_dragonsoul.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    ../../../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 questlua_dragonsoul.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    char_dragonsoul.cpp:149:2: warning: no newline at end of file
    compile shop_manager.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    DragonSoul.cpp: In member function 'bool DSManager::ExtractDragonHeart(CHARACTER*, CItem*, CItem*)':
    DragonSoul.cpp:353: warning: unused variable 'sum'
    DragonSoul.cpp: In member function 'bool DSManager::PullOut(CHARACTER*, TItemPos, CItem*&, CItem*)':
    DragonSoul.cpp:438: warning: unused variable 'dwVnum'
    DragonSoul.cpp: In member function 'bool DSManager::DoRefineGrade(CHARACTER*, TItemPos (&)[15])':
    DragonSoul.cpp:558: warning: unused variable 'prob_sum'
    DragonSoul.cpp: In member function 'bool DSManager::DoRefineStep(CHARACTER*, TItemPos (&)[15])':
    DragonSoul.cpp:766: warning: unused variable 'sum'
    compile shopEx.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    In file included from shop_manager.cpp:22:
    shop_manager.h:40:7: warning: no newline at end of file
    compile item_manager_read_tables.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    compile spamblock.cpp with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    spamblock.cpp:53:2: warning: no newline at end of file
    compile minilzo.c with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686
    item_manager_read_tables.cpp: In member function 'bool ITEM_MANAGER::ReadMonsterDropItemGroup(const char*)':
    item_manager_read_tables.cpp:637: warning: unused variable 'pkGroup'
    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_r54250_32 with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686....
    linking ../game_r54250_striped with g++ -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG -mtune=i686 -mcpu=i686....
    OBJDIR/questlua.o: In function `quest::CQuestManager::InitializeLua()':
    /usr/src/mainline/Srcs/Server/game/src/questlua.cpp:474: undefined reference to `quest::RegisterUniqueFunctionTable()'
    /usr/src/mainline/Srcs/Server/game/src/questlua.cpp:476: undefined reference to `quest::RegistermysqlFunctionTable()'
    OBJDIR/questlua.o: In function `quest::CQuestManager::InitializeLua()':
    /usr/src/mainline/Srcs/Server/game/src/questlua.cpp:474: undefined reference to `quest::RegisterUniqueFunctionTable()'
    /usr/src/mainline/Srcs/Server/game/src/questlua.cpp:476: undefined reference to `quest::RegistermysqlFunctionTable()'
    gmake: *** [../game_r54250_32] Error 1
    gmake: *** Waiting for unfinished jobs....
    gmake: *** [../game_r54250_striped] Error 1
    root@host:/usr/src/mainline/Srcs/Server/game/src #
    
    

     

    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 cat ../version)
    SVN_VERSION = 54250
    #$(shell svnversion -n .)
     
    CC = g++
    CXX = 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_ 
     
    CFLAGS += -mtune=i686
    CFLAGS += -mcpu=i686
     
    # 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
    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
    #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
    LIBDIR += -L/usr/local/lib/mysql
    LIBS += -lmysqlclient -lz
    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
     
    CPPFILEx = questlua_item.cpp
     
    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 spamblock.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)/game_r$(SVN_VERSION)_striped
     
    default: $(TARGET) $(TEST_TARGET)
    @strip $(TEST_TARGET)
     
    $(OBJDIR)/minilzo.o: minilzo.c
    @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    @echo compile $< with $(CC) $(CFLAGS)
     
    $(OBJDIR)/version.o: version.cpp
    @$(CC) $(CFLAGS) -D__USER__="$(USER)" -D__HOSTNAME__="$(HOSTNAME)" -D__PWD__="$(PWD)" -D__SVN_VERSION__="$(SVN_VERSION)" -c $< -o $@
    @echo compile $< with $(CC) $(CFLAGS)
     
    #$(OBJDIR)/cipher.o: cipher.cpp
    # @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
    # @echo compile $< with $(CC) $(CFLAGS)
     
    $(OBJDIR)/%.o: %.cpp
    @echo compile $< with $(CC) $(CFLAGS)
    @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@
     
    $(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ)
    @echo linking $(TARGET) with $(CC) $(CFLAGS)....
    @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TARGET)
     
    $(TEST_TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ)
    @echo linking $(TEST_TARGET) with $(CC) $(CFLAGS)....
    @$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(TEST_TARGET)
     
    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
     

×
×
  • 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.