1. 13 Sep, 2018 1 commit
    • Fabrice Fontaine's avatar
      fix static build with libatomic · 6de5f18b
      Fabrice Fontaine authored
      Commit 2ec5a33f added support to link
      with -latomic if needed however using LDFLAGS doesn't work when
      statically linking because LDFLAGS is added before LIBS
      
      Detection of atomic fails with:
      
      configure:23230: /accts/mlweber1/instance-2/output/host/bin/sparc-linux-g++ -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -Os   -static -static -pedantic -Werror -Wall -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -Wno-long-long -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -static -latomic conftest.cpp -lrt -lpthread -lstdc++ >&5
      /tmp/ccgrvVTg.o: In function `main':
      conftest.cpp:(.text.startup+0x10): undefined reference to `__atomic_fetch_add_4'
      collect2: error: ld returned 1 exit status
      
      So use LIBS instead of LDFLAGS
      
      Fixes:
       - http://autobuild.buildroot.net/results/c471d6b1061a8516f7772735e471db68a32965aaSigned-off-by: 's avatarFabrice Fontaine <fontaine.fabrice@gmail.com>
      6de5f18b
  2. 03 Jun, 2018 1 commit
  3. 22 May, 2018 1 commit
  4. 09 May, 2018 1 commit
  5. 07 May, 2018 1 commit
    • Asaf Kahlon's avatar
      acinclude.m4: check if -latomic is needed. · 2ec5a33f
      Asaf Kahlon authored
      On some cases, -latomic is needed for likning, and since the current
      acinclude.m4 checks only compilation we can sometimes miss the need for -latomic
      and the linking process will fail.
      Therefore, the AC_CHECK_IFELSE was replaced with AC_LINK_IFELSE. If the first
      try fails, we try to link again with -latomic and add LIBS="-latmoic" in case we
      succeeded.
      Signed-off-by: 's avatarAsaf Kahlon <asafka7@gmail.com>
      2ec5a33f
  6. 31 Jul, 2017 1 commit
    • Brian Russell's avatar
      Add socket option BINDTODEVICE · b963542e
      Brian Russell authored
      Linux now supports Virtual Routing and Forwarding (VRF) as per:
      
      https://www.kernel.org/doc/Documentation/networking/vrf.txt
      
      In order for an application to bind or connect to a socket with an
      address in a VRF, they need to first bind the socket to the VRF device:
      
          setsockopt(sd, SOL_SOCKET, SO_BINDTODEVICE, dev, strlen(dev)+1);
      
      Note "dev" is the VRF device, eg. VRF "blue", rather than an interface
      enslaved to the VRF.
      
      Add a new socket option, ZMQ_BINDTODEVICE, to bind a socket to a device.
      In general, if a socket is bound to a device, eg. an interface, only
      packets received from that particular device are processed by the socket.
      
      If device is a VRF device, then subsequent binds/connects to that socket
      use addresses in the VRF routing table.
      b963542e
  7. 28 Jul, 2017 2 commits
  8. 19 Mar, 2017 1 commit
  9. 02 Feb, 2017 1 commit
    • Jim Klimov's avatar
      Problem: polling does not work well OOB in OpenIndiana · f8816945
      Jim Klimov authored
      Solution: even though epoll() semantics are supported in modern illumos, it may differ from what Linux developers are used to expect. Skip epoll and use poll or select semantics (both were checked to work well).
      f8816945
  10. 26 Dec, 2016 2 commits
  11. 24 Nov, 2016 1 commit
  12. 27 Oct, 2016 1 commit
    • Luca Boccassi's avatar
      Problem: build API incompatible with 4.1 · 8345fe9e
      Luca Boccassi authored
      Solution: keep the new --without-docs option, but also keep the old
      --without-documentation with an added deprecation warning.
      We can then remove it in the next major release, to leave enough time
      for users and maintainers to change it without disruptions.
      8345fe9e
  13. 21 Sep, 2016 1 commit
  14. 20 Sep, 2016 1 commit
  15. 11 Feb, 2016 2 commits
    • Pieter Hintjens's avatar
      Problem: some configure options are confusing · e65367ea
      Pieter Hintjens authored
      It's especially annoying to see this:
      
        --enable-perf           Build performance measurement tools [default=yes].
        --disable-eventfd       disable eventfd [default=no]
        --enable-curve-keygen   Build curve key-generation tool [default=yes].
      
      Solution: all options should explain the non-default case. Also
      the language should be enable/disable, with/without, rather than
      yes/no. E.g. '--without-docs'.
      e65367ea
    • Pieter Hintjens's avatar
      Problem: autotools platform.hpp is not compatible with CMake · 9f8ced3f
      Pieter Hintjens authored
      Specifically, the poller detection code does not set macros in
      platform.hpp. The configure script passed them as -D on the command
      line.
      
      Solution: rewrite the poller detection code.
      9f8ced3f
  16. 03 Feb, 2016 2 commits
  17. 18 Jan, 2016 1 commit
  18. 06 Feb, 2015 1 commit
    • Lionel Orry's avatar
      acinclude.m4: make kernel-specific flags cacheable · 9daf6dd7
      Lionel Orry authored
      Specifically when cross-compiling, one can be willing to force these
      variable values using the environment of a config.cache file. This
      commit makes this possible.
      
      The affected variables are:
      
      * libzmq_cv_sock_cloexec
      * libzmq_cv_so_keepalive
      * libzmq_cv_tcp_keepcnt
      * libzmq_cv_tcp_keepidle
      * libzmq_cv_tcp_keepintvl
      * libzmq_cv_tcp_keepalive
      Signed-off-by: 's avatarLionel Orry <lionel.orry@gmail.com>
      9daf6dd7
  19. 28 Jan, 2015 1 commit
  20. 17 Feb, 2014 1 commit
    • Olaf Mandel's avatar
      Remove duplicate poller decision making · 48b50cef
      Olaf Mandel authored
      The decision about the poller mechanism to use (select, poll, ...)
      was done twice: once by the build system and once by the code in
      poller.hpp. As the build-system can actually detect the mechanisms
      available, prefer that result to the hard coded defaults in
      poller.hpp.
      
      At the same time, remove the duplicate detection of select() vs.
      poll()-variant from proxy.cpp, signaler.cpp and zmq.cpp.
      
      This patch has not been tested on many build platforms: especially
      the cmake build needs testing / patching. For the other builds,
      hard code the result as these these are all Windows platforms.
      48b50cef
  21. 14 Feb, 2014 1 commit
  22. 06 Apr, 2012 1 commit
  23. 05 Apr, 2012 1 commit
  24. 27 Jan, 2012 2 commits
  25. 26 Oct, 2011 1 commit
  26. 06 Sep, 2011 1 commit
  27. 04 Sep, 2011 1 commit
  28. 03 Apr, 2011 1 commit
  29. 02 Apr, 2011 2 commits
  30. 18 Dec, 2010 1 commit
  31. 07 Dec, 2010 2 commits
  32. 01 Dec, 2010 1 commit
    • Mikko Koppanen's avatar
      Prefix variables with "ac_zmq_" · 5bb0a339
      Mikko Koppanen authored
       - Added a macro for checking clang compiler
       - Moved basic compiler checks to a macro
       - Added a macro for checking if compiler supports a flag
       - Added --enable-debug flag
       - Added a macro for running normal autoconf check with compiler flags
       - Added a macro for checking for verbose flag for different compilers (-Wall)
       - Added a macro for turning on strict standards compliance
       - Added a macro for turning warnings to errors
       - Added a macro for checking if compiler supports given pragma
       - Most of the flags now go through checks if the compilers supports them
         rather than enumerating different compilers
       - Added DSO symbol visibility for sun compiler
       - Enabled verbose mode for sun compiler
       - Fixed build for ICC 12.x by adding -wd279 to size_t checks
       - Removed pkg-config checks as those don't seem to be used anywhere
      Signed-off-by: 's avatarMikko Koppanen <mkoppanen@php.net>
      5bb0a339
  33. 19 Nov, 2010 1 commit
    • Mikko Koppanen's avatar
      Add a check that the compiler actually works. · edf7c18d
      Mikko Koppanen authored
      The patch tests that the C and C++ compilers actually exist
      and work. autoconf seems to default to 'g++' when C++ compiler is not
      found, which causes the following error (when the compiler isn't
      there):
      
      checking for uuid_generate in -luuid... no
      configure: error: cannot link with -luuid, install uuid-dev.
      
      The config.log contains the real error message "g++ command not found"
      but the error message shown to the user is misleading.
      Signed-off-by: 's avatarMikko Koppanen <mkoppanen@php.net>
      edf7c18d