Building a 64-bit VM on linux with "gcc (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.1)" dies with:
src/share/vm/utilities/ostream.cpp: In member function `bool networkStream::connect(const char*, short int)':
src/share/vm/utilities/ostream.cpp:832: warning: comparison is always false due to limited range of data type
gmake: *** [ostream.o] Error 1
Use uint32_t instead of unsigned long. Would like to use in_addr_t, which is available on linux and solaris, but only on *some* windows versions, not all. Sigh.
Line 832 is:
if (server.sin_addr.s_addr == (unsigned long) -1)
sin_addr.s_addr is a 32-bit inteter; unsigned long is a 64-bit integer in a 64-bit build.
*** (#1 of 1): [ UNSAVED ] ###@###.###