[zeromq-dev] czmq compilation failure (-Werror)

Patrick Noffke patrick.noffke at gmail.com
Tue Sep 10 22:20:26 CEST 2013


I am attempting to compile czmq with a cross-compiler (gcc 4.8.0), and I am
getting a bunch of errors like this:

make[3]: Entering directory `/home/pnoffke/QT_Linux/compile/czmq-1.4.1/src'
/bin/sh ../libtool --tag=CC --mode=compile x86_64-quadtech-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I../include -pedantic -Werror -Wall -D_GNU_SOURCE
-DLINUX -D_REENTRANT -D_THREAD_SAFE -I/home/pnoffke/QT_Linux/tools/include
-g -O2 -MT zbeacon.lo -MD -MP -MF .deps/zbeacon.Tpo -c -o zbeacon.lo
libtool: compile: x86_64-quadtech-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I../include -pedantic -Werror -Wall -D_GNU_SOURCE -DLINUX -D_REENTRANT
-D_THREAD_SAFE -I/home/pnoffke/QT_Linux/tools/include -g -O2 -MT zbeacon.lo
-MD -MP -MF .deps/zbeacon.Tpo -c zbeacon.c -fPIC -DPIC -o .libs/zbeacon.o
In file included from zbeacon.c:43:0:
../include/czmq.h:30:1: error: C++ style comments are not allowed in ISO
C90 [-Werror]
// Set up environment for the application

There are also errors like the following:

zbeacon.c: In function 'zbeacon_publish':
zbeacon.c:176:5: error: ISO C90 forbids mixed declarations and code
zmsg_t *msg = zmsg_new ();

I can change the compiler flags to not include -Werror (or attempt to patch
the code), but have these already been addressed in github?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130910/912d0c54/attachment.htm>

More information about the zeromq-dev mailing list