zmq4 icon indicating copy to clipboard operation
zmq4 copied to clipboard

could not determine kind of name for C.SOCKET

Open SakHam opened this issue 6 years ago • 10 comments

I use this guide https://github.com/edgexfoundry/edgex-go/blob/master/ZMQWindows.md to install ZMQ on windows cause it needed for edgex-go installation. In step 6 when i run go get -v -x github.com/pebbe/zmq4 I get this message : # github.com/pebbe/zmq4 Users\Sak\go\src\github.com\pebbe\zmq4\socketget_windows.go:20:11: could not determine kind of name for C.SOCKET

SakHam avatar Sep 20 '19 17:09 SakHam

Hello, Have you solved the above problem? I'm having the same problem as you right now?

sujunbo avatar Oct 11 '19 23:10 sujunbo

Hello, No i quited to install it on windows. I did in ubuntu Virtual Machine.

SakHam avatar Oct 12 '19 17:10 SakHam

You can run on unbuntu, right? I cannot operate in centos system, which is also a similar problem to yours. C name type not recognized

sujunbo avatar Oct 13 '19 05:10 sujunbo

Hello, I have found the file you mentioned. You can add #include <winsock2.h> to the socketget_windows.go file

sujunbo avatar Oct 13 '19 17:10 sujunbo

Yes i installed ZMQ on ubuntu, once. Thank you very much for your help. When i will need it again i will check it on windows.

SakHam avatar Oct 14 '19 08:10 SakHam

是的,我一次在ubuntu上安装了ZMQ。非常感谢您的帮助。当我再次需要它时,我将在Windows上对其进行检查。

Hi, can you share an article on how to install libzmq on Windows /centos?I am currently unable to use zmq4 correctly to manipulate zeromq on its environment.

sujunbo avatar Oct 14 '19 15:10 sujunbo

So this seems to be a problem with 4.3.3, but not with 4.3.2, I used https://ci.appveyor.com/project/zeromq/libzmq/builds/25882500/job/s2yhbnjrdouq5qnm/artifacts and commit https://github.com/zeromq/libzmq/tree/a84ffa12b2eb3569ced199660bac5ad128bff1f0 and didnt have this error message.

rsdmike avatar Nov 26 '19 20:11 rsdmike

I confirm zeromq 4.3.3 in msys2 have this issue as rsdmike said and solved by add #include <winsock2.h> to the socketget_windows.go file. as sujunbo said.

Thanks you both for kind and helpful info.

ghts avatar Dec 04 '20 12:12 ghts

I added #include <winsock2.h> to socketget_windows.go

pebbe avatar Dec 04 '20 17:12 pebbe

I confirm with zmq4 1.2.2 there is no more error when 'go get github.com/pebbe/zmq4' with zeromq 4.3.3 in msys2 64 on Windows 10 ver 20H2.

Thank you for quick bugfix release.

ghts avatar Dec 19 '20 10:12 ghts