libzmq won't build on HPUX 11iv2

Description

New code in clock.cpp relies on CLOCK_MONOTONIC being defined if clock_gettime() is available on the system. HPUX 11iv2 has clock_gettime(), but doesn't not have CLOCK_MONOTONIC. The only available defined clocks are CLOCK_REALTIME, CLOCK_VIRTUAL, and CLOCK_PROFILE.

make[3]: Entering directory `/work/shared/alewis/3rdparty/sources/zeromq/2.1.11/tmp/HPUX1123_ia64/zeromq-2.1.11/src'
CXX libzmq_la-clock.lo
clock.cpp: In static member function 'static uint64_t zmq::clock_t::now_us()':
clock.cpp:72: error: 'CLOCK_MONOTONIC' was not declared in this scope
make[3]: *** [libzmq_la-clock.lo] Error 1
make[3]: Leaving directory `/work/shared/alewis/3rdparty/sources/zeromq/2.1.11/tmp/HPUX1123_ia64/zeromq-2.1.11/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/work/shared/alewis/3rdparty/sources/zeromq/2.1.11/tmp/HPUX1123_ia64/zeromq-2.1.11/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/shared/alewis/3rdparty/sources/zeromq/2.1.11/tmp/HPUX1123_ia64/zeromq-2.1.11'
gmake: *** [compile] Error 2

Environment

HPUX 11iv2 (and likely HPUX 11iv3)

Attachments

1

Activity

Show:

PieterP November 23, 2012 at 7:46 AM

Closing this issue, no longer relevant.

Martin Sustrik January 19, 2012 at 12:43 AM

There's a discussion about the maintenance of libzmq going on on the mailing list. Please, feel free to join in.

AJ Lewis January 17, 2012 at 7:09 PM

I've got the patch queued up in my fork of zeromq2-1, so I can create a pull request for that. It won't apply cleanly to libzmq, but that it should be relatively trivial to resolve. I can do that if that would be helpful.

Mikko Koppanen January 17, 2012 at 7:01 PM

Martin?

AJ Lewis January 17, 2012 at 5:18 PM

This patch has not been applied to libzmq either as far as I can tell.

Won't Fix

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Created December 19, 2011 at 3:09 PM
Updated November 23, 2012 at 7:46 AM
Resolved November 23, 2012 at 7:46 AM