Skip to content
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

cant build problem with timer.Now #135

Open
dokrates opened this issue Nov 12, 2019 · 1 comment
Open

cant build problem with timer.Now #135

dokrates opened this issue Nov 12, 2019 · 1 comment

Comments

@dokrates
Copy link

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
Copy link

erebe commented Dec 6, 2019

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

erebe pushed a commit to criteo-forks/rend that referenced this issue Dec 6, 2019
erebe pushed a commit to criteo-forks/rend that referenced this issue Dec 6, 2019
erebe pushed a commit to criteo-forks/rend that referenced this issue Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants