Source: ocaml-posix
Version: 4.0.2-1
Severity: serious
Justifications: Doing network access
Hello, looks like new ocaml-posix is trying to open a socket on 0.0.0.1,
causing a build failure (test failure) when network is disabled
✓ All strerror tests completed successfully!
(cd _build/default/modules/socket-unix/test && ./test.exe)
sockaddr_un.sun_family = 1
Unix.ADDR_UNIX("/path/to/socket")
File "modules/socket/test/dune", lines 5-9, characters 0-80:
5 | (rule
6 | (alias citest)
7 | (package posix-socket)
8 | (action
9 | (run %{exe:test.exe})))
(cd _build/default/modules/socket/test && ./test.exe)
sizeof(socklen_t) = 4
sockaddr.sa_family = 2
sockaddr_in.sin_addr.s_addr = 1
Unix.ADDR_INET("0.0.0.1",80)
Fatal error: exception Posix_socket.Error(Name or service not known)
(cd _build/default/modules/signal/test && ./autogenerated_tests.exe)
I would say the cause is this:
./modules/socket/test/test.ml: let inet_addr = Unix.inet_addr_of_string
"0.0.0.1" in
Can you please confirm or disable that test?
thanks
Gianfranco