Jump to content

problem game source


Recommended Posts

hi guys please help me . 

i try to compile bestproduction v5 source game (1-120). when i put on freebsd 12 32 bit this error appears 

Spoiler

Makefile:47: warning: overriding recipe for target 'libserverkey'
Makefile:13: warning: ignoring old recipe for target 'libserverkey'
--------------------------------------
Full Build Start
--------------------------------------
gmake -C liblua clean
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/liblua'
cd include; gmake clean
gmake[2]: Entering directory '/usr/src/best_production_v5_src/Server/liblua/include'
gmake[2]: Nothing to be done for 'clean'.
gmake[2]: Leaving directory '/usr/src/best_production_v5_src/Server/liblua/include'
cd src; gmake clean
gmake[2]: Entering directory '/usr/src/best_production_v5_src/Server/liblua/src'
rm -f lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.o ../lib/liblua.a
gmake[2]: Leaving directory '/usr/src/best_production_v5_src/Server/liblua/src'
cd src/lib; gmake clean
gmake[2]: Entering directory '/usr/src/best_production_v5_src/Server/liblua/src/lib'
rm -f lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o ../../lib/liblualib.a
gmake[2]: Leaving directory '/usr/src/best_production_v5_src/Server/liblua/src/lib'
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/liblua'
gmake -C liblua
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/liblua'
cd include; gmake all
gmake[2]: Entering directory '/usr/src/best_production_v5_src/Server/liblua/include'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/usr/src/best_production_v5_src/Server/liblua/include'
cd src; gmake all
gmake[2]: Entering directory '/usr/src/best_production_v5_src/Server/liblua/src'
gcc -O2 -g -Wall -I../include      -c -o lapi.o lapi.c
gcc -O2 -g -Wall -I../include      -c -o lcode.o lcode.c
gcc -O2 -g -Wall -I../include      -c -o ldebug.o ldebug.c
gcc -O2 -g -Wall -I../include      -c -o ldo.o ldo.c
gcc -O2 -g -Wall -I../include      -c -o ldump.o ldump.c
gcc -O2 -g -Wall -I../include      -c -o lfunc.o lfunc.c
gcc -O2 -g -Wall -I../include      -c -o lgc.o lgc.c
gcc -O2 -g -Wall -I../include      -c -o llex.o llex.c
llex.c: In function 'read_string':
llex.c:285:7: warning: case label value is less than minimum value for type
       case EOZ:
       ^
gcc -O2 -g -Wall -I../include      -c -o lmem.o lmem.c
gcc -O2 -g -Wall -I../include      -c -o lobject.o lobject.c
gcc -O2 -g -Wall -I../include      -c -o lopcodes.o lopcodes.c
gcc -O2 -g -Wall -I../include      -c -o lparser.o lparser.c
gcc -O2 -g -Wall -I../include      -c -o lstate.o lstate.c
gcc -O2 -g -Wall -I../include      -c -o lstring.o lstring.c
gcc -O2 -g -Wall -I../include      -c -o ltable.o ltable.c
gcc -O2 -g -Wall -I../include      -c -o ltests.o ltests.c
gcc -O2 -g -Wall -I../include      -c -o ltm.o ltm.c
gcc -O2 -g -Wall -I../include      -c -o lundump.o lundump.c
gcc -O2 -g -Wall -I../include      -c -o lvm.o lvm.c
gcc -O2 -g -Wall -I../include      -c -o lzio.o lzio.c
if [ ! -d ../lib ]; then mkdir ; fi
ar rcu ../lib/liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.o
ranlib ../lib/liblua.a
gmake[2]: Leaving directory '/usr/src/best_production_v5_src/Server/liblua/src'
cd src/lib; gmake all
gmake[2]: Entering directory '/usr/src/best_production_v5_src/Server/liblua/src/lib'
gcc -O2 -g -Wall -I../../include         -c -o lauxlib.o lauxlib.c
gcc -O2 -g -Wall -I../../include         -c -o lbaselib.o lbaselib.c
gcc -O2 -g -Wall -I../../include         -c -o ldblib.o ldblib.c
gcc -O2 -g -Wall -I../../include         -c -o liolib.o liolib.c
liolib.c: In function 'g_iofile':
liolib.c:113:34: warning: value computed is not used [-Wunused-value]
 #define tofile(L,i) (tofileh(L,i)->f)
                                  ^
