Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z/OS UNIX System Services port #1136

Merged
merged 2 commits into from
Jul 22, 2014
Merged

z/OS UNIX System Services port #1136

merged 2 commits into from
Jul 22, 2014

Conversation

ewenmcneill
Copy link
Contributor

Creates builds/zos directory with preconfigured "platform.hpp" for z/OS UNIX System Services, as well as build scripts to build libzmq as static and dynamic library. Also includes "buildtests" and "runtests" to build and run the test suite in tests/. All source is built with the IBM XL C/C++ compiler.

builds/zos/README.md describes building the ZeroMQ library on z/OS UNIX System Services, as well as basic usage and porting notes. As z/OS UNIX System Services does not have a port of libsodium, CURVE security is automatically disabled, and libpgm is not used either (as also has not been ported).

On z/OS UNIX System Services all but two of the basic tests pass (aside from the CURVE test which does nothing because libsodium is not installed):

[....]
Assertion failed: rc == 0, file: ./test_abstract_ipc.cpp, line: 31
CEE5207E The signal SIGABRT was received.
XFAIL: test_abstract_ipc
[....]
 (./thread.cpp:91)
CEE5207E The signal SIGABRT was received.
CEE5214S The signal SIGALRM was received.
XFAIL: test_fork
======================================================
All 43 tests behaved as expected (2 expected failures)
======================================================

test_abstract_ipc is known to only work on Linux. test_fork relies on the ability to use pthread_create() both before and after fork(), which is not portable (further detail is provided in README.md).

An updated test_fork.cpp is provided in this directory (which is used on z/OS by the build scripts provided), which adds an alarm() call to terminate the test_fork test run if it is not successful in 5 seconds; otherwise the test run will never complete on platforms for which test_fork fails. (It may be appropriate to put this updated test in the man tests/* directory, but that is not done in this pull request.)

Tested compiled and run in ILP32 (amode=31) and LP64 (amode=64), as both static library and dynamic library.

builds/zos includes:
    README.md: Overview of z/OS UNIX System Services port (Markdown)
    makelibzmq: Compile src/*.cpp and make libzmq.a
    maketests:  Compile tests/*.cpp and make test_* executables
    runtests:   Run tests/test_* executables and report results
    makeclean:  Remove built files
    zc++: /bin/c++ wrapper supplying required build arguments
    cxxall: run zc++ for all *.cpp files in directory

    platform.hpp: pre-generated (and edited) src/platform.hpp for z/OS
    test_fork.cpp: updated tests/test_fork.cpp that completes on z/OS
Updated:
   README.md:  describes process of building/using DLL
   makelibzmq: Build DLL as well as static library (unless BUILD_DLL=false)
   maketests:  Dynamically link to ../src/libzmq.so if present
   runtests:   Explicitly place ../src at start of LIBPATH
   makeclean:  Also remove files created for DLL
   cxxall:     Bumped updated date to reflect last edit
hintjens added a commit that referenced this pull request Jul 22, 2014
z/OS UNIX System Services port
@hintjens hintjens merged commit b0103de into zeromq:master Jul 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants