Archived

This forum has been archived. Please start a new discussion on GitHub.

socket exception: Invalid argument

Hello!

I'm trying to run ICE on FreeBSD. I know that this platform is not supported. But perhaps someone can easily identify the problem and maybe the solution is very simple

So i've successfully built ICE 3.2.1 on FreeBSD 5.3 using gcc 3.4.2 and gmake 3.80. But the compilation cannot pass all tests. E.g. ICE/timeout.

There is some exception thrown:

starting server... ok
starting client... ok
testing manual initialization... 10/23/07 15:34:11.022 error: exception in `Ice.ThreadPool.Server':
Network.cpp:296: Ice::SocketException:
socket exception: Invalid argument
Outgoing.cpp:203: Ice::TimeoutE10/23/07 15:34:21.034 warning: connection exception:
xception:
timeout while sending or receiving data
TcpTransceiver.cpp:223: Ice::ConnectionLostException:
connection lost: recv() returned zero
local address = 127.0.0.1:12010
remote address = 127.0.0.1:57499
Killed


Any ideas?

Comments

  • benoit
    benoit Rennes, France
    Hi Ivan and welcome to the forums!

    You could try replacing the 2 occurences of #elif defined(__APPLE__) in Ice-3.2.1/src/Ice/Network.cpp with #elif defined(__APPLE__) || defined(__FreeBSD__), I'm pretty sure it will fix this test failure.

    Cheers,
    Benoit.
  • That's what I was talking about! Simple yet complete solution!

    It worked just fine. Now all tests pass.