Jump to content

FreeBSD 11 and the source


Recommended Posts

Heyho guys,

i just got a new root which i want to use as a development server. The server has FreeBSD 11.0 installed. I installed all requiered libs to compile the source.
But now if i want to compile something it say's all times:

My steps:
1. gmake clean (works)
2. gmake dep (do not works)
 

gmake: *** [Makefile:80: dep] Error 127


In my makefile line 80 is:
 

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


3. gmake (do not works)
 

gmake: *** No rule to make target '/usr/include/c++/4.2/tr1/unordered_map', needed by '.obj/Config.o'.  Stop.


Does someone knows where my problem is?

Because before it works fine for me as i used FreeBSD 10.3 64 Bit on my old development server.....

Greetings and thanks in advance

Tryn

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Okey guy, i downgraded my server to FreeBSD 10.3, does anyone can tell me what i need to install to get the source running under 10.3, because as i told u above on 9.3 it was all working fine for me. 

I installed:

cryptopp
mysql57-server
devil
boost-libs

(In that kind of order i had wrote them down. I just needed them for 9.3 so can anybody tell  me what changed? Or what i need to install unter 10 now that it will work?)

Thanks in advance

Link to comment
Share on other sites

Still getting these Error:

79beea8163.png

Here is my makefile:

 

MAKE = gmake
#CC = g++
CC = clang++

INCDIR =
LIBDIR =
BINDIR = ../Releases
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 = $(shell less ../common/Dbversion.txt)
$(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

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

CFLAGS = -g -Wall -O2 -pipe -fno-rtti -fno-exceptions -pthread -D_THREAD_SAFE

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

# MySQL
LIBDIR += -L/usr/local/lib/mysql

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

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

# Extern
INCDIR += -I../../Z_Extern/include
LIBDIR += -I../../Z_Extern/lib

# Project Library
INCDIR += -I/usr/local/include

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

LIBS = -lthecore -lmysqlclient -lsql -lpoly -lgame -lm -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 ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp \
		ItemIDRangeManager.cpp version.cpp ProtoReader.cpp CsvReader.cpp

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

default: $(TARGET)

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

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

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

$(OBJDIR):
	@mkdir $(OBJDIR)

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

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

sinclude Depend



Does anybody knows my problem?

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.