filemq icon indicating copy to clipboard operation
filemq copied to clipboard

"make check" error

Open tzhang27 opened this issue 11 years ago • 3 comments

Hello, when I run "make check", I got the following error. Would you please help me with that? Thanks

Making check in src /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -pedantic -Werror -Wall -Wno-unused -D_DARWIN_C_SOURCE -D_REENTRANT -D_THREAD_SAFE -g -O2 -MT fmq_client.lo -MD -MP -MF .deps/fmq_client.Tpo -c -o fmq_client.lo fmq_client.c libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -pedantic -Werror -Wall -Wno-unused -D_DARWIN_C_SOURCE -D_REENTRANT -D_THREAD_SAFE -g -O2 -MT fmq_client.lo -MD -MP -MF .deps/fmq_client.Tpo -c fmq_client.c -fno-common -DPIC -o .libs/fmq_client.o libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -pedantic -Werror -Wall -Wno-unused -D_DARWIN_C_SOURCE -D_REENTRANT -D_THREAD_SAFE -g -O2 -MT fmq_client.lo -MD -MP -MF .deps/fmq_client.Tpo -c fmq_client.c -o fmq_client.o &gt;/dev/null 2&gt;&amp;1 mv -f .deps/fmq_client.Tpo .deps/fmq_client.Plo /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -pedantic -Werror -Wall -Wno-unused -D_DARWIN_C_SOURCE -D_REENTRANT -D_THREAD_SAFE -g -O2 -MT fmq_msg.lo -MD -MP -MF .deps/fmq_msg.Tpo -c -o fmq_msg.lo fmq_msg.c libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../include -pedantic -Werror -Wall -Wno-unused -D_DARWIN_C_SOURCE -D_REENTRANT -D_THREAD_SAFE -g -O2 -MT fmq_msg.lo -MD -MP -MF .deps/fmq_msg.Tpo -c fmq_msg.c -fno-common -DPIC -o .libs/fmq_msg.o fmq_msg.c: In function 'fmq_msg_decode': fmq_msg.c:388:9: error: implicit declaration of function 'zsys_error' [-Werror=implicit-function-declaration] fmq_msg.c: In function 'fmq_msg_encode': fmq_msg.c:432:17: error: implicit declaration of function 'zhash_first' [-Werror=implicit-function-declaration] fmq_msg.c:432:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:434:21: error: implicit declaration of function 'zhash_cursor' [-Werror=implicit-function-declaration] fmq_msg.c:434:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Werror] In file included from /opt/local/include/czmq_prelude.h:209:0, from /opt/local/include/czmq.h:19, from fmq_msg.c:43: /usr/include/string.h:82:9: note: expected 'const char <em>' but argument is of type 'int' fmq_msg.c:436:21: error: implicit declaration of function 'zhash_next' [-Werror=implicit-function-declaration] fmq_msg.c:436:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:445:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:447:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Werror] In file included from /opt/local/include/czmq_prelude.h:209:0, from /opt/local/include/czmq.h:19, from fmq_msg.c:43: /usr/include/string.h:82:9: note: expected 'const char *' but argument is of type 'int' fmq_msg.c:449:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:483:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:485:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Werror] In file included from /opt/local/include/czmq_prelude.h:209:0, from /opt/local/include/czmq.h:19, from fmq_msg.c:43: /usr/include/string.h:82:9: note: expected 'const char *' but argument is of type 'int' fmq_msg.c:487:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:548:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:550:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Werror] In file included from /opt/local/include/czmq_prelude.h:209:0, from /opt/local/include/czmq.h:19, from fmq_msg.c:43: /usr/include/string.h:82:9: note: expected 'const char *' but argument is of type 'int' fmq_msg.c:550:21: error: passing argument 2 of '__builtin___memcpy_chk' makes pointer from integer without a cast [-Werror] fmq_msg.c:550:21: note: expected 'const void *' but argument is of type 'int' fmq_msg.c:552:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:559:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:561:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Werror] In file included from /opt/local/include/czmq_prelude.h:209:0, from /opt/local/include/czmq.h:19, from fmq_msg.c:43: /usr/include/string.h:82:9: note: expected 'const char *' but argument is of type 'int' fmq_msg.c:561:21: error: passing argument 2 of '__builtin___memcpy_chk' makes pointer from integer without a cast [-Werror] fmq_msg.c:561:21: note: expected 'const void *' but argument is of type 'int' fmq_msg.c:563:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:590:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:592:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Werror] In file included from /opt/local/include/czmq_prelude.h:209:0, from /opt/local/include/czmq.h:19, from fmq_msg.c:43: /usr/include/string.h:82:9: note: expected 'const char *' but argument is of type 'int' fmq_msg.c:592:21: error: passing argument 2 of '__builtin___memcpy_chk' makes pointer from integer without a cast [-Werror] fmq_msg.c:592:21: note: expected 'const void *' but argument is of type 'int' fmq_msg.c:594:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c: In function 'fmq_msg_recv': fmq_msg.c:659:5: error: implicit declaration of function 'zsock_resolve' [-Werror=implicit-function-declaration] fmq_msg.c:659:5: error: passing argument 1 of 'zsocket_type' makes pointer from integer without a cast [-Werror] In file included from /opt/local/include/czmq.h:52:0, from fmq_msg.c:43: /opt/local/include/zsockopt.h:126:17: note: expected 'void *' but argument is of type 'int' fmq_msg.c:666:5: error: passing argument 1 of 'zsocket_type' makes pointer from integer without a cast [-Werror] In file included from /opt/local/include/czmq.h:52:0, from fmq_msg.c:43: /opt/local/include/zsockopt.h:126:17: note: expected 'void *' but argument is of type 'int' fmq_msg.c: In function 'fmq_msg_recv_nowait': fmq_msg.c:684:5: error: passing argument 1 of 'zsocket_type' makes pointer from integer without a cast [-Werror] In file included from /opt/local/include/czmq.h:52:0, from fmq_msg.c:43: /opt/local/include/zsockopt.h:126:17: note: expected 'void *' but argument is of type 'int' fmq_msg.c:691:5: error: passing argument 1 of 'zsocket_type' makes pointer from integer without a cast [-Werror] In file included from /opt/local/include/czmq.h:52:0, from fmq_msg.c:43: /opt/local/include/zsockopt.h:126:17: note: expected 'void *' but argument is of type 'int' fmq_msg.c: In function 'fmq_msg_send': fmq_msg.c:718:5: error: passing argument 1 of 'zsocket_type' makes pointer from integer without a cast [-Werror] In file included from /opt/local/include/czmq.h:52:0, from fmq_msg.c:43: /opt/local/include/zsockopt.h:126:17: note: expected 'void *' but argument is of type 'int' fmq_msg.c: In function 'fmq_msg_print': fmq_msg.c:1144:13: error: implicit declaration of function 'zsys_debug' [-Werror=implicit-function-declaration] fmq_msg.c:1161:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:1164:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:1171:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:1174:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:1203:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:1206:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c: In function 'fmq_msg_test': fmq_msg.c:1798:5: error: unknown type name 'zsock_t' fmq_msg.c:1798:5: error: implicit declaration of function 'zsock_new' [-Werror=implicit-function-declaration] fmq_msg.c:1798:22: error: initialization makes pointer from integer without a cast [-Werror] fmq_msg.c:1800:5: error: implicit declaration of function 'zsock_connect' [-Werror=implicit-function-declaration] fmq_msg.c:1802:5: error: unknown type name 'zsock_t' fmq_msg.c:1802:23: error: initialization makes pointer from integer without a cast [-Werror] fmq_msg.c:1804:5: error: implicit declaration of function 'zsock_bind' [-Werror=implicit-function-declaration] fmq_msg.c:2046:5: error: implicit declaration of function 'zsock_destroy' [-Werror=implicit-function-declaration] cc1: all warnings being treated as errors make[1]: *</em>* [fmq_msg.lo] Error 1 make: *** [check-recursive] Error 1

