-
Notifications
You must be signed in to change notification settings - Fork 315
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
build fails in cygwin #60
Comments
This was noted during work on #52 by @annesuzuki |
A workaround to get (most) functionality working in cygwin is to add the following hardcoding of the header checks to
This will force the build environment to use the standard Unix headers. In order to fix the Google Test builds, you will also need to adjust the Note that some of the network target tests still failed (at least for me) after these updates. A new branch to support cygwin builds will be created and incorporated into version 1.5.0. |
These are the screenshots of the errors I'm getting. Everything up until make all is ok. |
Hmm, for some reason it appears your system doesn't have I will make sure that the cygwin branch can build in this situation as well. |
I've created a branch named I will add other portability-related fixes to this branch to overcome other portability-related problems identified here. I have not added the workaround for the |
I switched to the portability branch and went through the installation procedure. |
I've made some updates that get the Any suggestions on how to add CI testing to prevent regressions of Cygwin support are welcome. From a quick glance the best option seems to be the Travis CI MSYS2 support, but I will need to dive into this further. Thank you for your patience while this gets resolved! |
Builds of the |
I've created pull request #61 to merge in the support for cygwin (and mingw along the way). I'll go ahead and merge it in a week (on 1 March) unless there are any other issues noted here. |
This has been merged into master in release 1.5.0. Please report any further issues with Cygwin support in a new issue. |
Short description of Problem
Attempting to build stumpless in a cygwin environment with the required packages fails.
Environment Description
This has been tested in a Windows 10 build 10240 with cygwin64 3.1.2.
Other details
Current problems with this build appear to come primarily from conflicting type definitions between standard Unix headers (sys/socket.h, unistd.h) and the Windows headers (windows.h, winsock2.h). These are both detected by cmake, and when the library is compiled with both headers conflicting type definitions emerge. Disabling socket and network targets does not alleviate the issue.
Some other smaller problems also arise with Windows functionality and gtest, which should be easier to work around.
The text was updated successfully, but these errors were encountered: