Jump to content

How To compile Metin2 Server Source on FreeBSD ?


Denis

Recommended Posts

g++: directory": No such file or directory
<command-line>: warning: missing terminating " character
In file included from BattleArena.cpp:6:
char.h:733: error: integer constant is too large for 'long' type
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from BattleArena.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
g++: directory": No such file or directory
g++: directory": No such file or directory
<command-line>: warning: missing terminating " character
<command-line>: warning: missing terminating " character
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from MarkConvert.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
g++: directory": No such file or directory
<command-line>: warning: missing terminating " character
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from MarkImage.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
g++: directory": No such file or directory
gmake: *** [OBJDIR/MarkConvert.o] Error 1
gmake: *** Waiting for unfinished jobs....
gmake: *** [OBJDIR/FSM.o] Error 1
<command-line>: warning: missing terminating " character
gmake: *** [OBJDIR/BattleArena.o] Error 1
gmake: *** [OBJDIR/MarkImage.o] Error 1
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from MarkManager.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
gmake: *** [OBJDIR/MarkManager.o] Error 1

Link to comment
Share on other sites

To fix the error

g++: directory": No such file or directory

Do this:

open the Makefile in the game/src

 

find this:

SVN_VERSION = $(shell svnversion -n .)

and do this:

SVN_VERSION = 123456

find this:

$(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 $<

and replace with this:

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

Then open the file game/src/version.cpp

 

and replace the whole file with this:

#include <stdio.h>

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

	if (fp)
	{
		fprintf(fp, "game revision: 123456n");
		fclose(fp);
	}
#endif
}
  • Love 4
Link to comment
Share on other sites

Thanks but:

root@:/usr/src/novaline/Srcs/Server/game/src # gmake -j20
gmake: Warning: File `Makefile' has modification time 7185 s in the future
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile blend_item.cpp
compile battle.cpp
compile block_country.cpp
compile castle.cpp
compile char_change_empire.cpp
compile arena.cpp
compile banword.cpp
compile char_affect.cpp
compile char.cpp
compile buffer_manager.cpp
compile char_battle.cpp
compile building.cpp
compile char_horse.cpp
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from buffer_manager.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigne                                      d int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigne                                      d int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigne                                      d int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsign                                      ed int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsign                                      ed int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsign                                      ed int') as first parameter
In file included from cipher.h:6,
                 from desc.h:7,
                 from char_battle.cpp:4:
../../../Extern/include/cryptopp/cryptlib.h:96: error: integer constant is too large for 'long' type
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from block_country.cpp:10:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from TrafficProfiler.cpp:10:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from MarkImage.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from cipher.h:6,
                 from desc.h:7,
                 from battle.cpp:4:
../../../Extern/include/cryptopp/cryptlib.h:96: error: integer constant is too large for 'long' type
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from MarkConvert.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from cipher.h:6,
                 from desc.h:7,
                 from arena.cpp:5:
../../../Extern/include/cryptopp/cryptlib.h:96: error: integer constant is too large for 'long' type
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from blend_item.cpp:10:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from MarkManager.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from battle.h:4,
                 from char_battle.cpp:10:
char.h:733: error: integer constant is too large for 'long' type
In file included from char_battle.cpp:27:
shop_manager.h:40:7: warning: no newline at end of file
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from char_battle.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from BattleArena.cpp:6:
char.h:733: error: integer constant is too large for 'long' type
In file included from char_change_empire.cpp:4:
char.h:733: error: integer constant is too large for 'long' type
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from BattleArena.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from char_change_empire.cpp:2:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from castle.cpp:21:
char.h:733: error: integer constant is too large for 'long' type
gmake: *** [OBJDIR/buffer_manager.o] Error 1
gmake: *** Waiting for unfinished jobs....
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from castle.cpp:12:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from battle.cpp:5:
char.h:733: error: integer constant is too large for 'long' type
In file included from ani.cpp:11:
char.h:733: error: integer constant is too large for 'long' type
In file included from char_affect.cpp:5:
char.h:733: error: integer constant is too large for 'long' type
In file included from cipher.h:6,
                 from desc.h:7,
                 from desc_client.h:4,
                 from char_affect.cpp:10:
../../../Extern/include/cryptopp/cryptlib.h:96: error: integer constant is too large for 'long' type
In file included from char_horse.cpp:3:
char.h:733: error: integer constant is too large for 'long' type
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from char_affect.cpp:2:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from ani.cpp:10:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from battle.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from char_horse.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from arena.cpp:9:
char.h:733: error: integer constant is too large for 'long' type
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from arena.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from banword.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
gmake: *** [OBJDIR/block_country.o] Error 1
In file included from char.cpp:6:
char.h:733: error: integer constant is too large for 'long' type
In file included from building.cpp:8:
char.h:733: error: integer constant is too large for 'long' type
In file included from cipher.h:6,
                 from desc.h:7,
                 from desc_client.h:4,
                 from char.cpp:12:
../../../Extern/include/cryptopp/cryptlib.h:96: error: integer constant is too large for 'long' type
In file included from cipher.h:6,
                 from desc.h:7,
                 from building.cpp:12:
../../../Extern/include/cryptopp/cryptlib.h:96: error: integer constant is too large for 'long' type
In file included from char.cpp:25:
shop_manager.h:40:7: warning: no newline at end of file
In file included from OXEvent.cpp:9:
char.h:733: error: integer constant is too large for 'long' type
In file included from cipher.h:6,
                 from desc.h:7,
                 from OXEvent.cpp:12:
../../../Extern/include/cryptopp/cryptlib.h:96: error: integer constant is too large for 'long' type
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from building.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
gmake: *** [OBJDIR/MarkManager.o] Error 1
In file included from cipher.h:6,
                 from desc.h:7,
                 from desc_client.h:4,
                 from char_affect.cpp:10:
../../../Extern/include/cryptopp/cryptlib.h:96: warning: large integer implicitly truncated to unsigned type
gmake: *** [OBJDIR/char_affect.o] Error 1
gmake: *** [OBJDIR/MarkConvert.o] Error 1
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from OXEvent.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
gmake: *** [OBJDIR/blend_item.o] Error 1
gmake: *** [OBJDIR/ani.o] Error 1
In file included from char.cpp:62:
PetSystem.h:163:31: warning: no newline at end of file
In file included from cipher.h:6,
                 from desc.h:7,
                 from arena.cpp:5:
../../../Extern/include/cryptopp/cryptlib.h:96: warning: large integer implicitly truncated to unsigned type
gmake: *** [OBJDIR/MarkImage.o] Error 1
In file included from cipher.h:6,
                 from desc.h:7,
                 from char_battle.cpp:4:
../../../Extern/include/cryptopp/cryptlib.h:96: warning: large integer implicitly truncated to unsigned type
char.cpp:7234: warning: this decimal constant is unsigned only in ISO C90
char.cpp:7242:2: warning: no newline at end of file
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from char.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
gmake: *** [OBJDIR/TrafficProfiler.o] Error 1
In file included from cipher.h:6,
                 from desc.h:7,
                 from building.cpp:12:
../../../Extern/include/cryptopp/cryptlib.h:96: warning: large integer implicitly truncated to unsigned type
gmake: *** [OBJDIR/char_change_empire.o] Error 1
banword.cpp: In member function 'bool CBanwordManager::Initialize(TBanwordTable*, WORD)':
banword.cpp:24: warning: format '%zu' expects type 'size_t', but argument 4 has type 'size_t'
gmake: *** [OBJDIR/banword.o] Error 1
gmake: *** [OBJDIR/building.o] Error 1
gmake: *** [OBJDIR/castle.o] Error 1
In file included from cipher.h:6,
                 from desc.h:7,
                 from battle.cpp:4:
../../../Extern/include/cryptopp/cryptlib.h:96: warning: large integer implicitly truncated to unsigned type
In file included from cipher.h:6,
                 from desc.h:7,
                 from OXEvent.cpp:12:
../../../Extern/include/cryptopp/cryptlib.h:96: warning: large integer implicitly truncated to unsigned type
OXEvent.cpp: In member function 'void COXEventManager::WarpToAudience()':
OXEvent.cpp:375: warning: overflow in implicit constant conversion
OXEvent.cpp:376: warning: overflow in implicit constant conversion
OXEvent.cpp:377: warning: overflow in implicit constant conversion
OXEvent.cpp:378: warning: overflow in implicit constant conversion
OXEvent.cpp:379: warning: overflow in implicit constant conversion
arena.cpp: In function 'long int ready_to_start_event(LPEVENT, long int)':
arena.cpp:327: warning: overflow in implicit constant conversion
arena.cpp:328: warning: overflow in implicit constant conversion
In file included from cipher.h:6,
                 from desc.h:7,
                 from desc_client.h:4,
                 from char.cpp:12:
../../../Extern/include/cryptopp/cryptlib.h:96: warning: large integer implicitly truncated to unsigned type
gmake: *** [OBJDIR/arena.o] Error 1
gmake: *** [OBJDIR/battle.o] Error 1
gmake: *** [OBJDIR/OXEvent.o] Error 1
gmake: *** [OBJDIR/BattleArena.o] Error 1
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3079: warning: comparison between signed and unsigned integer expressions
char.cpp: In member function 'void<unnamed>::FuncCheckWarp::operator()(CEntity*)':
char.cpp:6422: warning: overflow in implicit constant conversion
gmake: *** [OBJDIR/char.o] Error 1
gmake: *** [OBJDIR/char_horse.o] Error 1
gmake: *** [OBJDIR/char_battle.o] Error 1
root@:/usr/src/novaline/Srcs/Server/game/src #
Link to comment
Share on other sites

I have this Error: 


gmake: *** [OBJDIR/FSM.o] Error 1
gmake: *** Waiting for unfinished jobs....
<command-line>: warning: missing terminating " character
In file included from debug_allocator.h:5,
                 from stdafx.h:7,
                 from MarkConvert.cpp:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter
gmake: *** [OBJDIR/BattleArena.o] Error 1
gmake: *** [OBJDIR/MarkConvert.o] Error 1
Link to comment
Share on other sites

  • 2 weeks later...

Please help :(

 

 

 
root@host:~ # cd /usr/src/novaline/Server/db/src
/usr/src/novaline/Server/db/src: No such file or directory.
root@host:~ # cd /usr/src/novaline/Srcs/Server/db/src
root@host:/usr/src/novaline/Srcs/Server/db/src # gmake clean
svn: E155007: '/usr/src/novaline/Srcs/Server/db/src' is not a working copy
svn: E155007: '/usr/src/novaline/Srcs/Server/db/src' is not a working copy
root@host:/usr/src/novaline/Srcs/Server/db/src # gmake -j20
svn: E155007: '/usr/src/novaline/Srcs/Server/db/src' is not a working copy
svn: E155007: '/usr/src/novaline/Srcs/Server/db/src' is not a working copy
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
DBManager.cpp: In member function 'void CDBManager::SetLocale(const char*)':
DBManager.cpp:172: error: 'class CAsyncSQL' has no member named 'SetLocale'
DBManager.cpp:173: error: 'class CAsyncSQL' has no member named 'SetLocale'
DBManager.cpp:174: error: 'class CAsyncSQL' has no member named 'SetLocale'
compile ClientManagerLogin.cpp
gmake: *** [.obj/DBManager.o] Error 1
gmake: *** Waiting for unfinished jobs....
ClientManagerPlayer.cpp: In member function 'char* CClientManager::GetCommand(ch                                                          ar*)':
ClientManagerPlayer.cpp:433: warning: address of local variable 'command' return                                                          ed
root@host:/usr/src/novaline/Srcs/Server/db/src #
 
Link to comment
Share on other sites

Can you help me?

compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
compile MarkImage.cpp
compile MarkManager.cpp
compile OXEvent.cpp
compile TrafficProfiler.cpp
compile ani.cpp
compile arena.cpp
compile banword.cpp
compile battle.cpp
compile blend_item.cpp
compile block_country.cpp
compile buffer_manager.cpp
compile building.cpp
compile castle.cpp
compile char.cpp
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:62:
PetSystem.h:163:31: warning: no newline at end of file
char.cpp:7234: warning: this decimal constant is unsigned only in ISO C90
char.cpp:7242:2: warning: no newline at end of file
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3079: warning: comparison between signed and unsigned integer expressions
compile char_affect.cpp
compile char_battle.cpp
In file included from char_battle.cpp:27:
shop_manager.h:40:7: warning: no newline at end of file
compile char_change_empire.cpp
compile char_horse.cpp
compile char_item.cpp
In file included from char_item.cpp:47:
belt_inventory_helper.h:108:42: warning: no newline at end of file
In file included from char_item.cpp:47:
belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:642: warning: comparison is always false due to limited range of data type
char_item.cpp:668: warning: comparison is always false due to limited range of data type
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2389: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2393: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2405: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2409: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2436: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2444: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5156: warning: unused variable 'wDestCell'
char_item.cpp:5157: warning: unused variable 'bDestInven'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6131: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
char_item.cpp:6195: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
char_item.cpp:6207: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
char_item.cpp:7391: warning: unused variable 'itemType'
char_item.cpp:7392: warning: unused variable 'itemSubType'
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:681: warning: control reaches end of non-void function
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6242: warning: 'pBuff' may be used uninitialized in this function
compile char_manager.cpp
compile char_quickslot.cpp
compile char_resist.cpp
compile char_skill.cpp
compile char_state.cpp
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
compile PetSystem.cpp
In file included from PetSystem.cpp:8:
PetSystem.h:163:31: warning: no newline at end of file
PetSystem.cpp:637:2: warning: no newline at end of file
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.cpp
compile cmd_emotion.cpp
compile cmd_general.cpp
compile cmd_gm.cpp
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3926: warning: NULL used in arithmetic
cmd_gm.cpp:3968: warning: 'n' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4348: warning: 'cell' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:852: warning: 'x' may be used uninitialized in this function
cmd_gm.cpp:852: warning: 'y' may be used uninitialized in this function
compile cmd_oxevent.cpp
compile config.cpp
config.cpp: In function 'void config_init(const std::string&)':
config.cpp:453: warning: NULL used in arithmetic
config.cpp:477: warning: NULL used in arithmetic
config.cpp:501: warning: NULL used in arithmetic
config.cpp:523: warning: unused variable 'line'
compile constants.cpp
constants.cpp:291: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:292: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:293: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:294: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:295: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:296: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:297: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:298: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:299: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:300: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:301: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:302: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:303: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:304: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:305: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:306: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:307: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:308: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:309: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:310: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:311: warning: this decimal constant is unsigned only in ISO C90
compile crc32.cpp
compile cube.cpp
cube.cpp: In function 'bool Cube_make(CHARACTER*)':
cube.cpp:544: warning: comparison between signed and unsigned integer expressions
cube.cpp: In function 'void Cube_MakeCubeInformationText()':
cube.cpp:716: warning: unused variable 'npcVNUM'
cube.cpp: In function 'void Cube_InformationInitialize()':
cube.cpp:783: warning: comparison between signed and unsigned integer expressions
compile db.cpp
compile desc.cpp
compile desc_client.cpp
desc_client.cpp: In member function 'void CLIENT_DESC::UpdateChannelStatus(DWORD, bool)':
desc_client.cpp:299: warning: comparison between signed and unsigned integer expressions
compile desc_manager.cpp
In file included from desc_manager.cpp:15:
ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
compile desc_p2p.cpp
compile dev_log.cpp
compile dungeon.cpp
compile empire_text_convert.cpp
compile entity.cpp
compile entity_view.cpp
compile event.cpp
compile event_queue.cpp
compile exchange.cpp
compile file_loader.cpp
compile fishing.cpp
compile gm.cpp
compile guild.cpp
compile guild_manager.cpp
compile guild_war.cpp
compile horse_rider.cpp
compile horsename_manager.cpp
compile input.cpp
compile input_auth.cpp
input_auth.cpp: In member function 'int CInputAuth::auth_OpenID(const char*, const char*, char*)':
input_auth.cpp:465: warning: unused variable 'last'
compile input_db.cpp
In file included from input_db.cpp:13:
shop_manager.h:40:7: warning: no newline at end of file
input_db.cpp:2723:2: warning: no newline at end of file
compile input_login.cpp
compile input_main.cpp
In file included from input_main.cpp:16:
shop_manager.h:40:7: warning: no newline at end of file
input_main.cpp: In member function 'int CInputMain::Chat(CHARACTER*, const char*, size_t)':
input_main.cpp:704: warning: unused variable 'len'
input_main.cpp:706: warning: unused variable 'len'
input_main.cpp: In function 'int ProcessTextTag(CHARACTER*, const char*, size_t)':
input_main.cpp:252: warning: 'nPrismCount' may be used uninitialized in this function
input_main.cpp: In member function 'int CInputMain::Chat(CHARACTER*, const char*, size_t)':
input_main.cpp:720: warning: 'len' is used uninitialized in this function
compile input_p2p.cpp
compile input_teen.cpp
compile input_udp.cpp
compile ip_ban.cpp
compile item.cpp
In file included from item.cpp:22:
belt_inventory_helper.h:108:42: warning: no newline at end of file
item.cpp:2084:2: warning: no newline at end of file
In file included from item.cpp:22:
belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
item.h: In constructor 'CItem::CItem(DWORD)':
item.h:286: warning: 'CItem::m_pkRealTimeExpireEvent' will be initialized after
item.h:283: warning:   'LPEVENT CItem::m_pkExpireEvent'
item.cpp:25: warning:   when initialized here
item.cpp: In function 'const bool CanPutIntoRing(CItem*, CItem*)':
item.cpp:1725: warning: unused variable 'vnum'
item.cpp: In member function 'bool CItem::CanPutInto(CItem*)':
item.cpp:1758: warning: comparison between signed and unsigned integer expressions
item.cpp: In member function 'int CItem::GiveMoreTime_Per(float)':
item.cpp:2014: warning: comparison between signed and unsigned integer expressions
item.cpp:2016: warning: comparison between signed and unsigned integer expressions
item.cpp: In member function 'int CItem::GiveMoreTime_Fix(DWORD)':
item.cpp:2038: warning: comparison between signed and unsigned integer expressions
item.cpp: In member function 'int CItem::GetDuration()':
item.cpp:2069: warning: array subscript has type 'char'
compile item_addon.cpp
compile item_attribute.cpp
compile item_manager.cpp
item_manager.cpp: In member function 'TItemTable* ITEM_MANAGER::GetTable(DWORD)':
item_manager.cpp:612: warning: comparison between signed and unsigned integer expressions
compile item_manager_idrange.cpp
compile locale.cpp
compile locale_service.cpp
compile log.cpp
compile login_data.cpp
compile lzo_manager.cpp
compile marriage.cpp
compile matrix_card.cpp
compile messenger_manager.cpp
compile mining.cpp
compile mob_manager.cpp
compile monarch.cpp
monarch.cpp:276:2: warning: no newline at end of file
compile motion.cpp
compile over9refine.cpp
compile p2p.cpp
p2p.cpp:286:2: warning: no newline at end of file
compile packet_info.cpp
compile party.cpp
party.cpp:1737:2: warning: no newline at end of file
compile passpod.cpp
compile pcbang.cpp
compile polymorph.cpp
compile priv_manager.cpp
compile pvp.cpp
compile questevent.cpp
compile questlua.cpp
questlua.cpp: In member function 'bool quest::FPartyCheckFlagLt::operator()(CHARACTER*)':
questlua.cpp:78: warning: 'returnBool' may be used uninitialized in this function
compile questlua_affect.cpp
compile questlua_arena.cpp
compile questlua_ba.cpp
compile questlua_building.cpp
compile questlua_danceevent.cpp
compile questlua_dungeon.cpp
compile questlua_forked.cpp
compile questlua_game.cpp
compile questlua_global.cpp
compile questlua_guild.cpp
compile questlua_horse.cpp
compile questlua_pet.cpp
In file included from questlua_pet.cpp:11:
PetSystem.h:163:31: warning: no newline at end of file
questlua_pet.cpp:157:2: warning: no newline at end of file
compile questlua_item.cpp
compile questlua_marriage.cpp
compile questlua_mgmt.cpp
compile questlua_monarch.cpp
compile questlua_npc.cpp
In file included from questlua_npc.cpp:9:
shop_manager.h:40:7: warning: no newline at end of file
questlua_npc.cpp: In function 'int quest::npc_get_vid_attack_mul(lua_State*)':
questlua_npc.cpp:293: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_set_vid_attack_mul(lua_State*)':
questlua_npc.cpp:309: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_get_vid_damage_mul(lua_State*)':
questlua_npc.cpp:324: warning: unused variable 'q'
questlua_npc.cpp: In function 'int quest::npc_set_vid_damage_mul(lua_State*)':
questlua_npc.cpp:340: warning: unused variable 'q'
compile questlua_oxevent.cpp
compile questlua_party.cpp
compile questlua_pc.cpp
compile questlua_quest.cpp
compile questlua_target.cpp
compile questmanager.cpp
compile questnpc.cpp
questnpc.cpp: In member function 'bool quest::NPC::HandleEvent(quest::PC&, int)':
questnpc.cpp:500: warning: unused variable 'pPC'
compile questpc.cpp
compile refine.cpp
compile regen.cpp
compile safebox.cpp
compile sectree.cpp
compile sectree_manager.cpp
compile sequence.cpp
compile shop.cpp
shop.cpp:595:2: warning: no newline at end of file
shop.cpp: In member function 'virtual bool CShop::IsSellingItem(DWORD)':
shop.cpp:586: warning: comparison between signed and unsigned integer expressions
compile skill.cpp
compile start_position.cpp
compile target.cpp
compile text_file_loader.cpp
compile trigger.cpp
In file included from trigger.cpp:8:
shop_manager.h:40:7: warning: no newline at end of file
compile utils.cpp
utils.cpp: In function 'bool WildCaseCmp(const char*, const char*)':
utils.cpp:244: warning: NULL used in arithmetic
utils.cpp:256: warning: NULL used in arithmetic
utils.cpp:270: warning: NULL used in arithmetic
compile vector.cpp
vector.cpp:14:2: warning: no newline at end of file
compile war_map.cpp
compile wedding.cpp
compile xmas_event.cpp
compile version.cpp
compile panama.cpp
compile threeway_war.cpp
compile map_location.cpp
compile auth_brazil.cpp
compile BlueDragon.cpp
compile BlueDragon_Binder.cpp
compile DragonLair.cpp
compile questlua_dragonlair.cpp
compile HackShield.cpp
compile HackShield_Impl.cpp
compile char_hackshield.cpp
compile skill_power.cpp
compile affect.cpp
compile SpeedServer.cpp
compile questlua_speedserver.cpp
compile XTrapManager.cpp
compile auction_manager.cpp
compile FileMonitor_FreeBSD.cpp
FileMonitor_FreeBSD.cpp:136:2: warning: no newline at end of file
compile ClientPackageCryptInfo.cpp
In file included from ClientPackageCryptInfo.cpp:2:
ClientPackageCryptInfo.h:117:41: warning: no newline at end of file
ClientPackageCryptInfo.h: In constructor 'CClientPackageCryptInfo::CClientPackageCryptInfo()':
ClientPackageCryptInfo.h:50: warning: 'CClientPackageCryptInfo::m_pSerializedCryptKeyStream' will be initialized after
ClientPackageCryptInfo.h:48: warning:   'int CClientPackageCryptInfo::m_nCryptKeyPackageCnt'
ClientPackageCryptInfo.cpp:9: warning:   when initialized here
compile cipher.cpp
compile buff_on_attributes.cpp
buff_on_attributes.cpp: In member function 'void CBuffOnAttributes::ChangeBuffValue(BYTE)':
buff_on_attributes.cpp:112: warning: unused variable 'old_value'
buff_on_attributes.cpp:113: warning: unused variable 'new_value'
compile dragon_soul_table.cpp
In file included from dragon_soul_table.cpp:4:
dragon_soul_table.h:74:7: warning: no newline at end of file
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::ReadAdditionalApplys()':
dragon_soul_table.cpp:223: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckApplyNumSettings()':
dragon_soul_table.cpp:283: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckWeightTables()':
dragon_soul_table.cpp:311: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineGradeTables()':
dragon_soul_table.cpp:343: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp:372: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineStepTables()':
dragon_soul_table.cpp:397: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp:427: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckRefineStrengthTables()':
dragon_soul_table.cpp:453: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckDragonHeartExtTables()':
dragon_soul_table.cpp:494: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp:513: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp:522: warning: comparison between signed and unsigned integer expressions
dragon_soul_table.cpp: In member function 'bool DragonSoulTable::CheckDragonSoulExtTables()':
dragon_soul_table.cpp:545: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = std::string]':
dragon_soul_table.cpp:129:   instantiated from here
group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = BYTE]':
dragon_soul_table.cpp:134:   instantiated from here
group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = int]':
dragon_soul_table.cpp:201:   instantiated from here
group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(const std::string&, T&) const [with T = float]':
dragon_soul_table.cpp:260:   instantiated from here
group_text_parse_tree.h:220: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = float]':
dragon_soul_table.cpp:828:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = int]':
group_text_parse_tree.h:159:   instantiated from 'bool CGroupNode::GetValue(const std::string&, const std::string&, T&) const [with T = int]'
group_text_parse_tree.h:203:   instantiated from 'bool CGroupNode::GetGroupValue(const std::string&, const std::string&, const std::string&, T&) const [with T = int]'
dragon_soul_table.cpp:612:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned int]':
group_text_parse_tree.h:159:   instantiated from 'bool CGroupNode::GetValue(const std::string&, const std::string&, T&) const [with T = unsigned int]'
group_text_parse_tree.h:203:   instantiated from 'bool CGroupNode::GetGroupValue(const std::string&, const std::string&, const std::string&, T&) const [with T = unsigned int]'
dragon_soul_table.cpp:884:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
compile DragonSoul.cpp
In file included from DragonSoul.cpp:9:
dragon_soul_table.h:74:7: warning: no newline at end of file
DragonSoul.cpp: In function 'int Gamble(std::vector<float, std::allocator<float> >&)':
DragonSoul.cpp:19: warning: comparison between signed and unsigned integer expressions
DragonSoul.cpp:25: warning: comparison between signed and unsigned integer expressions
DragonSoul.cpp: In member function 'bool DSManager::RefreshItemAttributes(CItem*)':
DragonSoul.cpp:203: warning: comparison between signed and unsigned integer expressions
DragonSoul.cpp: In member function 'bool DSManager::PutAttributes(CItem*)':
DragonSoul.cpp:273: warning: comparison between signed and unsigned integer expressions
DragonSoul.cpp: In member function 'bool DSManager::ExtractDragonHeart(CHARACTER*, CItem*, CItem*)':
DragonSoul.cpp:350: warning: unused variable 'sum'
DragonSoul.cpp: In member function 'bool DSManager::PullOut(CHARACTER*, TItemPos, CItem*&, CItem*)':
DragonSoul.cpp:435: warning: unused variable 'dwVnum'
DragonSoul.cpp:469: warning: format '%d' expects type 'int', but argument 3 has type 'double'
DragonSoul.cpp:469: warning: format '%d' expects type 'int', but argument 4 has type 'double'
DragonSoul.cpp: In member function 'bool DSManager::DoRefineGrade(CHARACTER*, TItemPos (&)[15])':
DragonSoul.cpp:555: warning: unused variable 'prob_sum'
DragonSoul.cpp: In member function 'bool DSManager::DoRefineStep(CHARACTER*, TItemPos (&)[15])':
DragonSoul.cpp:763: warning: unused variable 'sum'
compile group_text_parse_tree.cpp
group_text_parse_tree.h: In constructor 'CGroupTextParseTreeLoader::CGroupTextParseTreeLoader()':
group_text_parse_tree.h:93: warning: 'CGroupTextParseTreeLoader::m_dwcurLineIndex' will be initialized after
group_text_parse_tree.h:91: warning:   'CGroupNode* CGroupTextParseTreeLoader::m_pRootGroupNode'
group_text_parse_tree.cpp:5: warning:   when initialized here
group_text_parse_tree.cpp: In member function 'bool CGroupTextParseTreeLoader::LoadGroup(CGroupNode*)':
group_text_parse_tree.cpp:99: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.cpp: In member function 'bool CGroupNode::GetRow(int, const CGroupNode::CGroupNodeRow**) const':
group_text_parse_tree.cpp:206: warning: comparison between signed and unsigned integer expressions
compile char_dragonsoul.cpp
char_dragonsoul.cpp:143:2: warning: no newline at end of file
char_dragonsoul.cpp: In member function 'bool CHARACTER::DragonSoul_ActivateDeck(int)':
char_dragonsoul.cpp:91: warning: control reaches end of non-void function
compile questlua_dragonsoul.cpp
compile shop_manager.cpp
In file included from shop_manager.cpp:22:
shop_manager.h:40:7: warning: no newline at end of file
shop_manager.cpp: In function 'bool ConvertToShopItemTable(CGroupNode*, TShopTableEx&)':
shop_manager.cpp:473: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned int]':
group_text_parse_tree.h:175:   instantiated from 'bool CGroupNode::GetValue(const std::string&, int, T&) const [with T = DWORD]'
shop_manager.cpp:381:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = std::basic_string<char, std::char_traits<char>, std::allocator<char> >]':
group_text_parse_tree.h:175:   instantiated from 'bool CGroupNode::GetValue(const std::string&, int, T&) const [with T = std::string]'
shop_manager.cpp:387:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
group_text_parse_tree.h: In member function 'bool CGroupNode::CGroupNodeRow::GetValue(int, T&) const [with T = unsigned char]':
group_text_parse_tree.h:136:   instantiated from 'bool CGroupNode::GetValue(size_t, const std::string&, T&) const [with T = BYTE]'
shop_manager.cpp:442:   instantiated from here
group_text_parse_tree.h:228: warning: comparison between signed and unsigned integer expressions
compile shopEx.cpp
shopEx.cpp: In member function 'virtual int CShopEx::Buy(CHARACTER*, BYTE)':
shopEx.cpp:159: warning: comparison between signed and unsigned integer expressions
compile item_manager_read_tables.cpp
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
compile shutdown_manager.cpp
shutdown_manager.cpp:173:2: warning: no newline at end of file
shutdown_manager.cpp: In member function 'int CShutdownManager::SearchDesc(DESC*)':
shutdown_manager.cpp:90: warning: comparison between signed and unsigned integer expressions
compile minilzo.c
compile main.cpp
In file included from main.cpp:14:
shop_manager.h:40:7: warning: no newline at end of file
linking ../game_r_32....
OBJDIR/version.o(.text+0x0): In function `WriteVersion()':
/usr/src/novaline/Server/game/src/version.cpp:3: multiple definition of `WriteVersion()'
OBJDIR/vector.o(.text+0x0):/usr/src/novaline/Server/game/src/vector.cpp:3: first defined here
/usr/bin/ld: Warning: size of symbol `_Z12WriteVersionv' changed from 105 in OBJDIR/vector.o to 97 in OBJDIR/version.o
OBJDIR/char.o(.text+0x2790): In function `CHARACTER::SetRotationToXY(long, long)':
/usr/src/novaline/Server/game/src/char.cpp:2577: undefined reference to `GetDegreeFromPositionXY(long, long, long, long)'
OBJDIR/char.o(.text+0x9b0c): In function `CHARACTER::fishing()':
/usr/src/novaline/Server/game/src/char.cpp:4040: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char.o(.text+0xbc38): In function `CHARACTER::Follow(CHARACTER*, float)':
/usr/src/novaline/Server/game/src/char.cpp:5522: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char.o(.text+0xbdfc):/usr/src/novaline/Server/game/src/char.cpp:5446: undefined reference to `GetDegreeFromPositionXY(long, long, long, long)'
OBJDIR/char.o(.text+0xbe08):/usr/src/novaline/Server/game/src/char.cpp:5446: undefined reference to `GetDegreeDelta(float, float)'
OBJDIR/char.o(.text+0xbeff):/usr/src/novaline/Server/game/src/char.cpp:5493: undefined reference to `GetDegreeFromPositionXY(long, long, long, long)'
OBJDIR/char.o(.text+0xbf69):/usr/src/novaline/Server/game/src/char.cpp:5500: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char.o(.text+0xc08e):/usr/src/novaline/Server/game/src/char.cpp:5498: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char.o(.text+0xc0ea):/usr/src/novaline/Server/game/src/char.cpp:5461: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char_battle.o(.text+0x8e5d): In function `CHARACTER::PullMonster()':
/usr/src/novaline/Server/game/src/char_battle.cpp:3477: undefined reference to `GetDegreeFromPositionXY(long, long, long, long)'
OBJDIR/char_battle.o(.text+0x8e7d):/usr/src/novaline/Server/game/src/char_battle.cpp:3481: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char_horse.o(.text+0x7b3): In function `CHARACTER::HorseSummon(bool, bool, unsigned int, char const*)':
/usr/src/novaline/Server/game/src/char_horse.cpp:250: undefined reference to `GetDegreeFromPositionXY(long, long, long, long)'
OBJDIR/char_horse.o(.text+0x7e9):/usr/src/novaline/Server/game/src/char_horse.cpp:251: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char_item.o(.text+0x9fde): In function `CHARACTER::UseItemEx(CItem*, SItemPos)':
/usr/src/novaline/Server/game/src/char_item.cpp:1764: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char_item.o(.text+0xe399):/usr/src/novaline/Server/game/src/char_item.cpp:2860: undefined reference to `GetDegreeFromPositionXY(long, long, long, long)'
OBJDIR/char_item.o(.text+0x12091):/usr/src/novaline/Server/game/src/char_item.cpp:2926: undefined reference to `GetDegreeFromPositionXY(long, long, long, long)'
OBJDIR/char_skill.o(.text+0x808a): In function `CHARACTER::UseMobSkill(unsigned int)':
/usr/src/novaline/Server/game/src/char_skill.cpp:2954: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char_skill.o(.gnu.linkonce.t._ZN16FuncSplashDamageclEP7CEntity+0xe47): In function `FuncSplashDamage::operator()(CEntity*)':
/usr/src/novaline/Server/game/src/char_skill.cpp:1467: undefined reference to `GetDegreeFromPositionXY(long, long, long, long)'
OBJDIR/char_skill.o(.gnu.linkonce.t._ZN16FuncSplashDamageclEP7CEntity+0xe7d):/usr/src/novaline/Server/game/src/char_skill.cpp:2693: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char_skill.o(.gnu.linkonce.t._ZN16FuncSplashDamageclEP7CEntity+0x15c9):/usr/src/novaline/Server/game/src/char_skill.cpp:1195: undefined reference to `GetDegreeDelta(float, float)'
OBJDIR/char_state.o(.text+0x5f3): In function `CHARACTER::CowardEscape()':
/usr/src/novaline/Server/game/src/char_state.cpp:293: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char_state.o(.text+0x1259): In function `CHARACTER::StateHorse()':
/usr/src/novaline/Server/game/src/char_state.cpp:1217: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char_state.o(.text+0x17f7): In function `CHARACTER::StateBattle()':
/usr/src/novaline/Server/game/src/char_state.cpp:969: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char_state.o(.text+0x18d1):/usr/src/novaline/Server/game/src/char_state.cpp:981: undefined reference to `GetDegreeFromPosition(float, float)'
OBJDIR/char_state.o(.text+0x24d2): In function `CHARACTER::StateMove()':
/usr/src/novaline/Server/game/src/char_state.cpp:855: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char_state.o(.text+0x251e):/usr/src/novaline/Server/game/src/char_state.cpp:858: undefined reference to `GetDegreeFromPositionXY(long, long, long, long)'
OBJDIR/char_state.o(.text+0x28a4): In function `CHARACTER::__StateIdle_Monster()':
/usr/src/novaline/Server/game/src/char_state.cpp:711: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/char_state.o(.text+0x30f7): In function `CHARACTER::__StateIdle_NPC()':
/usr/src/novaline/Server/game/src/char_state.cpp:602: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/PetSystem.o(.text+0x5b8): In function `CPetActor::Follow(float)':
/usr/src/novaline/Server/game/src/PetSystem.cpp:345: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/cmd_gm.o(.text+0x2625): In function `do_b4(CHARACTER*, char const*, int, int)':
/usr/src/novaline/Server/game/src/cmd_gm.cpp:1885: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/cmd_gm.o(.text+0x2728):/usr/src/novaline/Server/game/src/cmd_gm.cpp:1902: undefined reference to `GetDeltaByDegree(float, float, float*, float*)'
OBJDIR/cmd_gm.o(.text+0x2dd5):/usr/src/novaline/Server/game/src/cmd_gm.cpp:1816: more undefined references to `GetDeltaByDegree(float, float, float*, float*)' follow
OBJDIR/BlueDragon.o(.gnu.linkonce.t._ZN16FSkillEarthQuakeclEP7CEntity+0x4fd): In function `UseBlueDragonSkill(CHARACTER*, unsigned int)':
/usr/src/novaline/Server/game/src/BlueDragon_Skill.h:285: undefined reference to `Normalize(SVector*, SVector*)'
gmake: *** [../game_r_32] Error 1
root@Localhost:/usr/src/novaline/Server/game/src #

