[zeromq-dev] ZeroMQ 4.1.5 runtime crash on iOS 10 SDK

Ahmad Zawawi ahmad.zawawi at gmail.com
Tue Oct 25 11:12:15 CEST 2016

Thanks for your reply. It seems so. Please see the curl / iOS 10 discussion
in the link that I sent earlier. Meanwhile, I made a workaround to patch
src/platform.hpp after the configure stage (
Unit tests are now working after this change on iOS 8 and 9 simulators
(Build log: https://travis-ci.org/azawawi/SwiftyZeroMQ/jobs/170303450).

Also I saw this commit to add an implementation for it in the 4.2 branch (
The crash was occurring in the zmq::clock_t::now_us function.


2016-10-25 6:26 GMT+03:00 Laughing <hnwyllmm at 126.com>:

> There is no clock_gettime API in the IOS platform?
> Or some library should be linked?
> On 10/24/2016 16:34, Ahmad Zawawi <ahmad.zawawi at gmail.com> wrote:
> Hi,
> I encountered today a clock_gettime run time crash while testing on iOS
> 9.0 and earlier using a libzmq.a that is compiled on an iOS 10.0 SDK. The
> Swift language bindings for iOS (https://github.com/azawawi/SwiftyZeroMQ)
> is currently using a bundled universal libzmq.a (https://github.com/
> drewcrawford/libzmq-ios). When I enabled Travis CI tests on iOS 9 and
> earlier, the tests started to fail with the error "dyld: lazy symbol
> binding failed: Symbol not found: _clock_gettime" (libSystem.dylib). Tests
> are working perfectly on iOS 10. The problem seems to be similar to
> https://curl.haxx.se/mail/lib-2016-09/0043.html.
> Is there a way to disable clock_gettime detection via the configure shell
> script?
> Regards,
> Ahmad M. Zawawi
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20161025/66cd173d/attachment.htm>

More information about the zeromq-dev mailing list