antiblock
Rodnia | Alpha & Omega
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
мαя¢σs ๖ۣۣۜDaniel

Erro Ao Compilar Game

Question

Bom dia comunidade, estou com um problema ao compilar a source do game está-me a dar o seguinte erro, como não tenho muita experiência nisto, queria expor meu erro e caso alguem me pode-se ajudar agradecia..

Erro:

 

 

root@marcos:~ # cd /usr/src

root@marcos:/usr/src # gmake all
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/liblua'
cd include; gmake clean
gmake[2]: Entering directory '/usr/src/liblua/include'
gmake[2]: Nothing to be done for 'clean'.
gmake[2]: Leaving directory '/usr/src/liblua/include'
cd src; gmake clean
gmake[2]: Entering directory '/usr/src/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/liblua/src'
cd src/lib; gmake clean
gmake[2]: Entering directory '/usr/src/liblua/src/lib'
rm -f lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o load                                                                                        lib.o ../../lib/liblualib.a
gmake[2]: Leaving directory '/usr/src/liblua/src/lib'
gmake[1]: Leaving directory '/usr/src/liblua'
gmake -C liblua
gmake[1]: Entering directory '/usr/src/liblua'
cd include; gmake all
gmake[2]: Entering directory '/usr/src/liblua/include'
gmake[2]: Nothing to be done for 'all'.
gmake[2]: Leaving directory '/usr/src/liblua/include'
cd src; gmake all
gmake[2]: Entering directory '/usr/src/liblua/src'
gcc -O2 -g -Wall -I../include      -c -o lapi.o lapi.c
gcc -O2 -g -Wall -I../include      -c -o lcode.o lcode.c
gcc -O2 -g -Wall -I../include      -c -o ldebug.o ldebug.c
gcc -O2 -g -Wall -I../include      -c -o ldo.o ldo.c
gcc -O2 -g -Wall -I../include      -c -o ldump.o ldump.c
gcc -O2 -g -Wall -I../include      -c -o lfunc.o lfunc.c
gcc -O2 -g -Wall -I../include      -c -o lgc.o lgc.c
gcc -O2 -g -Wall -I../include      -c -o llex.o llex.c
llex.c: In function 'read_string':
llex.c:285: warning: case label value is less than minimum value for type
gcc -O2 -g -Wall -I../include      -c -o lmem.o lmem.c
gcc -O2 -g -Wall -I../include      -c -o lobject.o lobject.c
gcc -O2 -g -Wall -I../include      -c -o lopcodes.o lopcodes.c
gcc -O2 -g -Wall -I../include      -c -o lparser.o lparser.c
gcc -O2 -g -Wall -I../include      -c -o lstate.o lstate.c
gcc -O2 -g -Wall -I../include      -c -o lstring.o lstring.c
gcc -O2 -g -Wall -I../include      -c -o ltable.o ltable.c
gcc -O2 -g -Wall -I../include      -c -o ltests.o ltests.c
gcc -O2 -g -Wall -I../include      -c -o ltm.o ltm.c
gcc -O2 -g -Wall -I../include      -c -o lundump.o lundump.c
gcc -O2 -g -Wall -I../include      -c -o lvm.o lvm.c
gcc -O2 -g -Wall -I../include      -c -o lzio.o lzio.c
if [ ! -d ../lib ]; then mkdir ; fi
ar rcu ../lib/liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltests.o ltm.o lundump.o lvm.o lzio.o
ranlib ../lib/liblua.a
gmake[2]: Leaving directory '/usr/src/liblua/src'
cd src/lib; gmake all
gmake[2]: Entering directory '/usr/src/liblua/src/lib'
gcc -O2 -g -Wall -I../../include         -c -o lauxlib.o lauxlib.c
gcc -O2 -g -Wall -I../../include         -c -o lbaselib.o lbaselib.c
gcc -O2 -g -Wall -I../../include         -c -o ldblib.o ldblib.c
gcc -O2 -g -Wall -I../../include         -c -o liolib.o liolib.c
liolib.c: In function 'g_iofile':
liolib.c:251: warning: value computed is not used
liolib.c: In function 'f_lines':
liolib.c:286: warning: value computed is not used
gcc -O2 -g -Wall -I../../include         -c -o lmathlib.o lmathlib.c
gcc -O2 -g -Wall -I../../include         -c -o ltablib.o ltablib.c
gcc -O2 -g -Wall -I../../include         -c -o lstrlib.o lstrlib.c
gcc -O2 -g -Wall -I../../include         -c -o loadlib.o loadlib.c
ar rcu ../../lib/liblualib.a lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o
ranlib ../../lib/liblualib.a
gmake[2]: Leaving directory '/usr/src/liblua/src/lib'
gmake[1]: Leaving directory '/usr/src/liblua'
gmake -C libsql dep
gmake[1]: Entering directory '/usr/src/libsql'
touch Depend
g++ -I../libmysql/7.x-5.1.35 -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -MM *.cpp > Depend
gmake[1]: Leaving directory '/usr/src/libsql'
gmake -C libsql clean
gmake[1]: Entering directory '/usr/src/libsql'
rm -f *.o
rm -f ./libsql.a
gmake[1]: Leaving directory '/usr/src/libsql'
gmake -C libsql
gmake[1]: Entering directory '/usr/src/libsql'
gmake ./libsql.a
gmake[2]: Entering directory '/usr/src/libsql'
g++ -I../libmysql/7.x-5.1.35 -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c AsyncSQL.cpp
AsyncSQL.h: In constructor 'CAsyncSQL::CAsyncSQL()':
AsyncSQL.h:201: warning: 'CAsyncSQL::m_iCopiedQuery' will be initialized after
AsyncSQL.h:175: warning:   'int CAsyncSQL::m_iPort'
AsyncSQL.cpp:19: warning:   when initialized here
g++ -I../libmysql/7.x-5.1.35 -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c Semaphore.cpp
g++ -I../libmysql/7.x-5.1.35 -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c Tellwait.cpp
g++ -I../libmysql/7.x-5.1.35 -Wall -O2 -pipe -mtune=i686 -D_THREAD_SAFE -fno-exceptions  -c Statement.cpp
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/libsql'
gmake[1]: Leaving directory '/usr/src/libsql'
gmake -C libgame/src dep
gmake[1]: Entering directory '/usr/src/libgame/src'
touch Depend
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -I../include -MM *.cc > Depend
gmake[1]: Leaving directory '/usr/src/libgame/src'
gmake -C libgame/src clean
gmake[1]: Entering directory '/usr/src/libgame/src'
rm -f *.o
rm -f ../lib/libgame.a
gmake[1]: Leaving directory '/usr/src/libgame/src'
gmake -C libgame/src
gmake[1]: Entering directory '/usr/src/libgame/src'
gmake ../lib/libgame.a
gmake[2]: Entering directory '/usr/src/libgame/src'
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -I../include -c grid.cc
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -I../include -c attribute.cc
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -I../include -c targa.cc
if [ ! -d ../lib ]; then mkdir ../lib; fi
ar cru ../lib/libgame.a grid.o attribute.o targa.o
ranlib ../lib/libgame.a
chmod 700 ../lib/libgame.a
gmake[2]: Leaving directory '/usr/src/libgame/src'
gmake[1]: Leaving directory '/usr/src/libgame/src'
gmake -C libpoly dep
gmake[1]: Entering directory '/usr/src/libpoly'
touch Depend
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -fno-rtti -MM *.cc > Depend
gmake[1]: Leaving directory '/usr/src/libpoly'
gmake -C libpoly clean
gmake[1]: Entering directory '/usr/src/libpoly'
rm -f *.o
rm -f ./libpoly.a
gmake[1]: Leaving directory '/usr/src/libpoly'
gmake -C libpoly
gmake[1]: Entering directory '/usr/src/libpoly'
gmake ./libpoly.a
gmake[2]: Entering directory '/usr/src/libpoly'
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -fno-rtti -c Base.cc
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -fno-rtti -c Poly.cc
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -fno-rtti -c SymTable.cc
g++ -Wall -O2 -pipe -mtune=i686 -fno-exceptions -fno-rtti -c Symbol.cc
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/libpoly'
gmake[1]: Leaving directory '/usr/src/libpoly'
gmake -C libthecore/src dep
gmake[1]: Entering directory '/usr/src/libthecore/src'
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -MM *.c > Depend
gmake[1]: Leaving directory '/usr/src/libthecore/src'
gmake -C libthecore/src clean
gmake[1]: Entering directory '/usr/src/libthecore/src'
rm -f *.o
rm -f ../lib/libthecore.a
gmake[1]: Leaving directory '/usr/src/libthecore/src'
gmake -C libthecore/src
gmake[1]: Entering directory '/usr/src/libthecore/src'
gmake ../lib/libthecore.a
gmake[2]: Entering directory '/usr/src/libthecore/src'
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c socket.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c fdwatch.c
fdwatch.c: In function 'void fdwatch_clear_event(fdwatch*, socket_t, unsigned int)':
fdwatch.c:163: warning: comparison between signed and unsigned integer expressions
fdwatch.c:165: warning: comparison between signed and unsigned integer expressions
fdwatch.c: In function 'int fdwatch_check_event(fdwatch*, socket_t, unsigned int)':
fdwatch.c:173: warning: comparison between signed and unsigned integer expressions
fdwatch.c:175: warning: comparison between signed and unsigned integer expressions
fdwatch.c: In function 'int fdwatch_get_ident(fdwatch*, unsigned int)':
fdwatch.c:207: warning: comparison between signed and unsigned integer expressions
fdwatch.c: In function 'void* fdwatch_get_client_data(fdwatch*, unsigned int)':
fdwatch.c:225: warning: comparison between signed and unsigned integer expressions
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c buffer.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c signal.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c log.c
log.c: In function 'void _sys_err(const char*, int, const char*, ...)':
log.c:129: warning: format '%d' expects type 'int', but argument 5 has type 'suseconds_t'
log.c:129: warning: format '%d' expects type 'int', but argument 5 has type 'suseconds_t'
log.c:117: warning: unused variable 'nMiliSec'
log.c: In function 'void sys_log(unsigned int, const char*, ...)':
log.c:214: warning: format '%d' expects type 'int', but argument 4 has type 'suseconds_t'
log.c:200: warning: unused variable 'nMiliSec'
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c utils.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c kstbl.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c hangul.c
hangul.c: In function 'const char* first_han(const BYTE*)':
hangul.c:47: warning: deprecated conversion from string constant to 'char*'
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c heart.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c main.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c tea.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c des.c
DES_table.h:164: warning: 'KeyPerm' defined but not used
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c gost.c
g++ -Wall -O2 -pipe -mtune=i686 -g -I../include -c memcpy.c
if [ ! -d ../lib ]; then mkdir ../lib; fi
ar cru ../lib/libthecore.a socket.o fdwatch.o buffer.o signal.o log.o utils.o 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/libthecore/src'
gmake[1]: Leaving directory '/usr/src/libthecore/src'
gmake -C game/src dep
gmake[1]: Entering directory '/usr/src/game/src'
makedepend -f Depend  -I../../../Extern/include/boost -I../../libdevil -I../../libmysql/7.x-5.1.35 -I../../../Extern/include -I../../libhackshield/include -I../../libxtrap/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_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_mysql.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 minilzo.c main.cpp test.cpp 2> /dev/null > Depend
Makefile:149: recipe for target 'dep' failed
gmake[1]: *** [dep] Error 127
gmake[1]: Leaving directory '/usr/src/game/src'
Makefile:66: recipe for target 'all' failed
gmake: *** [all] Error 2
 

 