liolib.c:251:7: note: in expansion of macro 'tofile'
       tofile(L, 1);  /* check that it's a valid file handle */
       ^
liolib.c: In function 'f_lines':
liolib.c:113:34: warning: value computed is not used [-Wunused-value]
 #define tofile(L,i) (tofileh(L,i)->f)
                                  ^
liolib.c:286:3: note: in expansion of macro 'tofile'
   tofile(L, 1);  /* check that it's a valid file handle */
   ^
gcc -O2 -g -Wall -I../../include         -c -o lmathlib.o lmathlib.c
gcc -O2 -g -Wall -I../../include         -c -o ltablib.o ltablib.c
gcc -O2 -g -Wall -I../../include         -c -o lstrlib.o lstrlib.c
gcc -O2 -g -Wall -I../../include         -c -o loadlib.o loadlib.c
ar rcu ../../lib/liblualib.a lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o
ranlib ../../lib/liblualib.a
gmake[2]: Leaving directory '/usr/src/best_production_v5_src/Server/liblua/src/lib'
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/liblua'
gmake -C libsql dep
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/libsql'
touch Depend
g++49 -I../libmysql/5.x-5.1.35 -Wall -O2 -pipe -mcpu=i686 -D_THREAD_SAFE -fno-exceptions  -MM *.cpp > Depend
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/libsql'
gmake -C libsql clean
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/libsql'
rm -f *.o
rm -f ./libsql.a
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/libsql'
gmake -C libsql
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/libsql'
gmake ./libsql.a
gmake[2]: Entering directory '/usr/src/best_production_v5_src/Server/libsql'
g++49 -I../libmysql/5.x-5.1.35 -Wall -O2 -pipe -mcpu=i686 -D_THREAD_SAFE -fno-exceptions  -c AsyncSQL.cpp
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from AsyncSQL.cpp:8:0:
AsyncSQL.h: In constructor 'CAsyncSQL::CAsyncSQL()':
AsyncSQL.h:201:7: warning: 'CAsyncSQL::m_iCopiedQuery' will be initialized after [-Wreorder]
   int m_iCopiedQuery;
       ^
AsyncSQL.h:175:7: warning:   'int CAsyncSQL::m_iPort' [-Wreorder]
   int m_iPort;
       ^
AsyncSQL.cpp:19:1: warning:   when initialized here [-Wreorder]
 CAsyncSQL::CAsyncSQL()
 ^
g++49 -I../libmysql/5.x-5.1.35 -Wall -O2 -pipe -mcpu=i686 -D_THREAD_SAFE -fno-exceptions  -c Semaphore.cpp
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -I../libmysql/5.x-5.1.35 -Wall -O2 -pipe -mcpu=i686 -D_THREAD_SAFE -fno-exceptions  -c Tellwait.cpp
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -I../libmysql/5.x-5.1.35 -Wall -O2 -pipe -mcpu=i686 -D_THREAD_SAFE -fno-exceptions  -c Statement.cpp
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
ar cru ./libsql.a AsyncSQL.o Semaphore.o Tellwait.o Statement.o
ranlib ./libsql.a
chmod 700 ./libsql.a
gmake[2]: Leaving directory '/usr/src/best_production_v5_src/Server/libsql'
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/libsql'
gmake -C libgame/src dep
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/libgame/src'
touch Depend
g++49 -Wall -O2 -pipe -mcpu=i686 -fno-exceptions -I../include -MM *.cc > Depend
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/libgame/src'
gmake -C libgame/src clean
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/libgame/src'
rm -f *.o
rm -f ../lib/libgame.a
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/libgame/src'
gmake -C libgame/src
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/libgame/src'
gmake ../lib/libgame.a
gmake[2]: Entering directory '/usr/src/best_production_v5_src/Server/libgame/src'
g++49 -Wall -O2 -pipe -mcpu=i686 -fno-exceptions -I../include -c grid.cc
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -fno-exceptions -I../include -c attribute.cc
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -fno-exceptions -I../include -c targa.cc
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
if [ ! -d ../lib ]; then mkdir ../lib; fi
ar cru ../lib/libgame.a grid.o attribute.o targa.o
ranlib ../lib/libgame.a
chmod 700 ../lib/libgame.a
gmake[2]: Leaving directory '/usr/src/best_production_v5_src/Server/libgame/src'
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/libgame/src'
gmake -C libpoly dep
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/libpoly'
touch Depend
g++49 -Wall -O2 -pipe -mcpu=i686 -fno-exceptions -fno-rtti -MM *.cc > Depend
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/libpoly'
gmake -C libpoly clean
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/libpoly'
rm -f *.o
rm -f ./libpoly.a
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/libpoly'
gmake -C libpoly
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/libpoly'
gmake ./libpoly.a
gmake[2]: Entering directory '/usr/src/best_production_v5_src/Server/libpoly'
g++49 -Wall -O2 -pipe -mcpu=i686 -fno-exceptions -fno-rtti -c Base.cc
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -fno-exceptions -fno-rtti -c Poly.cc
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -fno-exceptions -fno-rtti -c SymTable.cc
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -fno-exceptions -fno-rtti -c Symbol.cc
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
ar cru ./libpoly.a Base.o Poly.o SymTable.o Symbol.o
ranlib ./libpoly.a
chmod 700 ./libpoly.a
gmake[2]: Leaving directory '/usr/src/best_production_v5_src/Server/libpoly'
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/libpoly'
gmake -C libthecore/src dep
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/libthecore/src'
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -MM *.c > Depend
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/libthecore/src'
gmake -C libthecore/src clean
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/libthecore/src'
rm -f *.o
rm -f ../lib/libthecore.a
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/libthecore/src'
gmake -C libthecore/src
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/libthecore/src'
gmake ../lib/libthecore.a
gmake[2]: Entering directory '/usr/src/best_production_v5_src/Server/libthecore/src'
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c socket.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c fdwatch.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from ../include/stdafx.h:95:0,
                 from fdwatch.c:2:
fdwatch.c: In function 'void fdwatch_clear_event(LPFDWATCH, socket_t, unsigned int)':
fdwatch.c:163:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     assert(event_idx < fdw->nfiles * 2);
                      ^
fdwatch.c:165:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (fdw->kqrevents[event_idx].ident != fd)
                                         ^
In file included from ../include/stdafx.h:95:0,
                 from fdwatch.c:2:
fdwatch.c: In function 'int fdwatch_check_event(LPFDWATCH, socket_t, unsigned int)':
fdwatch.c:173:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     assert(event_idx < fdw->nfiles * 2);
                      ^
fdwatch.c:175:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (fdw->kqrevents[event_idx].ident != fd)
                                         ^
In file included from ../include/stdafx.h:95:0,
                 from fdwatch.c:2:
fdwatch.c: In function 'int fdwatch_get_ident(LPFDWATCH, unsigned int)':
fdwatch.c:207:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     assert(event_idx < fdw->nfiles * 2);
                      ^
fdwatch.c: In function 'void* fdwatch_get_client_data(LPFDWATCH, unsigned int)':
fdwatch.c:225:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     assert(event_idx < fdw->nfiles * 2);
                      ^
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c buffer.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c signal.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c log.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c utils.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c kstbl.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c hangul.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
hangul.c: In function 'const char* first_han(const BYTE*)':
hangul.c:47:15: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
     char *p = "▒׿▒";
               ^
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c heart.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c main.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c tea.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c des.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from des.c:2:0:
DES_table.h:164:14: warning: 'KeyPerm' defined but not used [-Wunused-variable]
 static DWORD KeyPerm[8][64] =
              ^
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c gost.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++49 -Wall -O2 -pipe -mcpu=i686 -g -I../include -c memcpy.c
g++49: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
if [ ! -d ../lib ]; then mkdir ../lib; fi
ar cru ../lib/libthecore.a socket.o fdwatch.o buffer.o signal.o log.o utils.o kstbl.o hangul.o heart.o main.o tea.o des.o gost.o memcpy.o
ranlib ../lib/libthecore.a
chmod 700 ../lib/libthecore.a
gmake[2]: Leaving directory '/usr/src/best_production_v5_src/Server/libthecore/src'
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/libthecore/src'
gmake -C game/src dep
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/game/src'
makedepend -f Depend  -I../../../Extern/include/boost -I../../libdevil -I../../libmysql/7.x-5.1.35 -I../../../Extern/include -I../../liblua/include -I/usr/local/include -L/usr/local/lib/mysql -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -pOBJDIR/ 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_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 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 TempleOchao.cpp questlua_TempleOchao.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 BlueDragon.cpp BlueDragon_Binder.cpp DragonLair.cpp questlua_dragonlair.cpp skill_power.cpp affect.cpp SpeedServer.cpp questlua_speedserver.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 item_combination.cpp shop_manager.cpp shopEx.cpp item_manager_read_tables.cpp bank.cpp New_PetSystem.cpp questlua_petnew.cpp questlua_mysql.cpp char_cards.cpp title.cpp ronark_system.cpp char_gaya.cpp new_events.cpp questlua_new_events.cpp MeleyLair.cpp questlua_MeleyLair.cpp offline_shop.cpp offlineshop_manager.cpp questlua_support.cpp SupportSystem.cpp biolog.cpp localization.cpp char_keyboard.cpp user_control.cpp reborn.cpp combat_zone.cpp auto_event_manager.cpp AutoNotice.cpp game_events.cpp event_manager.cpp minilzo.c main.cpp  2> /dev/null > Depend
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/game/src'
gmake -C game/src clean
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/game/src'
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/game/src'
gmake -C game/src limit_time
gmake[1]: Entering directory '/usr/src/best_production_v5_src/Server/game/src'
gmake[1]: *** No rule to make target 'limit_time'.  Stop.
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/game/src'
gmake: *** [Makefile:90: all] Error 2

