[zeromq-dev] 0MQ/2.0-beta1 on OSX
Asko Kauppi
askok at dnainternet.net
Wed Jan 13 05:02:56 CET 2010
Also I was able to compile 2.0 (alpha) without problems.
- One thing to note is that samples say "eth0", which needs to be
"en0" on OS X. Maybe the authors find a way to convey that on the
website?
- How can one run the samples on one machine only (local loopback)?
This must be some simple thing I've overlooked.
Conserning beta 1, here are my build results on OS X 10.5.8 (PowerPC,
using fink):
<<
$ ./configure --with-gnu-ld --with-c --with-cpp --with-perf
...
$ make
....
i_endpoint.hpp:27: warning: ‘struct zmq::i_endpoint’ has virtual
functions but non-virtual destructor
i_inout.hpp:31: warning: ‘struct zmq::i_inout’ has virtual functions
but non-virtual destructor
<<
It puzzles me that you have virtual methods on a struct. I thought
structs weren't deriveable.
Anyways, adding "virtual ~i_inout() {}" and so will eliminate these
warnings. They are gcc, not OS X.
The fix you already mentioned for "#include <poll.h>" works, and
things compile fine.
Thanks for 0MQ :)
-asko
malist kirjoitti 7.1.2010 kello 14:53:
>
> Hello,
>
> I tried to compile iMac:zeromq-2.0-beta1 in Mac OSX 10.6.2 and I get
> following errors.
>
> pasi-iMac:zeromq-2.0-beta1 pasi$ make
> Making all in src
> make all-am
> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -
> I. -Wall -Wno-uninitialized -g -O2 -MT libzmq_la-zmq.lo -MD -MP -
> MF .deps/libzmq_la-zmq.Tpo -c -o libzmq_la-zmq.lo `test -f 'zmq.cpp'
> || echo './'`zmq.cpp
> g++ -DHAVE_CONFIG_H -I. -Wall -Wno-uninitialized -g -O2 -MT
> libzmq_la-zmq.lo -MD -MP -MF .deps/libzmq_la-zmq.Tpo -c zmq.cpp -
> fno-common -DPIC -o .libs/libzmq_la-zmq.o
> zmq.cpp: In function ‘int zmq_poll(zmq_pollitem_t*, int, long int)’:
> zmq.cpp:274: error: ‘pollfd’ was not declared in this scope
> zmq.cpp:274: error: ‘pollfds’ was not declared in this scope
> zmq.cpp:274: error: expected primary-expression before ‘)’ token
> zmq.cpp:274: error: expected `;' before ‘malloc’
> zmq.cpp:306: error: ‘POLLIN’ was not declared in this scope
> zmq.cpp:307: error: ‘POLLOUT’ was not declared in this scope
> zmq.cpp:320: error: ‘POLLIN’ was not declared in this scope
> zmq.cpp:332: error: ‘poll’ was not declared in this scope
> zmq.cpp:345: error: ‘POLLIN’ was not declared in this scope
> zmq.cpp:356: error: ‘POLLIN’ was not declared in this scope
> zmq.cpp:357: error: ‘POLLOUT’ was not declared in this scope
> make[2]: *** [libzmq_la-zmq.lo] Error 1
>
> zeromq-2.0-alpha3 compiles and works fine in my quick tests.
>
> Is it possible to compile universal binaries in Mac OSX?
>
>
> Regards,
>
> Pasi Mankinen
> Finland
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list