Compile error in GameServer.cc under Lubuntu 17.10

Discussions About MOSS (Myst Online Server Software)

Moderators: a'moaca', rarified

Post Reply
User avatar
Korovev
Member
Posts: 17
Joined: Fri Oct 14, 2016 9:16 am
Location: Europe
Contact:

Compile error in GameServer.cc under Lubuntu 17.10

Post by Korovev »

I was trying to compile MOSS (using “./configure --prefix=/opt/MOSS/ --enable-fast-download --disable-single-login”), but I got:

Code: Select all

In file included from GameServer.cc:71:0:
moss_serv.h: In member function ‘virtual void Server::add_client_conn(int, u_char)’:
moss_serv.h:111:56: error: ‘close’ was not declared in this scope
   virtual void add_client_conn(int fd, u_char first) { close(fd); }
                                                        ^~~~~
moss_serv.h:111:56: note: suggested alternative: ‘clone’
   virtual void add_client_conn(int fd, u_char first) { close(fd); }
                                                        ^~~~~
                                                        clone
moss_serv.h: In destructor ‘virtual Server::Connection::~Connection()’:
moss_serv.h:365:2: error: ‘close’ was not declared in this scope
  close(m_fd);
  ^~~~~
moss_serv.h:365:2: note: suggested alternative: ‘clone’
  close(m_fd);
  ^~~~~
  clone
Makefile:898: recipe for target 'GameServer.lo' failed
make[1]: *** [GameServer.lo] Error 1
make[1]: Leaving directory '/home/korovev/MOSS/OpenUru_org-moss-e16089237dde'
Makefile:553: recipe for target 'all' failed
make: *** [all] Error 2
I assume the “clone” suggestion should be ignored :)
Deep Island #194197, MOULa #46116, Minkata #132812, Gehn #137074.
Gahreesenomee biv keneet pishoeet b’set!
My macOS wrappers, Fan Age Expeditions, tools and other stuff.
Post Reply

Return to “MOSS”