Created
March 25, 2015 22:11
-
-
Save elebertus/84bd1daf9b916a74a63a to your computer and use it in GitHub Desktop.
Workaround for go cent 5.x kernel 2.6.18-238.el5 vDSO gettimeofday
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Patch the Go runtime package to disable vDSO support for gettimeofday and clock_gettime in order to make compiled Go applications compatible with the buggy CentOS 5.6 kernel: 2.6.18-238.el5 | |
sed -i 's/nelem(sym_keys)/1/g' /usr/local/go/src/runtime/vdso_linux_amd64.c | |
# Rebuild go | |
usr/local/go/src/make.bash | |
# Rebuild your binary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment