Netflix/rend

cant build problem with timer.Now

dokrates opened this issue · 1 comments

Im trying to build, but probably im missing some variable, could you kindly help me
The error is the following:
im using linux and amd64
debian@rend1:~$ go get github.com/netflix/rend

github.com/netflix/rend

github.com/netflix/rend/timer.Now: relocation target runtime.__vdso_clock_gettime_sym not defined
debian@servprod1:~$

erebe commented

The patch below is working for me

diff --git a/timer/timer_linux_amd64.s b/timer/timer_linux_amd64.s
index 37bdd5a..b53933f 100644
--- a/timer/timer_linux_amd64.s
+++ b/timer/timer_linux_amd64.s
@@ -16,7 +16,7 @@
 // Copyright (c) 2009 The Go Authors. All rights reserved.
 // See the NOTICE file for more details.
 TEXT ·Now(SB), 7, $16
-       MOVQ runtime·__vdso_clock_gettime_sym(SB), AX
+       MOVQ  runtime·vdsoClockgettimeSym(SB), AX
        MOVL $1, DI                                   // CLOCK_MONOTONIC
        LEAQ 0(SP), SI
        CALL AX