Description
Hello,
when I run "make check", I got the following error. Would you please help me with that?
Thanks
<xmp>
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 >/dev/null 2>&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 ' 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]: ** [fmq_msg.lo] Error 1
make: *** [check-recursive] Error 1
</xmp>