tailhook / zerogw

A fast HTTP/WebSocket to zeromq gateway (UNMAINTAINED, take a look at swindon web server instead)
http://zerogw.com
MIT License
250 stars 27 forks source link

Incompatible With zeromq-3.2.2-2 on Arch? #24

Closed codekoala closed 11 years ago

codekoala commented 11 years ago

I've been curious to try out zerogw for a while now, and I recently tried to compile it on my Arch Linux boxes. Unfortunately, I have not had success. I'm not a C guy, but it seems like this code might be relying on zeromq<3. Your PKGBUILD for Arch, however, references zeromq, which is currently at 3.2.2.

The ZeroMQ 2 -> 3 upgrade document at http://www.zeromq.org/docs:3-1-upgrade suggests that these references to zmq_send and zmq_recv should become zmq_msg_send and zmq_msg_recv, respectively.

Here's what I'm seeing:

Checking for 'gcc' (c compiler)          : ok 
'configure' finished successfully (0.035s)
Waf: Entering directory `/tmp/yaourt-tmp-wheaties/aur-zerogw/src/zerogw-0.6.2/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: src/openport.c -> build/src/openport.c.2.o
[ 4/23] c: src/main.c -> build/src/main.c.0.o
[ 5/23] c: src/websocket.c -> build/src/websocket.c.0.o
[ 6/23] c: src/msgqueue.c -> build/src/msgqueue.c.0.o
[ 7/23] c: src/sieve.c -> build/src/sieve.c.0.o
[ 8/23] c: src/zutils.c -> build/src/zutils.c.0.o
[ 9/23] c: src/disk.c -> build/src/disk.c.0.o
[10/23] c: build/src/config.c -> build/src/config.c.0.o
[11/23] c: src/request.c -> build/src/request.c.0.o
../src/websocket.c: In function ‘backend_send_real’:
../src/websocket.c:77:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock->_sock, &zmsg, ZMQ_SNDMORE|ZMQ_NOBLOCK) < 0) {
     ^
In file included from ../src/websocket.c:1: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);
                ^
[12/23] c: src/uidgen.c -> build/src/uidgen.c.0.o
../src/websocket.c:106:5: error: too few arguments to function ‘zmq_send’
     SNIMPL(zmq_send(sock->_sock, &zmsg, ZMQ_NOBLOCK | flag));
     ^
In file included from ../src/websocket.c:1: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);
                ^
../src/websocket.c:110:9: error: too few arguments to function ‘zmq_send’
         SNIMPL(zmq_send(sock->_sock, &zmsg, ZMQ_NOBLOCK | flag));
         ^
In file included from ../src/websocket.c:1: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);
                ^
../src/websocket.c:122:9: error: too few arguments to function ‘zmq_send’
         SNIMPL(zmq_send(sock->_sock, &zmsg, ZMQ_NOBLOCK));
         ^
In file included from ../src/websocket.c:1: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);
                ^
../src/websocket.c: In function ‘websock_process’:
../src/websocket.c:541:9: error: too few arguments to function ‘zmq_recv’
         Z_RECV_START(msg, break);
         ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/main.c: In function ‘flush_statistics’:
../src/main.c:54:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
../src/websocket.c:546:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_NEXT(msg);
             ^
In file included from ../src/main.c:1: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);
                ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/main.c:65:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/websocket.c:550:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_LAST(msg);
             ^
../src/main.c:76:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:87:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:98:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:562:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_NEXT(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:566:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_LAST(msg);
             ^
In file included from ../src/main.c:1: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);
                ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/main.c:109:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:120:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:131:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:142:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:153:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/websocket.c:572:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_NEXT(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:579:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_LAST(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/main.c:164:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:175:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:186:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:197:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:208:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
../src/websocket.c:583:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_NEXT(msg);
             ^
In file included from ../src/main.c:1: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);
                ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/main.c:219:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:230:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
../src/websocket.c:586:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_LAST(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:241:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:252:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:263:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:274:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/main.c:285:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(sock, &msg, ZMQ_NOBLOCK) < 0) return;
     ^
In file included from ../src/main.c:1: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);
                ^
../src/websocket.c:601:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_NEXT(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:603:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_LAST(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:618:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_LAST(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
In file included from ../src/zutils.c:6:0:
../src/zutils.c: In function ‘zmq_open’:
../src/zutils.c:75:39: error: ‘ZMQ_HWM’ undeclared (first use in this function)
         SNIMPL(zmq_setsockopt(result, ZMQ_HWM, &hwm, sizeof(hwm)));
                                       ^
../src/log.h:58:25: note: in definition of macro ‘SNIMPL’
 #define SNIMPL(res) if((res) && LOG_ALERT <= LOGLEVEL) { logstd(LOG_ALERT, __FILE__, __LINE__, #res); }
                         ^
../src/zutils.c:75:39: note: each undeclared identifier is reported only once for each function it appears in
         SNIMPL(zmq_setsockopt(result, ZMQ_HWM, &hwm, sizeof(hwm)));
                                       ^
../src/log.h:58:25: note: in definition of macro ‘SNIMPL’
 #define SNIMPL(res) if((res) && LOG_ALERT <= LOGLEVEL) { logstd(LOG_ALERT, __FILE__, __LINE__, #res); }
                         ^
../src/zutils.c:83:39: error: ‘ZMQ_SWAP’ undeclared (first use in this function)
         SNIMPL(zmq_setsockopt(result, ZMQ_SWAP, &swap, sizeof(swap)));
                                       ^
../src/log.h:58:25: note: in definition of macro ‘SNIMPL’
 #define SNIMPL(res) if((res) && LOG_ALERT <= LOGLEVEL) { logstd(LOG_ALERT, __FILE__, __LINE__, #res); }
                         ^
../src/zutils.c: In function ‘skip_message’:
../src/zutils.c:120:9: error: too few arguments to function ‘zmq_recv’
         SNIMPL(zmq_recv(sock, &msg, 0));
         ^
In file included from ../src/zutils.c:2:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:625:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_NEXT(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:628:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_NEXT(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:632:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV(msg); \
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:698:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_NEXT(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:701:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_LAST(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:719:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_NEXT(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:722:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_LAST(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:730:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_LAST(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c:734:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV_LAST(msg);
             ^
In file included from ../src/websocket.c:1:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/websocket.c: In function ‘heartbeat’:
../src/websocket.c:792:9: error: too few arguments to function ‘zmq_send’
         ZMQ_SNDMORE|ZMQ_NOBLOCK) < 0) {
         ^
In file included from ../src/websocket.c:1: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);
                ^
../src/websocket.c:801:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(route->websocket.forward._sock, &msg, ZMQ_NOBLOCK) < 0) {
     ^
In file included from ../src/websocket.c:1: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);
                ^
../src/websocket.c: In function ‘send_sync’:
../src/websocket.c:817:5: error: too few arguments to function ‘zmq_send’
     if(zmq_send(socket->_sock, &msg, ZMQ_SNDMORE|ZMQ_NOBLOCK) < 0) {
     ^
In file included from ../src/websocket.c:1: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);
                ^
../src/websocket.c:833:9: error: too few arguments to function ‘zmq_send’
         SNIMPL(zmq_send(socket->_sock, &msg, ZMQ_NOBLOCK|ZMQ_SNDMORE));
         ^
In file included from ../src/websocket.c:1: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);
                ^
../src/websocket.c:836:9: error: too few arguments to function ‘zmq_send’
         SNIMPL(zmq_send(socket->_sock, &msg, ZMQ_NOBLOCK|ZMQ_SNDMORE));
         ^
In file included from ../src/websocket.c:1: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);
                ^
../src/websocket.c:842:5: error: too few arguments to function ‘zmq_send’
     SNIMPL(zmq_send(socket->_sock, &msg, ZMQ_NOBLOCK));
     ^
In file included from ../src/websocket.c:1: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);
                ^
../src/disk.c: In function ‘disk_loop’:
../src/disk.c:265:9: error: too few arguments to function ‘zmq_recv’
         if(zmq_recv(sock, &msg, 0) < 0) {
         ^
In file included from ../src/disk.c:9:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/disk.c:284:13: error: too few arguments to function ‘zmq_send’
             SNIMPL(zmq_send(sock, &msg, 0));
             ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:292:13: error: too few arguments to function ‘zmq_send’
             SNIMPL(zmq_send(sock, &msg, 0));
             ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:301:13: error: too few arguments to function ‘zmq_send’
             SNIMPL(zmq_send(sock, &msg, 0));
             ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:315:13: error: too few arguments to function ‘zmq_send’
             SNIMPL(zmq_send(sock, &result, ZMQ_SNDMORE));
             ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:317:13: error: too few arguments to function ‘zmq_send’
             SNIMPL(zmq_send(sock, &result, 0));
             ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:324:13: error: too few arguments to function ‘zmq_send’
             SNIMPL(zmq_send(sock, &result, ZMQ_SNDMORE));
             ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:326:13: error: too few arguments to function ‘zmq_send’
             SNIMPL(zmq_send(sock, &result, 0));
             ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:335:9: error: too few arguments to function ‘zmq_send’
         SNIMPL(zmq_send(sock, &msg, ZMQ_SNDMORE));
         ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:350:9: error: too few arguments to function ‘zmq_send’
         SNIMPL(zmq_send(sock, &msg, ZMQ_SNDMORE));
         ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:351:9: error: too few arguments to function ‘zmq_send’
         SNIMPL(zmq_send(sock, &result, 0));
         ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c: In function ‘disk_request’:
../src/disk.c:373:5: error: too few arguments to function ‘zmq_send’
     while(zmq_send(root.disk.socket, &msg, ZMQ_SNDMORE|ZMQ_NOBLOCK) < 0) {
     ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:389:5: error: too few arguments to function ‘zmq_send’
     SNIMPL(zmq_send(root.disk.socket, &msg, ZMQ_SNDMORE));
     ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:428:5: error: too few arguments to function ‘zmq_send’
     SNIMPL(zmq_send(root.disk.socket, &msg, 0));
     ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c: In function ‘disk_process’:
../src/disk.c:438:9: error: too few arguments to function ‘zmq_recv’
         Z_RECV_START(msg, break);
         ^
In file included from ../src/disk.c:9:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/disk.c:449:9: error: too few arguments to function ‘zmq_recv’
         Z_RECV_NEXT(msg);
         ^
In file included from ../src/disk.c:9:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/disk.c:451:9: error: too few arguments to function ‘zmq_recv’
         Z_RECV(msg);
         ^
In file included from ../src/disk.c:9:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/disk.c:474:13: error: too few arguments to function ‘zmq_recv’
             Z_RECV(msg);
             ^
In file included from ../src/disk.c:9:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/disk.c:503:17: error: too few arguments to function ‘zmq_recv’
                 Z_RECV(msg);
                 ^
In file included from ../src/disk.c:9:0:
/usr/include/zmq.h:350:16: note: declared here
 ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
                ^
../src/disk.c: In function ‘prepare_disk’:
../src/disk.c:591:9: warning: implicit declaration of function ‘pthread_create’ [-Wimplicit-function-declaration]
         SNIMPL(pthread_create(&root.disk.threads[i], NULL, disk_loop, NULL));
         ^
../src/disk.c: In function ‘release_disk’:
../src/disk.c:614:9: error: too few arguments to function ‘zmq_send’
         if(zmq_send(root.disk.socket, &msg, ZMQ_NOBLOCK|ZMQ_SNDMORE) < 0) {
         ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:623:9: error: too few arguments to function ‘zmq_send’
         zmq_send(root.disk.socket, &msg, ZMQ_NOBLOCK); // don't care if fails
         ^
In file included from ../src/disk.c:9: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);
                ^
../src/disk.c:627:9: warning: implicit declaration of function ‘pthread_join’ [-Wimplicit-function-declaration]
         SNIMPL(pthread_join(root.disk.threads[i], NULL));
         ^
Waf: Leaving directory `/tmp/yaourt-tmp-wheaties/aur-zerogw/src/zerogw-0.6.2/build'
Build failed
 -> task failed (exit status 1): 
    {task 139916836593488: c main.c -> main.c.0.o}
['/usr/bin/gcc', '-march=x86-64', '-mtune=generic', '-O2', '-pipe', '-fstack-protector', '--param=ssp-buffer-size=4', '-D_FORTIFY_SOURCE=2', '-std=gnu99', '-I/tmp/yaourt-tmp-wheaties/aur-zerogw/src/zerogw-0.6.2/build/src', '-I/tmp/yaourt-tmp-wheaties/aur-zerogw/src/zerogw-0.6.2/src', '-DLOG_STRIP_PATH="../src/"', '', '../src/main.c', '-c', '-o', '', 'src/main.c.0.o']
 -> task failed (exit status 1): 
    {task 139916836602512: c zutils.c -> zutils.c.0.o}
['/usr/bin/gcc', '-march=x86-64', '-mtune=generic', '-O2', '-pipe', '-fstack-protector', '--param=ssp-buffer-size=4', '-D_FORTIFY_SOURCE=2', '-std=gnu99', '-I/tmp/yaourt-tmp-wheaties/aur-zerogw/src/zerogw-0.6.2/build/src', '-I/tmp/yaourt-tmp-wheaties/aur-zerogw/src/zerogw-0.6.2/src', '-DLOG_STRIP_PATH="../src/"', '', '../src/zutils.c', '-c', '-o', '', 'src/zutils.c.0.o']
 -> task failed (exit status 1): 
    {task 139916836602128: c websocket.c -> websocket.c.0.o}
