[zeromq-dev] ZMQ on old linux

Emmanuel TAUREL taurel at esrf.fr
Mon Mar 11 14:44:17 CET 2013

Hello all,

I am trying to compile ZMQ 3.2.2 using pgm (5.1.118) on one relatively 
old Linux box: Red Hat release 4. The compiler release is gcc 3.4.6.

The compilation failed when compiling pgm with the following message:

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)
time.c:715: error: (Each undeclared identifier is reported only once
time.c:715: error: for each function it appears in.)
make[2]: *** [libpgm_noinst_la-time.lo] Error 1
make[2]: Leaving directory 
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
make: *** [all-recursive] Error 1

As far as I understand, the compilation failed because it thinks that 
gettimeofday() is not there.
But the result of the configure script shows that it is there:

checking for floor... yes
checking for ftime... yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for inet_ntoa... yes
checking for memmove... yes
checking for memset... yes

Any help appreciated

Thank's in advance for your help


More information about the zeromq-dev mailing list