Build failure on Solaris 10 with Node v7

  • Version: v7.2.0
  • Platform: SunOS 5.10
  • Subsystem: build

Node v7 (tested v7.2.0) fails to build on Solaris 10.

The problem is in deps/uv/src/unix/sunos.c, where the function uv__set_phys_addr needs to be guarded with SUNOS_NO_IFADDRS. (It's only called from uv_interface_addresses,in code guarded by SUNOS_NO_IFADDRS, so the whole function can be guarded.) See attached patch.

node-v7-sunos-patch.txt