Skip to main content
Topic: [bug r2923] Building network.cc fails on TCP_NODELAY not declared in this scope (Read 5771 times) previous topic - next topic

[bug r2923] Building network.cc fails on TCP_NODELAY not declared in this scope

Trying to build r2923 I get the following error:
Code: [Select]
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

 

Re: [bug r2923] Building network.cc fails on TCP_NODELAY not declared in this scope

Reply #1
same problem on gentoo with gcc 4.3.4

Re: [bug r2923] Building network.cc fails on TCP_NODELAY not declared in this scope

Reply #2
I don't have the source at hand, but probably #include <netinet/tcp.h> is missing from network.cc

Re: [bug r2923] Building network.cc fails on TCP_NODELAY not declared in this scope

Reply #3
It's solved now on r2924.

Thanks :)