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

could not determine kind of name for C.zmq_msg_group #133

Closed
anovv opened this issue May 24, 2018 · 9 comments
Closed

could not determine kind of name for C.zmq_msg_group #133

anovv opened this issue May 24, 2018 · 9 comments

Comments

@anovv
Copy link

anovv commented May 24, 2018

Every time I try to build a binary depending on github.com/pebbe/zmq4/draft I get (see screenshots):

screen shot 2018-05-24 at 20 13 22

Code sample:
screen shot 2018-05-24 at 20 13 59

How do I fix this?

@pebbe
Copy link
Owner

pebbe commented May 24, 2018

What is the output of these commands?

go env
go version

@anovv
Copy link
Author

anovv commented May 24, 2018

screen shot 2018-05-24 at 20 56 54

@pebbe
Copy link
Owner

pebbe commented May 24, 2018

What about this command?

pkg-config --cflags libzmq

@anovv anovv closed this as completed May 24, 2018
@anovv anovv reopened this May 24, 2018
@anovv
Copy link
Author

anovv commented May 24, 2018

screen shot 2018-05-24 at 21 16 57

@pebbe
Copy link
Owner

pebbe commented May 24, 2018

You don't have ZeroMQ installed with draft enabled.

You should reinstall ZeroMQ with the config option --enable-drafts

After that, you should reinstall zmq4

@anovv
Copy link
Author

anovv commented May 25, 2018

Thanks Peter! Could you please elaborate on what --enable-drafts does and how it's related to the problem?

In general, I'm curious if there is a noob tutorial of installing zmq on Mac? So far I have been gathering bits and pieces all over the web, this is not very convenient for a first time framework user.

@pebbe
Copy link
Owner

pebbe commented May 25, 2018

ZeroMQ has some experimental features that are not built by default. To include these features, you need to build ZeroMQ with the configure option --enable-drafts.

Use github.com/pebbe/zmq4 if you only want to access the regular, stable version of ZeroMQ, without the experimental features.

Some experimental features are supported in Go if you use github.com/pebbe/zmq4/draft, but to use this, you also need ZeroMQ with these experimental features enabled.

The experimental features are subject to change. The ZeroMQ C API can change, and when that happens, github.com/pebbe/zmq4/draft will probably also change.

Any question about the experimental features, what they are for, how to use them, and questions about ZeroMQ in general are best directed to the mailing list at http://zeromq.org/docs:mailing-lists

@anovv anovv closed this as completed Sep 19, 2018
@tutengdihuang
Copy link

You don't have ZeroMQ installed with draft enabled.

You should reinstall ZeroMQ with the config option --enable-drafts

After that, you should reinstall zmq4

How can i config the option --enable-drafts

@tutengdihuang
Copy link

···
You should reinstall ZeroMQ with the config option --enable-drafts
···
How can i open the feature of '--enable-drafts'

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

3 participants