My makefile

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

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

CC = g++

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

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

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

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

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

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

LIBS += -lmysqlclient -lz

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

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

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

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

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

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

CFILE	= minilzo.c

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


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

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

default: $(TARGET) $(TEST_TARGET)

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

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

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

$(TARGET): $(CPPOBJS) $(COBJS) $(MAINOBJ)
	@echo linking $(TARGET)....
	@$(CC) $(CFLAGS) $(LIBDIR) $(COBJS) $(CPPOBJS) $(MAINOBJ) $(LIBS) -o $(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
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  • Bronze

i have compiled db from novaline, but this dont work

 

i cant login in the client, and when i check the syserr in server i saw this:

 

SYSERR: Jul 13 22:28:55 :: socket_connect: HOST 127.0.0.1:15000, could not connect.

 

sorry for my english.....

 

If there isn't critical error like this in your syserr file, change your db port after try again.

 

Best Regards

Ellie

Do not be sorry, be better.

Link to comment
Share on other sites

like i said in first post i just compile the db, i just want change somethings in the db file, then i try first compile them without any change.

 

i try compile from mainline but i have some errors and a frind tell me to complie from novaline because is best for FreeBSD, i dont know if that is true or not, but he tell me and i try....

Link to comment
Share on other sites

  • Premium
gmake: *** No rule to make target `/usr/include/c++/4.2/cstdlib', needed by `OBJDIR/BattleArena.o'.  Stop.
 
 
Help ?
 
 
And now
 
 
root@srv:/usr/src/novaline/Srcs/Server/game/src # gmake -j20
compile BattleArena.cpp
compile FSM.cpp
compile MarkConvert.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkImage.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile MarkManager.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
compile OXEvent.cpp
g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
In file included from FSM.cpp:4:0:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
compile TrafficProfiler.cpp
gmake: *** [OBJDIR/FSM.o] Error 1
gmake: g++: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
*** Waiting for unfinished jobs....
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkImage.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkManager.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from MarkConvert.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from TrafficProfiler.cpp:10:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
gmake: *** [OBJDIR/MarkImage.o] Error 1
gmake: *** [OBJDIR/MarkConvert.o] Error 1
gmake: *** [OBJDIR/TrafficProfiler.o] Error 1
gmake: *** [OBJDIR/MarkManager.o] Error 1
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from OXEvent.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from debug_allocator.h:4:0,
                 from stdafx.h:7,
                 from BattleArena.cpp:1:
/usr/local/lib/gcc48/include/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
   inline __int128
          ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from questmanager.h:4,
                 from OXEvent.cpp:4:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
In file included from ../../../Extern/include/boost/limits.hpp:19:0,
                 from ../../../Extern/include/boost/functional/hash/detail/limits.hpp:16,
                 from ../../../Extern/include/boost/functional/hash/detail/hash_float.hpp:15,
                 from ../../../Extern/include/boost/functional/hash/hash.hpp:15,
                 from ../../../Extern/include/boost/functional/hash.hpp:6,
                 from ../../../Extern/include/boost/unordered/unordered_map.hpp:17,
                 from ../../../Extern/include/boost/unordered_map.hpp:16,
                 from char.h:4,
                 from BattleArena.cpp:6:
/usr/local/lib/gcc48/include/c++/limits:1405:35: error: template argument 1 is invalid
     struct numeric_limits<__int128>
                                   ^
/usr/local/lib/gcc48/include/c++/limits:1479:44: error: template argument 1 is invalid
     struct numeric_limits<unsigned __int128>
                                            ^
gmake: *** [OBJDIR/BattleArena.o] Error 1
gmake: *** [OBJDIR/OXEvent.o] Error 1

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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