[zeromq-dev] Small issue compiling zmq

Paulo Henrique Silva ph.silva at gmail.com
Fri Jul 10 06:10:35 CEST 2009


Hi,

I had just a small issue while compiling zmq 0.6.1. After a run of
estimate_cpu_freq I exported PERF_CPU_FREQUENCY as instructed but
after make I got:

make[3]: Entrando no diretório
`/home/henrique/ph/guarilha/zmq-0.6.1/perf/tests/zmq'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../../libzmq/zmq
-I../../../libzmq/zmq -I../../.. -I../../../libzmq -I../../..
-I../../../libzmq  -D_REENTRANT  -Wall -pedantic -Werror
-DPERF_CPU_FREQUENCY=2194499568 -MT local_lat-local_lat.o -MD -MP -MF
".deps/local_lat-local_lat.Tpo" -c -o local_lat-local_lat.o `test -f
'local_lat.cpp' || echo './'`local_lat.cpp; \
	then mv -f ".deps/local_lat-local_lat.Tpo"
".deps/local_lat-local_lat.Po"; else rm -f
".deps/local_lat-local_lat.Tpo"; exit 1; fi
cc1plus: warnings being treated as errors
In file included from ../scenarios/lat.hpp:56,
                 from local_lat.cpp:24:
../scenarios/../../helpers/time.hpp:169: error: this decimal constant
is unsigned only in ISO C90
../scenarios/../../helpers/time.hpp:180: error: this decimal constant
is unsigned only in ISO C90
make[3]: ** [local_lat-local_lat.o] Erro 1

Looks like g++ 4.3.3 on Ubuntu 9.04 doesn't like my
PERF_CPU_FREQUENCY. After a quick google I found that I can (and
probably should) explicitly declare the constant unsigned on my export
to make g++ happy, like

-DPERF_CPU_FREQUENCY=2194499568UL

Thanks for the great system,

-- Paulo



More information about the zeromq-dev mailing list