The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: sanna on December 05, 2009, 11:06:48 AM

Title: [bug r2923] Building network.cc fails on TCP_NODELAY not declared in this scope
Post by: sanna on December 05, 2009, 11:06:48 AM
Trying to build r2923 I get the following error:

dataobj/network.cc: In function 'void network_add_client(SOCKET)':
dataobj/network.cc:195: error: 'TCP_NODELAY' was not declared in this scope
dataobj/network.cc: At global scope:
dataobj/network.cc:189: warning: 'our_client_id' defined but not used


Grepping for TCP_NODELAY in the rest of the files yield only the match dataobj/network.cc:195. If this constant is defined in an external lib, then that lib is evidently not found.

System: debian/squeeze, gcc 4.3.5
Title: Re: [bug r2923] Building network.cc fails on TCP_NODELAY not declared in this scope
Post by: T0m4S on December 05, 2009, 02:58:18 PM
same problem on gentoo with gcc 4.3.4
Title: Re: [bug r2923] Building network.cc fails on TCP_NODELAY not declared in this scope
Post by: isidoro on December 06, 2009, 02:38:21 AM
I don't have the source at hand, but probably #include <netinet/tcp.h> is missing from network.cc
Title: Re: [bug r2923] Building network.cc fails on TCP_NODELAY not declared in this scope
Post by: T0m4S on December 06, 2009, 09:24:35 AM
It's solved now on r2924.

Thanks :)