so i open make file 

Spoiler

CC=gcc49
CXX=g++49

PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)

default: libthecore libpoly libgame liblua libsql libserverkey game db
    @echo "--------------------------------------"
    @echo "Build Done"
    @echo "--------------------------------------"

libserverkey: .
    @touch $@/Depend
    $(MAKE) -C $@ dep
    $(MAKE) -C $@ clean
    $(MAKE) -C $@

liblua: .
    $(MAKE) -C $@ clean
    $(MAKE) -C $@

libsql: .
    @touch $@/Depend
    $(MAKE) -C $@ dep
    $(MAKE) -C $@ clean
    $(MAKE) -C $@

libgame: .
    @touch $@/src/Depend
    $(MAKE) -C $@/src dep
    $(MAKE) -C $@/src clean
    $(MAKE) -C $@/src

libpoly: .
    @touch $@/Depend
    $(MAKE) -C $@ dep
    $(MAKE) -C $@ clean
    $(MAKE) -C $@ 

libthecore: .
    @touch $@/src/Depend
    $(MAKE) -C $@/src dep
    $(MAKE) -C $@/src clean
    $(MAKE) -C $@/src

libserverkey: .
    @touch $@/Depend
    $(MAKE) -C $@ dep
    $(MAKE) -C $@ clean
    $(MAKE) -C $@

game: .
    @touch $@/src/Depend
    $(MAKE) -C $@/src dep
    $(MAKE) -C $@/src clean
    $(MAKE) -C $@/src limit_time
#    $(MAKE) -C $@/src

db: .
    @touch $@/src/Depend
    $(MAKE) -C $@/src dep
    $(MAKE) -C $@/src clean
#    $(MAKE) -C $@/src

all: 
    @echo "--------------------------------------"
    @echo "Full Build Start"
    @echo "--------------------------------------"

    $(MAKE) -C liblua clean
    $(MAKE) -C liblua

    @touch libsql/Depend
    $(MAKE) -C libsql dep
    $(MAKE) -C libsql clean
    $(MAKE) -C libsql

    @touch libgame/src/Depend
    $(MAKE) -C libgame/src dep
    $(MAKE) -C libgame/src clean
    $(MAKE) -C libgame/src

    @touch libpoly/Depend
    $(MAKE) -C libpoly dep
    $(MAKE) -C libpoly clean
    $(MAKE) -C libpoly 

    @touch libthecore/src/Depend
    $(MAKE) -C libthecore/src dep
    $(MAKE) -C libthecore/src clean
    $(MAKE) -C libthecore/src

    @touch game/src/Depend
    $(MAKE) -C game/src dep
    $(MAKE) -C game/src clean
    $(MAKE) -C game/src limit_time
#    $(MAKE) -C game/src

    @touch db/src/Depend
    $(MAKE) -C db/src dep
    $(MAKE) -C db/src clean
#    $(MAKE) -C db/src

    @echo "--------------------------------------"
    @echo "Full Build End"
    @echo "--------------------------------------"
 

