[zeromq-dev] Zeromq - epgm transport on Red Hat 4
Emmanuel TAUREL
taurel at esrf.fr
Tue Jun 4 13:17:54 CEST 2013
Hello all,
I am trying to use ZMQ PUB/SUB with epgm transport on a Red Hate 4
Linux host - 32 bits.
- 1 - First, some issues related to compilation:
Due to ZMQ bug XXX, I have to use ZMQ 3.2.3. It comes with libpgm
5.1.118. When you compiled this OpenPGM release on Red Hat 4 host, it
fails with
error
time.c:451:4: #error "gettimeofday() or ftime() required to calculate
counter offset"
time.c: In function `pgm_tsc_init':
time.c:715: error: `pgm_gettimeofday_update' undeclared (first use in
this function)
I already discuss this point on this mailing list and Steve advice me to
use OpenPGM 5.2.122. See mail thread
http://lists.zeromq.org/pipermail/zeromq-dev/2013-March/020775.html
Nevertheless, to avoid warnings due to Red Hat 4 gcc release (< 4)
during ZMQ/OpenPGM compilation, and according to Steve advice, you have
to replace all instances of:
#if defined( __GNUC__ ) && !defined( __sun ) && !defined( __CYGWIN__ )
with:
#if (defined( __GNUC__ ) && ( __GNUC__ >= 4 )) && !defined( __sun )
&& !defined( __CYGWIN__ )
1. include/pgm/packet.h
2. include/impl/ip.h
3. include/impl/ticket.h
After applying this recipe, I finally have a zeromq 3.2.3 library
including OpenPGM 5.2.122 compiled for Red Hat 4
- 2 - I am not able to send/receive messages using this library
The publisher is running on the Red Hat 4 box using the library compiled
as previously described.
The subscriber is running on a Debian6 box using ZeroMQ 3.2.2 and
OpenPGM 5.1.118
Everything seems to work fine because I do not have any reported error
on both side but I do not receive messages on the subscriber side. The
same code works without problem between a ubuntu 10.04 host (or 12.04)
and a Centos 5 host. If I run tcpdump on the publisher host, on the IP
address selected for multicast transfer, I see only IGMP "Join group"
packets. Nothing more.
I have set on both side the following env. variables:
PGM_MIN_LOG_LEVEL=TRACE and PGM_LOG_MASK=0xffff
The publisher outputs are:
Minor: OpenPGM 5.2.122 (1487) 2013-05-31 09:42:52 Linux i686
Minor: Detected 2 available 2 online 2 configured CPUs.
Minor: Using gettimeofday() timer.
at process startup
Trace: Opening UDP encapsulated sockets.
Trace: Set socket sharing.
Trace: Request socket packet-info.
Trace: Assuming IP header size of 20 bytes
Trace: Assuming UDP header size of 8 bytes
Trace: Create transmit window.
Trace: Binding receive socket to INADDR_ANY
Trace: Binding send socket to interface index 2
Trace: Setting ODATA rate regulation to 7680000 bytes per second.
Trace: Join multicast group 226.30.31.32 on interface index 2
Trace: Multicast send interface set to 160.103.236.92 index 2
Warn: ToS/DSCP setting requires CAP_NET_ADMIN or ADMIN capability.
When the subscriber connects. Nothing more printed (even when the
messages should be sent).
The subscriber outputs are:
Minor: OpenPGM 5.1.118 (1369) 2012-12-14 08:09:37 Linux x86_64
Minor: Detected 6 available 6 online 6 configured CPUs.
Minor: Using TSC timer.
Minor: TSC frequency set to 2825 MHz
Trace: Opening UDP encapsulated sockets.
Trace: Set socket sharing.
Trace: Request socket packet-info.
Trace: Assuming IP header size of 20 bytes
Trace: Assuming UDP header size of 8 bytes
Trace: Binding receive socket to INADDR_ANY
Trace: Binding send socket to interface index 2
Trace: Join multicast group 226.30.31.32 on interface index 2
Trace: Multicast send interface set to 160.103.236.228 index 2
Any help appreciated. Thank's in advance
Emmanuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130604/fd31ab8a/attachment.htm>
More information about the zeromq-dev
mailing list