tzhang27 avatar Sep 29 '14 20:09 tzhang27

Before building filemq, make sure you build/install libzmq and then czmq.

On Mon, Sep 29, 2014 at 10:57 PM, tzhang27 [email protected] wrote:

Hello, when I run "make check", I got the following error. Would you please help me with that? I got the same error on OS X and Scientific Linux. Thanks

In file included from fmq_msg.c:43:0: ../include/fmq_msg.h:115:21: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:119:1: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:141:1: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:146:1: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:151:1: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:154:9: error: unknown type name 'zhash_t' ../include/fmq_msg.h:155:9: error: unknown type name 'zhash_t' ../include/fmq_msg.h:158:1: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:163:1: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:165:9: error: unknown type name 'uint64_t' ../include/fmq_msg.h:166:9: error: unknown type name 'uint64_t' ../include/fmq_msg.h:169:1: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:171:9: error: unknown type name 'uint64_t' ../include/fmq_msg.h:172:9: error: unknown type name 'byte' ../include/fmq_msg.h:174:9: error: unknown type name 'uint64_t' ../include/fmq_msg.h:175:9: error: unknown type name 'byte' ../include/fmq_msg.h:176:9: error: unknown type name 'zhash_t' ../include/fmq_msg.h:177:9: error: unknown type name 'zchunk_t' ../include/fmq_msg.h:180:1: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:185:1: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:190:1: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:195:1: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:200:1: error: unknown type name 'zmsg_t' ../include/fmq_msg.h:220:9: error: unknown type name 'zhash_t' ../include/fmq_msg.h:221:9: error: unknown type name 'zhash_t' ../include/fmq_msg.h:232:9: error: unknown type name 'uint64_t' ../include/fmq_msg.h:233:9: error: unknown type name 'uint64_t' ../include/fmq_msg.h:239:9: error: unknown type name 'uint64_t' ../include/fmq_msg.h:240:9: error: unknown type name 'byte' ../include/fmq_msg.h:242:9: error: unknown type name 'uint64_t' ../include/fmq_msg.h:243:9: error: unknown type name 'byte' ../include/fmq_msg.h:244:9: error: unknown type name 'zhash_t' ../include/fmq_msg.h:245:9: error: unknown type name 'zchunk_t' ../include/fmq_msg.h:283:1: error: unknown type name 'zframe_t' ../include/fmq_msg.h:286:46: error: unknown type name 'zframe_t' ../include/fmq_msg.h:303:1: error: unknown type name 'zhash_t' ../include/fmq_msg.h:306:1: error: unknown type name 'zhash_t' ../include/fmq_msg.h:310:43: error: unknown type name 'zhash_t' ../include/fmq_msg.h:316:1: error: unknown type name 'uint64_t' ../include/fmq_msg.h:318:26: error: unknown type name 'uint64_t' ../include/fmq_msg.h:322:1: error: unknown type name 'size_t' ../include/fmq_msg.h:326:1: error: unknown type name 'zhash_t' ../include/fmq_msg.h:329:1: error: unknown type name 'zhash_t' ../include/fmq_msg.h:333:41: error: unknown type name 'zhash_t' ../include/fmq_msg.h:339:1: error: unknown type name 'uint64_t' ../include/fmq_msg.h:341:26: error: unknown type name 'uint64_t' ../include/fmq_msg.h:345:1: error: unknown type name 'size_t' ../include/fmq_msg.h:349:1: error: unknown type name 'uint64_t' ../include/fmq_msg.h:352:42: error: unknown type name 'uint64_t' ../include/fmq_msg.h:355:1: error: unknown type name 'uint64_t' ../include/fmq_msg.h:358:44: error: unknown type name 'uint64_t' ../include/fmq_msg.h:361:1: error: unknown type name 'byte' ../include/fmq_msg.h:364:45: error: unknown type name 'byte' ../include/fmq_msg.h:373:1: error: unknown type name 'uint64_t' ../include/fmq_msg.h:376:42: error: unknown type name 'uint64_t' ../include/fmq_msg.h:379:1: error: unknown type name 'byte' ../include/fmq_msg.h:382:39: error: unknown type name 'byte' ../include/fmq_msg.h:385:1: error: unknown type name 'zhash_t' ../include/fmq_msg.h:388:1: error: unknown type name 'zhash_t' ../include/fmq_msg.h:392:43: error: unknown type name 'zhash_t' ../include/fmq_msg.h:398:1: error: unknown type name 'uint64_t' ../include/fmq_msg.h:400:26: error: unknown type name 'uint64_t' ../include/fmq_msg.h:404:1: error: unknown type name 'size_t' ../include/fmq_msg.h:408:1: error: unknown type name 'zchunk_t' ../include/fmq_msg.h:411:1: error: unknown type name 'zchunk_t' ../include/fmq_msg.h:415:41: error: unknown type name 'zchunk_t' ../include/fmq_msg.h:425:19: error: unknown type name 'bool' fmq_msg.c:48:5: error: unknown type name 'zframe_t' fmq_msg.c:50:5: error: unknown type name 'byte' fmq_msg.c:51:5: error: unknown type name 'byte' fmq_msg.c:53:5: error: unknown type name 'uint16_t' fmq_msg.c:55:5: error: unknown type name 'zhash_t' fmq_msg.c:56:5: error: unknown type name 'size_t' fmq_msg.c:57:5: error: unknown type name 'zhash_t' fmq_msg.c:58:5: error: unknown type name 'size_t' fmq_msg.c:59:5: error: unknown type name 'uint64_t' fmq_msg.c:60:5: error: unknown type name 'uint64_t' fmq_msg.c:61:5: error: unknown type name 'byte' fmq_msg.c:63:5: error: unknown type name 'uint64_t' fmq_msg.c:64:5: error: unknown type name 'byte' fmq_msg.c:65:5: error: unknown type name 'zhash_t' fmq_msg.c:66:5: error: unknown type name 'size_t' fmq_msg.c:67:5: error: unknown type name 'zchunk_t' fmq_msg.c: In function 'fmq_msg_new': fmq_msg.c:213:5: error: implicit declaration of function 'zmalloc' [-Werror=implicit-function-declaration] fmq_msg.c:213:23: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c: In function 'fmq_msg_destroy': fmq_msg.c:225:5: error: implicit declaration of function 'assert' [-Werror=implicit-function-declaration] fmq_msg.c:230:9: error: implicit declaration of function 'zframe_destroy' [-Werror=implicit-function-declaration] fmq_msg.c:231:9: error: implicit declaration of function 'free' [-Werror=implicit-function-declaration] fmq_msg.c:231:9: error: incompatible implicit declaration of built-in function 'free' [-Werror] fmq_msg.c:233:9: error: implicit declaration of function 'zhash_destroy' [-Werror=implicit-function-declaration] fmq_msg.c:237:9: error: implicit declaration of function 'zchunk_destroy' [-Werror=implicit-function-declaration] fmq_msg.c:242:19: error: 'NULL' undeclared (first use in this function) fmq_msg.c:242:19: note: each undeclared identifier is reported only once for each function it appears in fmq_msg.c: At top level: fmq_msg.c:253:17: error: unknown type name 'zmsg_t' fmq_msg.c:400:1: error: unknown type name 'zmsg_t' fmq_msg.c: In function 'fmq_msg_encode': fmq_msg.c:407:5: error: unknown type name 'zmsg_t' fmq_msg.c:407:5: error: implicit declaration of function 'zmsg_new' [-Werror=implicit-function-declaration] fmq_msg.c:407:19: error: initialization makes pointer from integer without a cast [-Werror] fmq_msg.c:409:5: error: unknown type name 'size_t' fmq_msg.c:413:13: error: implicit declaration of function 'strlen' [-Werror=implicit-function-declaration] fmq_msg.c:413:31: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] fmq_msg.c:431:17: error: implicit declaration of function 'zhash_first' [-Werror=implicit-function-declaration] fmq_msg.c:431:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:433:21: error: implicit declaration of function 'zhash_cursor' [-Werror=implicit-function-declaration] fmq_msg.c:433:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Werror] fmq_msg.c:433:21: note: expected 'const char

