From zmq.md:
The ZMQ_PUB socket's ZMQ_TCP_KEEPALIVE option is enabled. This means that the underlying SO_KEEPALIVE option is enabled when using a TCP transport. The effective TCP keepalive values are managed through the underlying operating system configuration and must be configured prior to connection establishment.
That is not the case when libzmq is cross-compiled for a non-Windows host. Its build system skips the SO_KEEPALIVE check, so the code that sets the option is compiled out.
Guix scripts treat every release build as a cross build. Therefore, the Linux and macOS release binaries do not enable SO_KEEPALIVE either.