Share this post


Link to post
Share on other sites

7 answers to this question

  • 0

"Erro ao compilar game"

Não sei porque é que metes-te esse titulo, se estás a compilar as slns inteiras, dont get it...

 

Se o teu aim é realmente compilar somente o game(não vejo o porque que compilas as libs se não mudaste alguma coisa referente as mesmas), então compila na dir do game, ai não vai aparecer erros porque isso é um ready-to-go makefile, ou seja, compilar para distribuir tecnicamente.

 

Cumprimentos.

Share this post


Link to post
Share on other sites
antiblock
https://arwen2.global/
  • 0

"Erro ao compilar game"

Não sei porque é que metes-te esse titulo, se estás a compilar as slns inteiras, dont get it...

 

Se o teu aim é realmente compilar somente o game(não vejo o porque que compilas as libs se não mudaste alguma coisa referente as mesmas), então compila na dir do game, ai não vai aparecer erros porque isso é um ready-to-go makefile, ou seja, compilar para distribuir tecnicamente.

 

Cumprimentos.

Como expliquei não tenho experiência como vocês têm, se soube-se tudo não estava aqui a postar minha dúvida, mas já agora obrigado, fiquei a saber uma coisa nova! 

Share this post


Link to post
Share on other sites
  • 0

Não uses o comando 'gmake all' mas sim o 'gmake -j20' para compilares o game.

