Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error: 'zmq_event_t' has no member named 'data' #4

Closed
mfelicio opened this issue Mar 29, 2013 · 7 comments
Closed

Compile error: 'zmq_event_t' has no member named 'data' #4

mfelicio opened this issue Mar 29, 2013 · 7 comments

Comments

@mfelicio
Copy link

Hi,

First of all, I'd like to thank you for the nice work you've done.

I'm trying to use the api but it is not compiling on my machine (ubuntu). I cloned libzmq repository and built it, which means I'm running libzmq 3.2.

This error is thrown in the C function get_event declared on zmq3.go

Best regards,
Manuel Felício

@pebbe
Copy link
Owner

pebbe commented Mar 29, 2013

What version of libzmq exactly are you using? You can find this in zmq.h. Look for these three defines:

#define ZMQ_VERSION_MAJOR 3
#define ZMQ_VERSION_MINOR 2
#define ZMQ_VERSION_PATCH 2

@mfelicio
Copy link
Author

I searched for zmq.h on my whole file system and found these:

On /usr/local/include I have a zmq.h which says 3.3.0
On /usr/include I have a zmq.h which says 2.1.11

@mfelicio
Copy link
Author

I think this is related to this:

zeromq/libzmq@21eeb03

They've changed the event_t structure.

@pebbe
Copy link
Owner

pebbe commented Mar 29, 2013

It seems the implementation of socket events is in a state of flux. I will wait with a fix until the official release of zmq version 3.3. For now, use zmq version 3.2.2, that is the latest stable version. You can download it at http://www.zeromq.org/intro:get-the-software

@mfelicio
Copy link
Author

Hi again,

Makes sense to support only the latest stable version, but I thought it was v 3.3 though.

I just downloaded 3.2.2, installed and everything works fine now.

Thank you

@pebbe
Copy link
Owner

pebbe commented Mar 29, 2013

I fixed this in branch "v3.3".

I won't merge this into branch "master" until the stable release of ZeroMQ version 3.3.

@pebbe
Copy link
Owner

pebbe commented Oct 18, 2013

It seems there won't be a ZeroMQ version 3.3. It goes straight from 3.2 to 4.0.
This requires a new Go binding. See: https://github.com/pebbe/zmq4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants