Skip to content

build with zeromq v3 => error: too few arguments to function ‘zmq_send’ #29

@luckyone13

Description

@luckyone13

Hello,

I have zeromq 3.4.2 @ rhel6, and it seems to be incompatible with zerogw source code from master branch, despite that documentation says "libzmq >= 2.1":


[xxx@localhost zerogw-master]$ ./waf build
Waf: Entering directory /home/dmitry/Downloads/ZEROGW/zerogw-master/build' [ 1/23] coyaml: src/config.yaml -> build/src/config.h build/src/config.c [ 2/23] coyaml: src/config.yaml -> build/src/config.h build/src/config.c [ 3/23] c: build/src/config.c -> build/src/config.c.1.o [ 4/23] c: src/zerogwctl.c -> build/src/zerogwctl.c.1.o ../src/zerogwctl.c: In function ‘main’: ../src/zerogwctl.c:98: error: too few arguments to function ‘zmq_send’ ../src/zerogwctl.c:106: error: too few arguments to function ‘zmq_recv’ Waf: Leaving directory/home/dmitry/Downloads/ZEROGW/zerogw-master/build'
Build failed
-> task failed (exit status 1):
{task 140526144778960: c zerogwctl.c -> zerogwctl.c.1.o}

['/usr/bin/gcc', '-std=gnu99', '-I/home/dmitry/Downloads/ZEROGW/zerogw-master/build/src', '-I/home/dmitry/Downloads/ZEROGW/zerogw-master/src', '', '../src/zerogwctl.c', '-c', '-o', '', 'src/zerogwctl.c.1.o']

Is it supposed to be compiled with zeromq v2 only, no v3 or v4 support available yet or I am missing some instructions?
zmq v4: http://api.zeromq.org/4-0:zmq-send <-- buf* + size
zmq v3: http://api.zeromq.org/3-2:zmq-send <-- buf* + size
zmq v2: http://api.zeromq.org/2-2:zmq-send <-- zmq_msg_t msg

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions