Compiling error 1

Post Reply
ninthgate09
Posts: 2
Joined: Sun Feb 08, 2015 1:24 pm

Compiling error 1

Post by ninthgate09 » Fri Feb 19, 2016 9:49 pm

Hello, first time posting, hope is in the right area. So ive been trying to compile dsconnect, dssearch and dsgame, while the first 2 compile with no problem, when trying to compile the game server I get this:

/usr/include/c++/4.9/bits/unique_ptr.h:765:69: note: candidate is:
In file included from src/map/ai/ai_container.cpp:30:0:
src/map/ai/states/item_state.h:38:5: note: CItemState::CItemState(CCharEntity*, uint16, uint8, uint8)
CItemState(CCharEntity* PEntity, uint16 targid, uint8 loc, uint8 slotid);
^
src/map/ai/states/item_state.h:38:5: note: no known conversion for argument 1 from ‘std::initializer_list<CCharEntity*>’ to ‘CCharEntity*’
Makefile:2091: recipe for target 'dsgame-ai_container.o' failed
make: *** [dsgame-ai_container.o] Error 1

I'm new to Linux and ive been looking forum for some fix but not been able too. Any help, if possible, ill appreciate it, Thxs.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Compiling error 1

Post by kjLotus » Fri Feb 19, 2016 10:29 pm

you need gcc5

ninthgate09
Posts: 2
Joined: Sun Feb 08, 2015 1:24 pm

Re: Compiling error 1

Post by ninthgate09 » Sat Feb 20, 2016 1:37 pm

Thanks for the tip. I installed gcc5 and was able to compile the servers. Now ive run into another problem, ive tried couple of things but havent been able to fix it. None of the servers start, for instance i get this when running dsconnect:

/darkstar/dsconnect'
[Status] Memory manager initialised: log/DSP.leaks
[Info] DarkStar - Git Revision Hash: Unknown.
[Error] File not found: ./conf/packet_darkstar_tcp.conf
[Error] login configuration file not found at: conf/login_darkstar.conf
[Error] version info file not found at: version.info
[Error] make_listen_bind: bind failed (socket #4, code 98)!
[Error] Memory manager: args of aFree 0x0x421c6b is invalid pointer src/login/login.cpp line 121
[Error] Memory manager: args of aFree 0x0x421c6b is invalid pointer src/login/login.cpp line 122
[Error] Memory manager: args of aFree 0x0x421c6b is invalid pointer src/login/login.cpp line 123
[Error] Memory manager: args of aFree 0x0x421c6b is invalid pointer src/login/login.cpp line 124
[Error] Memory manager: args of aFree 0x0x4253fa is invalid pointer src/login/login.cpp line 126
[Error] Memory manager: args of aFree 0x0x4253f1 is invalid pointer src/login/login.cpp line 127
[Info] Memory manager: No memory leaks found.

Ive set up the conf files as i did on windows, windows runs fine but ubuntu 14.04 wont. Again any help would be appreciated. Just in case, im running this on a windows pc with dual boot Ubuntu, want to try setting up the servers on a headless server, but first trying to succeed in dual boot.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Compiling error 1

Post by kjLotus » Sat Feb 20, 2016 2:56 pm

[Error] File not found: ./conf/packet_darkstar_tcp.conf
[Error] login configuration file not found at: conf/login_darkstar.conf
[Error] version info file not found at: version.info

check permissions, path, etc

Post Reply