Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

[Source] Compile DB


Hisoka

Question

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

Makefile:

 

MAKE = gmake
CC = g++
CXX = g++

INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = .obj

GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
P4_VERSION = 54180
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

TARGET = $(BINDIR)/db_r$(P4_VERSION)
TEST_TARGET  = $(BINDIR)/db_r$(P4_VERSION)_striped

CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_ 

CFLAGS += -mtune=i686 -mcpu=i686

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

LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib

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

LIBS = -lthecore -lsql -lpoly -lgame -lm -lz
LIBDIR += -L/usr/local/lib/mysql
LIBS += -lmysqlclient -lz

SRCS =	Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp 
		Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp 
		ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp 
		PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp 
		Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp 
		AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 

OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)

default: $(TARGET) $(TEST_TARGET)
	@strip $(TEST_TARGET)


$(TARGET): $(OBJS)
	@echo linking ...
	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
	@touch version.cpp

$(TEST_TARGET): $(OBJS)
	@echo linking ...
	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TEST_TARGET)
	@touch version.cpp

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

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

$(OBJDIR):
	@mkdir $(OBJDIR)

clean:
	@rm -f $(OBJS) $(BINDIR)/db_r*

dep:
	@touch Depend
	makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null

sinclude Depend

 

Version.cpp

 

#include <stdio.h>
#include <stdlib.h>

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

	if (NULL != fp)
	{
		fprintf(fp, "game perforce revision: %sn", __P4_VERSION__);
		fprintf(fp, "%[email protected]%s:%sn", __USER__, __HOSTNAME__, __PWD__);
		fclose(fp);
	}
	else
	{
		fprintf(stderr, "cannot open VERSION.txtn");
		exit(0);
	}
#endif
}

Link to comment

9 answers to this question

Recommended Posts

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

 

Please Clean Objdir files. And Paste Build Log

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

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

Paste Your Makefile.

  • Love 1
Link to comment
  • 0

 

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

Paste Your Makefile.

 

MAKE = gmake
CC = g++
CXX = g++

INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = .obj

GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
P4_VERSION = 54180
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

TARGET = $(BINDIR)/db_r$(P4_VERSION)
TEST_TARGET  = $(BINDIR)/db_r$(P4_VERSION)_striped

CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_ 

CFLAGS += -mtune=i686 -mcpu=i686

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

LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib

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

LIBS = -lthecore -lsql -lpoly -lgame -lm -lz
LIBDIR += -L/usr/local/lib/mysql
LIBS += -lmysqlclient -lz

SRCS =	Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp 
		Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp 
		ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp 
		PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp 
		Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp 
		AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 

OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)

default: $(TARGET) $(TEST_TARGET)
	@strip $(TEST_TARGET)


$(TARGET): $(OBJS)
	@echo linking ...
	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
	@touch version.cpp

$(TEST_TARGET): $(OBJS)
	@echo linking ...
	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TEST_TARGET)
	@touch version.cpp

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

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

$(OBJDIR):
	@mkdir $(OBJDIR)

clean:
	@rm -f $(OBJS) $(BINDIR)/db_r*

dep:
	@touch Depend
	makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null

sinclude Depend

Link to comment
  • 0
MAKE = gmake
CC = g++48
CXX = g++48


INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = .obj


GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
P4_VERSION = 54180
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)


TARGET = $(BINDIR)/db_r$(P4_VERSION)


CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_ 


CFLAGS += -mtune=i686 -mcpu=i686


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


LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib


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


LIBS = -lthecore -lsql -lpoly -lgame -lm -lz
LIBDIR += -L/usr/local/lib/mysql
LIBS += -lmysqlclient -lz


SRCS =  Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp 
        Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp 
        ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp 
        PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp 
        Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp 
        AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 


OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)


default: $(TARGET) $(TEST_TARGET)
    @strip $(TEST_TARGET)




$(TARGET): $(OBJS)
    @echo linking ...
    @$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
    @touch version.cpp


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


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


$(OBJDIR):
    @mkdir $(OBJDIR)


clean:
    @rm -f $(OBJS) $(BINDIR)/db_r*


dep:
    @touch Depend
    makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null


sinclude Depend

Try This.

  • Love 1
Link to comment
  • 0
MAKE = gmake
CC = g++48
CXX = g++48


INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = .obj


GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
P4_VERSION = 54180
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)


TARGET = $(BINDIR)/db_r$(P4_VERSION)


CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_ 


CFLAGS += -mtune=i686 -mcpu=i686


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


LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib


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


LIBS = -lthecore -lsql -lpoly -lgame -lm -lz
LIBDIR += -L/usr/local/lib/mysql
LIBS += -lmysqlclient -lz


SRCS =  Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp 
        Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp 
        ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp 
        PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp 
        Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp 
        AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 


OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)


default: $(TARGET) $(TEST_TARGET)
    @strip $(TEST_TARGET)




$(TARGET): $(OBJS)
    @echo linking ...
    @$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
    @touch version.cpp


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


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


$(OBJDIR):
    @mkdir $(OBJDIR)


clean:
    @rm -f $(OBJS) $(BINDIR)/db_r*


dep:
    @touch Depend
    makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null


sinclude Depend

Try This.

 

new makefile:

 

MAKE = gmake
CC = g++48
CXX = g++48

INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = .obj

GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
P4_VERSION = 54180
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

TARGET = $(BINDIR)/db_r$(P4_VERSION)

CFLAGS = -g -Wall -O2 -m32 -pipe -fexceptions -D_THREAD_SAFE -DNDEBUG # -D_USE_SERVER_KEY_ 

CFLAGS += -mtune=i686 -mssse3

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

LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib

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

LIBS = -lthecore -lsql -lpoly -lgame -lm -lz
LIBDIR += -L/usr/local/lib/mysql
LIBS += -lmysqlclient -lz

SRCS =	Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 

OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)

default: $(TARGET) $(TEST_TARGET)
	@strip $(TEST_TARGET)


$(TARGET): $(OBJS)
	@echo linking ...
	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
	@touch version.cpp


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

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

$(OBJDIR):
	@mkdir $(OBJDIR)

clean:
	@rm -f $(OBJS) $(BINDIR)/db_r*

dep:
	@touch Depend
	makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null

sinclude Depend

 

build log:

 

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

Link to comment
  • 0

Change libsql İn Novaline.

I already tried but gave no result

 

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


 

if I do with this makefile:

 

MAKE = gmake
CC = g++48
CXX = g++48

INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = .obj

GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
P4_VERSION = 54180
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

TARGET = $(BINDIR)/db_r$(P4_VERSION)

CFLAGS = -Wall -ffat-lto-objects -flto -fuse-linker-plugin -Ofast -pipe -fno-rtti -fno-exceptions -pthread -D_THREAD_SAFE -lstdc++ -Wl,-rpath,/usr/local/lib32/metin2 -std=c++11 

CFLAGS += -mtune=i686 -mssse3

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

LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib

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

LIBS = -lthecore -lsql -lpoly -lgame -lm -lz
LIBDIR += -L/usr/local/lib/mysql
LIBS += -lmysqlclient -lz

SRCS =	Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp 
		Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp 
		ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp 
		PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp 
		Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp 
		AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 

OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)

default: $(TARGET) $(TEST_TARGET)
	@strip $(TEST_TARGET)


$(TARGET): $(OBJS)
	@echo linking ...
	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
	@touch version.cpp


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

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

$(OBJDIR):
	@mkdir $(OBJDIR)

clean:
	@rm -f $(OBJS) $(BINDIR)/db_r*

dep:
	@touch Depend
	makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null

sinclude Depend

 

how could resolve this error without deleting anything?

 

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

 

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

Link to comment
  • 0

 

Change libsql İn Novaline.

I already tried but gave no result

 

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


 

if I do with this makefile:

 

MAKE = gmake
CC = g++48
CXX = g++48

INCDIR =
LIBDIR =
BINDIR = ..
OBJDIR = .obj

GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
P4_VERSION = 54180
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

TARGET = $(BINDIR)/db_r$(P4_VERSION)

CFLAGS = -Wall -ffat-lto-objects -flto -fuse-linker-plugin -Ofast -pipe -fno-rtti -fno-exceptions -pthread -D_THREAD_SAFE -lstdc++ -Wl,-rpath,/usr/local/lib32/metin2 -std=c++11 

CFLAGS += -mtune=i686 -mssse3

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

LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib

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

LIBS = -lthecore -lsql -lpoly -lgame -lm -lz
LIBDIR += -L/usr/local/lib/mysql
LIBS += -lmysqlclient -lz

SRCS =	Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp 
		Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp 
		ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp 
		PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp 
		Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp 
		AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 

OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)

default: $(TARGET) $(TEST_TARGET)
	@strip $(TEST_TARGET)


$(TARGET): $(OBJS)
	@echo linking ...
	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
	@touch version.cpp


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

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

$(OBJDIR):
	@mkdir $(OBJDIR)

clean:
	@rm -f $(OBJS) $(BINDIR)/db_r*

dep:
	@touch Depend
	makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null

sinclude Depend

 

how could resolve this error without deleting anything?

 

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

 

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

 

I Dont Know Sorry :/

Link to comment

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

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.