Skip to content

Instantly share code, notes, and snippets.

@elebertus
Created March 25, 2015 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elebertus/84bd1daf9b916a74a63a to your computer and use it in GitHub Desktop.
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
# 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