Jump to content
  • Create New...
  • 0

FreeBSD 11 and the source



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


Link to comment
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

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:


(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
  • 0

Still getting these Error:


Here is my makefile:


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

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)


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

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

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
INCDIR += -I../../Z_Lib/libmysql/5.x-5.1.35
LIBDIR += -L../../Z_Lib/libmysql/5.x-5.1.35

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)

	@echo linking $(TARGET)...
	@$(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 $<

	@mkdir $(OBJDIR)

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

	@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?


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


  • -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.