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

zmq cannot work on windows xp #3694

Closed
myhevenisqing opened this issue Sep 29, 2019 · 8 comments · Fixed by #3716
Closed

zmq cannot work on windows xp #3694

myhevenisqing opened this issue Sep 29, 2019 · 8 comments · Fixed by #3716

Comments

@myhevenisqing
Copy link

It was already fixed a while ago:

https://github.com/zeromq/libzmq/blob/master/src/ip_resolver.cpp#L584

Originally posted by @bluca in #3693 (comment)

sorry,i tryed the newest code, is still not fix zmq work on window xp. due to windows xp is not support the if_indextoname.

@sigiesec
Copy link
Member

Can you provide more details on this? What are you doing? Are you experiencing problems building on Windows XP, or are you using a DLL built on a newer Windows version on Windows XP?

@myhevenisqing
Copy link
Author

i use zeromq dll on work on windows xp sp3,but crash about: if_indextoname unable to locate program input point in IPHLPAPI.DLL

@myhevenisqing
Copy link
Author

i bulid dll on window 10, but need work on window xp.

@bluca
Copy link
Member

bluca commented Oct 15, 2019

You need to build it on windows xp if you want to use it on windows xp

@sigiesec
Copy link
Member

@bluca That shouldn't be necessary. The target SDK version can already be specified by setting the CMake variable ZMQ_WIN32_WINNT, but this particular guard uses a custom define ZMQ_HAVE_WINDOWS_TARGET_XP which was set only from the deprecated

#define ZMQ_HAVE_WINDOWS_TARGET_XP
, but is never set via CMake. This must be fixed.

@myhevenisqing For the moment, can you please try to edit the CMakeLists.txt file locally and add add_definitions(-DZMQ_HAVE_WINDOWS_TARGET_XP) there? Then you should be able to build on Windows 10 and run on Windows XP.

@myhevenisqing
Copy link
Author

@sigiesec in my job,i build zeromq dll in vs2010. so,I'm afraid that won't work .

@sigiesec
Copy link
Member

@myhevenisqing You use CMake to generate a VS solution, don't you?

@sigiesec
Copy link
Member

sigiesec commented Oct 19, 2019

@myhevenisqing It turned out there were a few more incompatibilities with Win XP. With the changes in #3716, these will be fixed. You can then generate a VS solution that target Win XP by running cmake -DZMQ_WIN32_WINNT=0x501 -G "Visual Studio 10 2010" <libzmq source folder>. Use Visual Studio 10 2010 Win64 instead of Visual Studio 10 2010 for a 64-bit library.

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

Successfully merging a pull request may close this issue.

3 participants