' but argument is of type 'int' fmq_msg.c:435:21: error: implicit declaration of function 'zhash_next' [-Werror=implicit-function-declaration] fmq_msg.c:435:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:444:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:446:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Werror] fmq_msg.c:446:21: note: expected 'const char ' but argument is of type 'int' fmq_msg.c:448:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:482:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:484:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Werror] fmq_msg.c:484:21: note: expected 'const char *' but argument is of type 'int' fmq_msg.c:486:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:493:17: error: implicit declaration of function 'zchunk_size' [-Werror=implicit-function-declaration] fmq_msg.c:520:13: error: implicit declaration of function 'zsys_error' [-Werror=implicit-function-declaration] fmq_msg.c:522:21: error: 'false' undeclared (first use in this function) fmq_msg.c:525:5: error: unknown type name 'zframe_t' fmq_msg.c:525:5: error: implicit declaration of function 'zframe_new' [-Werror=implicit-function-declaration] fmq_msg.c:525:35: error: 'NULL' undeclared (first use in this function) fmq_msg.c:526:5: error: implicit declaration of function 'zframe_data' [-Werror=implicit-function-declaration] fmq_msg.c:526:18: error: assignment makes pointer from integer without a cast [-Werror] fmq_msg.c:527:5: error: 'byte' undeclared (first use in this function) fmq_msg.c:528:5: error: expected expression before ')' token fmq_msg.c:532:13: error: unknown type name 'size_t' fmq_msg.c:532:13: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] fmq_msg.c:532:13: error: expected expression before ')' token fmq_msg.c:532:13: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration] fmq_msg.c:532:13: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] fmq_msg.c:541:17: error: unknown type name 'size_t' fmq_msg.c:541:17: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] fmq_msg.c:541:17: error: expected expression before ')' token fmq_msg.c:541:17: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] fmq_msg.c:544:17: error: expected expression before ')' token fmq_msg.c:546:17: error: implicit declaration of function 'zhash_size' [-Werror=implicit-function-declaration] fmq_msg.c:547:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:549:21: error: unknown type name 'size_t' fmq_msg.c:549:21: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] fmq_msg.c:549:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Werror] fmq_msg.c:549:21: note: expected 'const char *' but argument is of type 'int' fmq_msg.c:549:21: error: expected expression before ')' token fmq_msg.c:549:21: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] fmq_msg.c:549:21: error: passing argument 2 of 'memcpy' makes pointer from integer without a cast [-Werror] fmq_msg.c:549:21: note: expected 'const void *' but argument is of type 'int' fmq_msg.c:550:21: error: unknown type name 'size_t' fmq_msg.c:550:21: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] fmq_msg.c:550:21: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] fmq_msg.c:551:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:558:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:560:21: error: unknown type name 'size_t' fmq_msg.c:560:21: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] fmq_msg.c:560:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Werror] fmq_msg.c:560:21: note: expected 'const char *' but argument is of type 'int' fmq_msg.c:560:21: error: expected expression before ')' token fmq_msg.c:560:21: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] fmq_msg.c:560:21: error: passing argument 2 of 'memcpy' makes pointer from integer without a cast [-Werror] fmq_msg.c:560:21: note: expected 'const void *' but argument is of type 'int' fmq_msg.c:561:21: error: unknown type name 'size_t' fmq_msg.c:561:21: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] fmq_msg.c:561:21: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] fmq_msg.c:562:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:573:13: error: right shift count >= width of type [-Werror] fmq_msg.c:573:13: error: right shift count >= width of type [-Werror] fmq_msg.c:573:13: error: right shift count >= width of type [-Werror] fmq_msg.c:573:13: error: right shift count >= width of type [-Werror] fmq_msg.c:574:13: error: right shift count >= width of type [-Werror] fmq_msg.c:574:13: error: right shift count >= width of type [-Werror] fmq_msg.c:574:13: error: right shift count >= width of type [-Werror] fmq_msg.c:574:13: error: right shift count >= width of type [-Werror] fmq_msg.c:578:13: error: right shift count >= width of type [-Werror] fmq_msg.c:578:13: error: right shift count >= width of type [-Werror] fmq_msg.c:578:13: error: right shift count >= width of type [-Werror] fmq_msg.c:578:13: error: right shift count >= width of type [-Werror] fmq_msg.c:579:13: error: expected expression before ')' token fmq_msg.c:581:17: error: unknown type name 'size_t' fmq_msg.c:581:17: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] fmq_msg.c:581:17: error: expected expression before ')' token fmq_msg.c:581:17: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] fmq_msg.c:584:17: error: expected expression before ')' token fmq_msg.c:585:13: error: right shift count >= width of type [-Werror] fmq_msg.c:585:13: error: right shift count >= width of type [-Werror] fmq_msg.c:585:13: error: right shift count >= width of type [-Werror] fmq_msg.c:585:13: error: right shift count >= width of type [-Werror] fmq_msg.c:586:13: error: expected expression before ')' token fmq_msg.c:589:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:591:21: error: unknown type name 'size_t' fmq_msg.c:591:21: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] fmq_msg.c:591:21: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Werror] fmq_msg.c:591:21: note: expected 'const char *' but argument is of type 'int' fmq_msg.c:591:21: error: expected expression before ')' token fmq_msg.c:591:21: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] fmq_msg.c:591:21: error: passing argument 2 of 'memcpy' makes pointer from integer without a cast [-Werror] fmq_msg.c:591:21: note: expected 'const void *' but argument is of type 'int' fmq_msg.c:592:21: error: unknown type name 'size_t' fmq_msg.c:592:21: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] fmq_msg.c:592:21: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] fmq_msg.c:593:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:600:17: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] fmq_msg.c:601:25: error: implicit declaration of function 'zchunk_data' [-Werror=implicit-function-declaration] fmq_msg.c:602:25: error: passing argument 2 of 'memcpy' makes pointer from integer without a cast [-Werror] fmq_msg.c:602:25: note: expected 'const void *' but argument is of type 'int' fmq_msg.c:620:17: error: unknown type name 'size_t' fmq_msg.c:620:17: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] fmq_msg.c:620:17: error: expected expression before ')' token fmq_msg.c:620:17: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] fmq_msg.c:623:17: error: expected expression before ')' token fmq_msg.c:628:17: error: unknown type name 'size_t' fmq_msg.c:628:17: error: incompatible implicit declaration of built-in function 'strlen' [-Werror] fmq_msg.c:628:17: error: expected expression before ')' token fmq_msg.c:628:17: error: incompatible implicit declaration of built-in function 'memcpy' [-Werror] fmq_msg.c:631:17: error: expected expression before ')' token fmq_msg.c:636:5: error: implicit declaration of function 'zmsg_append' [-Werror=implicit-function-declaration] fmq_msg.c:637:9: error: implicit declaration of function 'zmsg_destroy' [-Werror=implicit-function-declaration] fmq_msg.c: In function 'fmq_msg_recv': fmq_msg.c:655:5: error: unknown type name 'zmsg_t' fmq_msg.c:655:5: error: implicit declaration of function 'zmsg_recv' [-Werror=implicit-function-declaration] fmq_msg.c:655:19: error: initialization makes pointer from integer without a cast [-Werror] fmq_msg.c:657:5: error: unknown type name 'zframe_t' fmq_msg.c:657:28: error: 'NULL' undeclared (first use in this function) fmq_msg.c:658:5: error: implicit declaration of function 'zsocket_type' [-Werror=implicit-function-declaration] fmq_msg.c:658:5: error: implicit declaration of function 'zsock_resolve' [-Werror=implicit-function-declaration] fmq_msg.c:658:49: error: 'ZMQ_ROUTER' undeclared (first use in this function) fmq_msg.c:659:9: error: implicit declaration of function 'zmsg_pop' [-Werror=implicit-function-declaration] fmq_msg.c:659:20: error: assignment makes pointer from integer without a cast [-Werror] fmq_msg.c:661:9: error: implicit declaration of function 'zmsg_next' [-Werror=implicit-function-declaration] fmq_msg.c:664:5: error: implicit declaration of function 'fmq_msg_decode' [-Werror=implicit-function-declaration] fmq_msg.c:664:26: error: initialization makes pointer from integer without a cast [-Werror] fmq_msg.c: In function 'fmq_msg_recv_nowait': fmq_msg.c:680:5: error: unknown type name 'zmsg_t' fmq_msg.c:680:5: error: implicit declaration of function 'zmsg_recv_nowait' [-Werror=implicit-function-declaration] fmq_msg.c:680:19: error: initialization makes pointer from integer without a cast [-Werror] fmq_msg.c:682:5: error: unknown type name 'zframe_t' fmq_msg.c:682:28: error: 'NULL' undeclared (first use in this function) fmq_msg.c:683:49: error: 'ZMQ_ROUTER' undeclared (first use in this function) fmq_msg.c:684:20: error: assignment makes pointer from integer without a cast [-Werror] fmq_msg.c:689:26: error: initialization makes pointer from integer without a cast [-Werror] fmq_msg.c: In function 'fmq_msg_send': fmq_msg.c:710:5: error: unknown type name 'zframe_t' fmq_msg.c:711:24: error: 'NULL' undeclared (first use in this function) fmq_msg.c:714:5: error: unknown type name 'zmsg_t' fmq_msg.c:717:50: error: 'ZMQ_ROUTER' undeclared (first use in this function) fmq_msg.c:719:9: error: implicit declaration of function 'zmsg_prepend' [-Werror=implicit-function-declaration] fmq_msg.c:724:5: error: implicit declaration of function 'zmsg_send' [-Werror=implicit-function-declaration] fmq_msg.c: At top level: fmq_msg.c:747:1: error: unknown type name 'zmsg_t' fmq_msg.c:759:1: error: unknown type name 'zmsg_t' fmq_msg.c:771:1: error: unknown type name 'zmsg_t' fmq_msg.c:774:5: error: unknown type name 'zhash_t' fmq_msg.c:775:5: error: unknown type name 'zhash_t' fmq_msg.c:790:1: error: unknown type name 'zmsg_t' fmq_msg.c:802:1: error: unknown type name 'zmsg_t' fmq_msg.c:804:5: error: unknown type name 'uint64_t' fmq_msg.c:805:5: error: unknown type name 'uint64_t' fmq_msg.c:817:1: error: unknown type name 'zmsg_t' fmq_msg.c:819:5: error: unknown type name 'uint64_t' fmq_msg.c:820:5: error: unknown type name 'byte' fmq_msg.c:822:5: error: unknown type name 'uint64_t' fmq_msg.c:823:5: error: unknown type name 'byte' fmq_msg.c:824:5: error: unknown type name 'zhash_t' fmq_msg.c:825:5: error: unknown type name 'zchunk_t' fmq_msg.c:844:1: error: unknown type name 'zmsg_t' fmq_msg.c:856:1: error: unknown type name 'zmsg_t' fmq_msg.c:868:1: error: unknown type name 'zmsg_t' fmq_msg.c:880:1: error: unknown type name 'zmsg_t' fmq_msg.c:893:1: error: unknown type name 'zmsg_t' fmq_msg.c:934:5: error: unknown type name 'zhash_t' fmq_msg.c:935:5: error: unknown type name 'zhash_t' fmq_msg.c:965:5: error: unknown type name 'uint64_t' fmq_msg.c:966:5: error: unknown type name 'uint64_t' fmq_msg.c:981:5: error: unknown type name 'uint64_t' fmq_msg.c:982:5: error: unknown type name 'byte' fmq_msg.c:984:5: error: unknown type name 'uint64_t' fmq_msg.c:985:5: error: unknown type name 'byte' fmq_msg.c:986:5: error: unknown type name 'zhash_t' fmq_msg.c:987:5: error: unknown type name 'zchunk_t' fmq_msg.c: In function 'fmq_msg_dup': fmq_msg.c:1074:16: error: 'NULL' undeclared (first use in this function) fmq_msg.c:1078:9: error: implicit declaration of function 'zframe_dup' [-Werror=implicit-function-declaration] fmq_msg.c:1078:26: error: assignment makes pointer from integer without a cast [-Werror] fmq_msg.c:1081:13: error: implicit declaration of function 'strdup' [-Werror=implicit-function-declaration] fmq_msg.c:1081:46: error: incompatible implicit declaration of built-in function 'strdup' [-Werror] fmq_msg.c:1090:13: error: implicit declaration of function 'zhash_dup' [-Werror=implicit-function-declaration] fmq_msg.c:1109:13: error: implicit declaration of function 'zchunk_dup' [-Werror=implicit-function-declaration] fmq_msg.c: In function 'fmq_msg_print': fmq_msg.c:1143:13: error: implicit declaration of function 'zsys_debug' [-Werror=implicit-function-declaration] fmq_msg.c:1160:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:1163:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:1170:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:1173:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:1202:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c:1205:28: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c: At top level: fmq_msg.c:1248:1: error: unknown type name 'zframe_t' fmq_msg.c:1256:42: error: unknown type name 'zframe_t' fmq_msg.c: In function 'fmq_msg_set_path': fmq_msg.c:1340:5: error: unknown type name 'va_list' fmq_msg.c:1341:5: error: implicit declaration of function 'va_start' [-Werror=implicit-function-declaration] fmq_msg.c:1342:5: error: incompatible implicit declaration of built-in function 'free' [-Werror] fmq_msg.c:1343:5: error: implicit declaration of function 'zsys_vprintf' [-Werror=implicit-function-declaration] fmq_msg.c:1343:16: error: assignment makes pointer from integer without a cast [-Werror] fmq_msg.c:1344:5: error: implicit declaration of function 'va_end' [-Werror=implicit-function-declaration] fmq_msg.c: At top level: fmq_msg.c:1351:1: error: unknown type name 'zhash_t' fmq_msg.c:1360:1: error: unknown type name 'zhash_t' fmq_msg.c: In function 'fmq_msg_get_options': fmq_msg.c:1363:5: error: unknown type name 'zhash_t' fmq_msg.c:1364:21: error: 'NULL' undeclared (first use in this function) fmq_msg.c: At top level: fmq_msg.c:1371:39: error: unknown type name 'zhash_t' fmq_msg.c: In function 'fmq_msg_options_string': fmq_msg.c:1387:25: error: 'NULL' undeclared (first use in this function) fmq_msg.c:1389:9: error: implicit declaration of function 'zhash_lookup' [-Werror=implicit-function-declaration] fmq_msg.c:1389:17: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c: At top level: fmq_msg.c:1396:1: error: unknown type name 'uint64_t' fmq_msg.c:1397:59: error: unknown type name 'uint64_t' fmq_msg.c: In function 'fmq_msg_options_insert': fmq_msg.c:1415:5: error: unknown type name 'va_list' fmq_msg.c:1417:20: error: initialization makes pointer from integer without a cast [-Werror] fmq_msg.c:1422:9: error: implicit declaration of function 'zhash_new' [-Werror=implicit-function-declaration] fmq_msg.c:1422:23: error: assignment makes pointer from integer without a cast [-Werror] fmq_msg.c:1423:9: error: implicit declaration of function 'zhash_autofree' [-Werror=implicit-function-declaration] fmq_msg.c:1425:5: error: implicit declaration of function 'zhash_update' [-Werror=implicit-function-declaration] fmq_msg.c:1426:5: error: incompatible implicit declaration of built-in function 'free' [-Werror] fmq_msg.c: At top level: fmq_msg.c:1429:1: error: unknown type name 'size_t' fmq_msg.c:1439:1: error: unknown type name 'zhash_t' fmq_msg.c:1448:1: error: unknown type name 'zhash_t' fmq_msg.c: In function 'fmq_msg_get_cache': fmq_msg.c:1451:5: error: unknown type name 'zhash_t' fmq_msg.c:1452:19: error: 'NULL' undeclared (first use in this function) fmq_msg.c: At top level: fmq_msg.c:1459:37: error: unknown type name 'zhash_t' fmq_msg.c: In function 'fmq_msg_cache_string': fmq_msg.c:1475:25: error: 'NULL' undeclared (first use in this function) fmq_msg.c:1477:17: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c: At top level: fmq_msg.c:1484:1: error: unknown type name 'uint64_t' fmq_msg.c:1485:57: error: unknown type name 'uint64_t' fmq_msg.c: In function 'fmq_msg_cache_insert': fmq_msg.c:1503:5: error: unknown type name 'va_list' fmq_msg.c:1505:20: error: initialization makes pointer from integer without a cast [-Werror] fmq_msg.c:1510:21: error: assignment makes pointer from integer without a cast [-Werror] fmq_msg.c:1514:5: error: incompatible implicit declaration of built-in function 'free' [-Werror] fmq_msg.c: At top level: fmq_msg.c:1517:1: error: unknown type name 'size_t' fmq_msg.c:1527:1: error: unknown type name 'uint64_t' fmq_msg.c:1535:38: error: unknown type name 'uint64_t' fmq_msg.c:1545:1: error: unknown type name 'uint64_t' fmq_msg.c:1553:40: error: unknown type name 'uint64_t' fmq_msg.c:1563:1: error: unknown type name 'byte' fmq_msg.c:1571:41: error: unknown type name 'byte' fmq_msg.c: In function 'fmq_msg_set_filename': fmq_msg.c:1593:5: error: unknown type name 'va_list' fmq_msg.c:1595:5: error: incompatible implicit declaration of built-in function 'free' [-Werror] fmq_msg.c:1596:20: error: assignment makes pointer from integer without a cast [-Werror] fmq_msg.c: At top level: fmq_msg.c:1604:1: error: unknown type name 'uint64_t' fmq_msg.c:1612:38: error: unknown type name 'uint64_t' fmq_msg.c:1622:1: error: unknown type name 'byte' fmq_msg.c:1630:35: error: unknown type name 'byte' fmq_msg.c:1640:1: error: unknown type name 'zhash_t' fmq_msg.c:1649:1: error: unknown type name 'zhash_t' fmq_msg.c: In function 'fmq_msg_get_headers': fmq_msg.c:1652:5: error: unknown type name 'zhash_t' fmq_msg.c:1653:21: error: 'NULL' undeclared (first use in this function) fmq_msg.c: At top level: fmq_msg.c:1660:39: error: unknown type name 'zhash_t' fmq_msg.c: In function 'fmq_msg_headers_string': fmq_msg.c:1676:25: error: 'NULL' undeclared (first use in this function) fmq_msg.c:1678:17: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] fmq_msg.c: At top level: fmq_msg.c:1685:1: error: unknown type name 'uint64_t' fmq_msg.c:1686:59: error: unknown type name 'uint64_t' fmq_msg.c: In function 'fmq_msg_headers_insert': fmq_msg.c:1704:5: error: unknown type name 'va_list' fmq_msg.c:1706:20: error: initialization makes pointer from integer without a cast [-Werror] fmq_msg.c:1711:23: error: assignment makes pointer from integer without a cast [-Werror] fmq_msg.c:1715:5: error: incompatible implicit declaration of built-in function 'free' [-Werror] fmq_msg.c: At top level: fmq_msg.c:1718:1: error: unknown type name 'size_t' fmq_msg.c:1728:1: error: unknown type name 'zchunk_t' fmq_msg.c:1737:1: error: unknown type name 'zchunk_t' fmq_msg.c: In function 'fmq_msg_get_chunk': fmq_msg.c:1740:5: error: unknown type name 'zchunk_t' fmq_msg.c:1741:19: error: 'NULL' undeclared (first use in this function) fmq_msg.c: At top level: fmq_msg.c:1748:37: error: unknown type name 'zchunk_t' fmq_msg.c: In function 'fmq_msg_set_reason': fmq_msg.c:1773:5: error: unknown type name 'va_list' fmq_msg.c:1775:5: error: incompatible implicit declaration of built-in function 'free' [-Werror] fmq_msg.c:1776:18: error: assignment makes pointer from integer without a cast [-Werror] fmq_msg.c: At top level: fmq_msg.c:1786:15: error: unknown type name 'bool' cc1: all warnings being treated as errors make[1]: * [fmq_msg.lo] Error 1 make: *** [check-recursive] Error 1

— Reply to this email directly or view it on GitHub https://github.com/zeromq/filemq/issues/56.

hintjens avatar Sep 29 '14 21:09 hintjens

I did install libzmq 4.0.4 and czmq 2.2.0..........

tzhang27 avatar Sep 29 '14 21:09 tzhang27

Finally, I made it .......

Is there a simple way to send a single file from server to client? In zmq, we have socket.send(msg) and socket.recv(msg), do we have any methods like send(file) and recv(file) ??

Thank you very much!

tzhang27 avatar Oct 03 '14 21:10 tzhang27