['/usr/bin/gcc', '-march=x86-64', '-mtune=generic', '-O2', '-pipe', '-fstack-protector', '--param=ssp-buffer-size=4', '-D_FORTIFY_SOURCE=2', '-std=gnu99', '-I/tmp/yaourt-tmp-wheaties/aur-zerogw/src/zerogw-0.6.2/build/src', '-I/tmp/yaourt-tmp-wheaties/aur-zerogw/src/zerogw-0.6.2/src', '-DLOG_STRIP_PATH="../src/"', '', '../src/websocket.c', '-c', '-o', '', 'src/websocket.c.0.o']
 -> task failed (exit status 1): 
    {task 139916836603664: c disk.c -> disk.c.0.o}
['/usr/bin/gcc', '-march=x86-64', '-mtune=generic', '-O2', '-pipe', '-fstack-protector', '--param=ssp-buffer-size=4', '-D_FORTIFY_SOURCE=2', '-std=gnu99', '-I/tmp/yaourt-tmp-wheaties/aur-zerogw/src/zerogw-0.6.2/build/src', '-I/tmp/yaourt-tmp-wheaties/aur-zerogw/src/zerogw-0.6.2/src', '-DLOG_STRIP_PATH="../src/"', '', '../src/disk.c', '-c', '-o', '', 'src/disk.c.0.o']
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build .
tailhook commented 11 years ago

Yes. You need zeromq2.x to build zerogw. As there are not many features in zeromq 3.x and I don't need any of them, I'm too lazy to port zerogw. Porting is not hard, but it needs considerable amount of testing.

codekoala commented 11 years ago

I see. Perhaps the PKGBUILD should use zeromq2 instead of zeromq then since version 3.2.2 is in the community repo? I can post a comment on the PKGBUILD if that would be more appropriate.

tailhook commented 11 years ago

Fixed. Thanks!