Jump to content

emibo74

Inactive Member
  • Posts

    3
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by emibo74

  1. hello,

    first sorry for my bad english.

     

    i have a problem with the Server source. This Error shows after "gmake -j4"

    i have install gcc8 and put the libstdc++.so.6 to /usr/local/lib/gcc8  i put this after else in lib32

    linking ../db_r41031
    /usr/local/bin/ld: skipping incompatible /usr/local/lib/gcc8/gcc/x86_64-portbld-freebsd11.3/8.3.0/../../../libstdc++.so when searching for -lstdc++
    /usr/local/bin/ld: skipping incompatible /usr/local/lib/gcc8/gcc/x86_64-portbld-freebsd11.3/8.3.0/../../../libstdc++.a when searching for -lstdc++
    /usr/local/bin/ld: cannot find -lstdc++
    collect2: error: ld returned 1 exit status
    gmake: *** [Makefile:75: ../db_r41031] Error 1
    root@vps1404:/usr/home/source/Server/db/src # /usr/local/bin/ld: skipping incompatible /usr/local/lib/gcc8/gcc/x86_64-portbld-freebsd11.3/8.3.0/../../../libstdc++.a when searching for -lstdc++
    /usr/local/bin/ld:: Too many arguments.

     

     

     

    this are my db Makefile

    CC = CC
    CFLAGS += -w -ggdb -g3 -pipe -std=c++11 -static -march=native -O3 -fstack-protector -m32 -DVERSION=\"$(VERSION)\"
    TARGET = ../db
    VERSION = 1337
    
    ############################################################################
    LIBS = -lm -lz -pthread
    
    #  LibTheCore
    INCDIR += -I/../../libthecore/src
    LIBDIR += -L../../libthecore
    LIBS   += -lthecore
    
    # LibGame
    INCDIR += -I../../libgame/src
    LIBDIR += -L../../libgame
    LIBS   += -lgame
    
    #  LibSql
    INCDIR += -I../../libsql/src
    LIBDIR += -L../../libsql
    LIBS   += -lsql
    
    #  LibPoly
    INCDIR += -I../../libpoly/src
    LIBDIR += -L../../libpoly
    LIBS   += -lpoly
    
    #  Mysql
    INCDIR += -I../../../Extern/mysql
    LIBDIR += -L../../../Extern/mysql/lib
    LIBS   += -lmysqlclient
    
    #  Boost
    INCDIR += -I../../../Extern/boost
    LIBDIR += -L../../../Extern/boost/lib
    ############################################################################
    
    CPP =	Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.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 \
    		ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp \
    		ProtoReader.cpp CsvReader.cpp 
    
    ############################################################################
    OBJDIR = .obj
    
    $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)
    OBJS = $(CPP:%.cpp=$(OBJDIR)/%.o)
    
    default: $(TARGET)
    
    clean:
    	@echo Clean done!
    	@find . -type f | xargs -n 5 touch
    	@rm -rf $(OBJDIR)
    	@rm -rf $(TARGET)
    
    $(TARGET): $(OBJS)
    	@echo linking ...
    	@$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
    
    $(OBJDIR)/%.o: %.cpp
    	@echo compile $<
    	@$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

     

    Thanks for everyone 

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