-
Notifications
You must be signed in to change notification settings - Fork 211
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
Is CGO Required for gobetween on Linux #125
Comments
After reading up some more on this it looks like the binary file I have build is not statically linked.
If I try forcing CGO_ENABLED=0 then Looking over what causes this it seems to be a component that breaks. Uppon further review of the stacktrace it looks like the code is bailing out on a DNS request in the net subsection. Since net supports both glibc linking for DNS and golang linking. Answers to why this exists can be seen here |
I can confirm that adding |
Fixed. Thank you @jamesjmurtagh @TechIsCool |
I have been trying to use gobetween on windows and linux. Windows is working great but my first try at getting linux working has ended in failure.
Compiled on CentOS 7.4
and then grabbed the version from there and ran it.
The Error is listed bellow.
Currently I think I worked around this problem by not building with the
CGO_ENABLED=1
flagrunning from the bin folder it seems stable. But my question is is there a specific reason its setup to run with cgo on linux. When looking at the make file it seems like its required. But could be a hold over from earlier versions of go.
The text was updated successfully, but these errors were encountered: