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

build error with zeromq 3.x #63

Closed
naoina opened this issue Jul 11, 2013 · 1 comment
Closed

build error with zeromq 3.x #63

naoina opened this issue Jul 11, 2013 · 1 comment

Comments

@naoina
Copy link

naoina commented Jul 11, 2013

Making all in suggest
make[3]: Entering directory `/home/naoina/work/src/groonga/src/suggest'
  CC       groonga_suggest_learner-groonga_suggest_learner.o
groonga_suggest_learner.c: In function `zmq_send_to_httpd':
groonga_suggest_learner.c:197:5: error: too few arguments to function `zmq_send'
     if (zmq_send(zmq_send_sock, &msg, 0)) {
     ^
In file included from groonga_suggest_learner.c:17:0:
/usr/include/zmq.h:349:45: note: declared here
 ZMQ_EXPORT int zmq_send (void *s, const void *buf, size_t len, int flags);
                                             ^
groonga_suggest_learner.c: In function `send_to_httpd':
groonga_suggest_learner.c:372:41: error: `ZMQ_HWM' undeclared (first use in this function)
           zmq_setsockopt(zmq_send_sock, ZMQ_HWM, &hwm, sizeof(uint64_t));
                                         ^
groonga_suggest_learner.c:372:41: note: each undeclared identifier is reported only once for each function it appears in
groonga_suggest_learner.c: In function `recv_event_loop':
groonga_suggest_learner.c:463:9: error: too few arguments to function `zmq_recv'
         if (zmq_recv(zmq_sock, &msg, 0)) {
         ^
In file included from groonga_suggest_learner.c:17:0:
/usr/include/zmq.h:350:45: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                                             ^
make[3]: *** [groonga_suggest_learner-groonga_suggest_learner.o] Error 1
make[3]: Leaving directory `/home/naoina/work/src/groonga/src/suggest'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/naoina/work/src/groonga/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/naoina/work/src/groonga'
make: *** [all] Error 2

Please support to zeromq 3.x, or write required version info to dependencies section of document.

See also: http://www.zeromq.org/docs:3-1-upgrade

kou added a commit that referenced this issue Jul 11, 2013
GitHub: refs #63

See also: http://www.zeromq.org/docs:3-1-upgrade

Reported by Naoya Inada. Thanks!!!

    groonga_suggest_learner.c: In function ‘zmq_send_to_httpd’:
    groonga_suggest_learner.c:197:5: error: too few arguments to function ‘zmq_send’
         if (zmq_send(zmq_send_sock, &msg, 0)) {
         ^
    In file included from groonga_suggest_learner.c:17:0:
    /usr/include/zmq.h:349:16: note: declared here
     ZMQ_EXPORT int zmq_send (void *s, const void *buf, size_t len, int flags);
                    ^
kou added a commit that referenced this issue Jul 11, 2013
GitHub: refs #63

See also: http://www.zeromq.org/docs:3-1-upgrade

Reported by Naoya Inada. Thanks!!!

    groonga_suggest_learner.c:377:41: note: each undeclared identifier is reported only once for each function it appears in
    groonga_suggest_learner.c: In function ‘recv_event_loop’:
    groonga_suggest_learner.c:468:9: error: too few arguments to function ‘zmq_recv’
             if (zmq_recv(zmq_sock, &msg, 0)) {
             ^
    In file included from groonga_suggest_learner.c:17:0:
    /usr/include/zmq.h:350:16: note: declared here
     ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                    ^
kou added a commit that referenced this issue Jul 11, 2013
GitHub: refs #63

See also: http://www.zeromq.org/docs:3-1-upgrade

Reported by Naoya Inada. Thanks!!!

    groonga_suggest_learner.c: In function ‘send_to_httpd’:
    groonga_suggest_learner.c:379:41: error: ‘ZMQ_HWM’ undeclared (first use in this function)
               zmq_setsockopt(zmq_send_sock, ZMQ_HWM, &hwm, sizeof(uint64_t));
                                             ^
    groonga_suggest_learner.c:379:41: note: each undeclared identifier is reported only once for each function it appears in
kou added a commit that referenced this issue Jul 11, 2013
GitHub: refs #63

Reported by Naoya Inada. Thanks!!!
kou added a commit that referenced this issue Jul 11, 2013
GitHub: refs #63

See also: http://www.zeromq.org/docs:3-1-upgrade

Reported by Naoya Inada. Thanks!!!

    groonga_suggest_httpd.c: In function ‘log_send’:
    groonga_suggest_httpd.c:215:9: error: too few arguments to function ‘zmq_send’
             if (zmq_send(thd->zmq_sock, &msg, 0)) {
             ^
    In file included from groonga_suggest_httpd.c:38:0:
    /usr/include/zmq.h:349:16: note: declared here
     ZMQ_EXPORT int zmq_send (void *s, const void *buf, size_t len, int flags);
                    ^
    groonga_suggest_httpd.c: In function ‘recv_handler’:
    groonga_suggest_httpd.c:497:5: error: too few arguments to function ‘zmq_recv’
         if (zmq_recv(zmq_recv_sock, &msg, 0)) {
         ^
    In file included from groonga_suggest_httpd.c:38:0:
    /usr/include/zmq.h:350:16: note: declared here
     ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                    ^
@kou kou closed this as completed in 6174caa Jul 11, 2013
@kou
Copy link
Member

kou commented Jul 11, 2013

Thanks for your report!
Now, groonga supports both zmq 2.x and 3.x!

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

No branches or pull requests

2 participants