[zeromq-dev] 0MQ/2.0-beta1 on OSX

Martin Sustrik sustrik at 250bpm.com
Wed Jan 13 09:49:59 CET 2010

Hi Asko,

> 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?

Any particular point you want it to be placed? Also keep in mind that 
network interface names are not standardised so it differs among OSes. 
Say on Solaris you'll probably have something like "e1000g".

> - How can one run the samples on one machine only (local loopback)?    
> This must be some simple thing I've overlooked.

Use loopback interface ( or however it is called on OSX).

> 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.

Struct is the same as class, the only difference is that it's members 
are public by default.

> Anyways, adding "virtual ~i_inout() {}" and so will eliminate these  
> warnings. They are gcc, not OS X.

Let me fix that...

> The fix you already mentioned for "#include <poll.h>" works, and  
> things compile fine.
> Thanks for 0MQ :)

You are welcome :)


More information about the zeromq-dev mailing list