and comment limit_time and no comment other so new make file 

Spoiler

CC=gcc49
CXX=g++49

PLATFORM = $(shell file /bin/ls | cut -d' ' -f3 | cut -d'-' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)

default: libthecore libpoly libgame liblua libsql libserverkey game db
    @echo "--------------------------------------"
    @echo "Build Done"
    @echo "--------------------------------------"

libserverkey: .
    @touch $@/Depend
    $(MAKE) -C $@ dep
    $(MAKE) -C $@ clean
    $(MAKE) -C $@

liblua: .
    $(MAKE) -C $@ clean
    $(MAKE) -C $@

libsql: .
    @touch $@/Depend
    $(MAKE) -C $@ dep
    $(MAKE) -C $@ clean
    $(MAKE) -C $@

libgame: .
    @touch $@/src/Depend
    $(MAKE) -C $@/src dep
    $(MAKE) -C $@/src clean
    $(MAKE) -C $@/src

libpoly: .
    @touch $@/Depend
    $(MAKE) -C $@ dep
    $(MAKE) -C $@ clean
    $(MAKE) -C $@ 

libthecore: .
    @touch $@/src/Depend
    $(MAKE) -C $@/src dep
    $(MAKE) -C $@/src clean
    $(MAKE) -C $@/src

libserverkey: .
    @touch $@/Depend
    $(MAKE) -C $@ dep
    $(MAKE) -C $@ clean
    $(MAKE) -C $@

game: .
    @touch $@/src/Depend
    $(MAKE) -C $@/src dep
    $(MAKE) -C $@/src clean
#    $(MAKE) -C $@/src limit_time
    $(MAKE) -C $@/src

db: .
    @touch $@/src/Depend
    $(MAKE) -C $@/src dep
    $(MAKE) -C $@/src clean
    $(MAKE) -C $@/src

all: 
    @echo "--------------------------------------"
    @echo "Full Build Start"
    @echo "--------------------------------------"

    $(MAKE) -C liblua clean
    $(MAKE) -C liblua

    @touch libsql/Depend
    $(MAKE) -C libsql dep
    $(MAKE) -C libsql clean
    $(MAKE) -C libsql

    @touch libgame/src/Depend
    $(MAKE) -C libgame/src dep
    $(MAKE) -C libgame/src clean
    $(MAKE) -C libgame/src

    @touch libpoly/Depend
    $(MAKE) -C libpoly dep
    $(MAKE) -C libpoly clean
    $(MAKE) -C libpoly 

    @touch libthecore/src/Depend
    $(MAKE) -C libthecore/src dep
    $(MAKE) -C libthecore/src clean
    $(MAKE) -C libthecore/src

    @touch game/src/Depend
    $(MAKE) -C game/src dep
    $(MAKE) -C game/src clean
#    $(MAKE) -C game/src limit_time
    $(MAKE) -C game/src

    @touch db/src/Depend
    $(MAKE) -C db/src dep
    $(MAKE) -C db/src clean
    $(MAKE) -C db/src

    @echo "--------------------------------------"
    @echo "Full Build End"
    @echo "--------------------------------------"
 

now game build start but no work . there is an error on db build 

error of source db is 

Spoiler

---- Compile basarili bir sekilde tamamlandi. ----
---- BEST PRODUCTION DB: /usr/game/share/bin/db.... uzantisina gonderildi
-------------------------------------------------
/usr/local/bin/ld: .obj/Main.o: in function `main':
/usr/src/best_production_v5_src/Server/db/src/Main.cpp:70: undefined reference to `_malloc_options'
collect2: error: ld returned 1 exit status
gmake[1]: *** [Makefile:47: /usr/game/share/bin/db] Error 1
gmake[1]: Leaving directory '/usr/src/best_production_v5_src/Server/db/src'
gmake: *** [Makefile:94: all] Error 2
 

p.s. gcc49 installed 

if sameone want to add me on discord to help me anto1990

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

i try it , with game no problem but when i compile db there is an error 


/usr/local/bin/ld: .obj/Main.o: in function `main':
/usr/src/best_production_v5_src/Server/db/src/Main.cpp:70: undefined reference to `_malloc_options'
collect2: error: ld returned 1 exit status
gmake: *** [Makefile:47: /usr/game/share/bin/db] Error 1
 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

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