Page 1 of 1

[Fixed] New compile error :)

Posted: Sun Nov 23, 2014 2:35 pm
by altalus
Ubuntu x64:

Code: Select all

guillaume@hades:~/Vejiitasei$ make
g++ -std=gnu++0x -DHAVE_CONFIG_H -I. -I./src/common      -DdsUDPSERV   -I/usr//include/luajit-2.0   -I/usr/include/mysql -DBIG_JOINS=1  -fno-strict-aliasing   -g -DNDEBUG  -g -O2 -MT dsgame-message.o -MD -MP -MF .deps/dsgame-message.Tpo -c -o dsgame-message.o `test -f 'src/map/message.cpp' || echo './'`src/map/message.cpp
src/map/message.cpp: In function 'void message::init(const char*, uint16)':
src/map/message.cpp:58:23: error: 'struct in_addr' has no member named 'S_un'
   uint64 ipp = map_ip.S_un.S_addr;
                       ^
src/map/message.cpp:62:14: error: 'struct in_addr' has no member named 'S_un'
   if (map_ip.S_un.S_addr == 0 && map_port == 0)
              ^
make: *** [dsgame-message.o] Error 1
I am probably missing something but configure does not complains...

Re: New compile error :)

Posted: Sun Nov 23, 2014 3:08 pm
by altalus
From several websites:
sin_addr is in sockaddr_in, not sockaddr.
But I am unsure where to do the change :P

* Note:

The build on windows worked so it might be a problem being Linux specific?

Code: Select all

1>  DSGame-server.vcxproj -> D:\FFXI\darkstar\win32\DSGame-server\..\..\DSGame-server.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Re: New compile error :)

Posted: Sun Nov 23, 2014 5:10 pm
by kjLotus
aye, i'll get it fixed in an hour or so

Re: New compile error :)

Posted: Sun Nov 23, 2014 5:15 pm
by kjLotus
big derp on my part, i was even looking at those macros yesterday and didn't use them

should be fine now though

Re: New compile error :)

Posted: Sun Nov 23, 2014 5:26 pm
by altalus
Ok, it now builds and execute :)

Thank you kj, very appreciated!