Share this post


Link to post
Share on other sites
  • 0

Errado. Não uses o gmake -j20.  Quem refere isso nem deve saber o que a opção j faz

 

Utiliza apenas o gmake normal, para compilar os ficheiros um a um, sendo assim muito mais fácil identificar erros nos ficheiros. 

 

Quando estiver num computador já te resolvo isso rapidamente.

Share this post


Link to post
Share on other sites
  • 0

Errado. Não uses o gmake -j20.  Quem refere isso nem deve saber o que a opção j faz

 

Utiliza apenas o gmake normal, para compilar os ficheiros um a um, sendo assim muito mais fácil identificar erros nos ficheiros. 

 

Quando estiver num computador já te resolvo isso rapidamente.

 

 

If the ‘-j’ option is followed by an integer, this is the number of recipes to execute at once; this is called the number of job slots. If there is nothing looking like an integer after the ‘-j’ option, there is no limit on the number of job slots. The default number of job slots is one, which means serial execution (one thing at a time).

 

Os erros serão identificados de qualquer forma.

No entanto, não deixo de concordar contigo que será mais fácil dessa forma, mas será mais lento.

 

Ele é que escolhe: eficiência ou rapidez no trabalho.

 

 

OFF: Sei que deves ter generalizado sobre isso do 'quem refere isso nem deve saber o que a opção faz', mas eu não faço/sugiro coisas que não sei o propósito delas.

Share this post


Link to post
Share on other sites
  • 0

Não era dirigido a ti, apenas referi porque vejo noutros tópicos a falarem disso é não sabem o que fazem.

 

O que disse e específico neste caso, pois já deu para entender que ele é iniciante.

 

Para acelerar mais basta modificar a maneira como compilas, não tens de fazer clean antes(provavelmente deverá estar assim saidodo kraizy.tgz)

Share this post


Link to post
Share on other sites
  • 0

Errado. Não uses o gmake -j20.  Quem refere isso nem deve saber o que a opção j faz

 

Utiliza apenas o gmake normal, para compilar os ficheiros um a um, sendo assim muito mais fácil identificar erros nos ficheiros. 

 

Quando estiver num computador já te resolvo isso rapidamente.

 

Estás a usar o valor de j a 20?

Os especialistas recomendam que o valor de j deva ser o Numero de Cores do Processador * 2.

Ou seja, num típico processador com 4 cores o valor de j seria 8.

Leste num certo sitio a usarem gmake -j 20 e agora andas a recomendar sem te sequer informares.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this