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

undefined reference to `__vdso_clock_gettime@GLIBC_PRIVATE' #6

Open
pearu opened this issue Aug 22, 2019 · 0 comments
Open

undefined reference to `__vdso_clock_gettime@GLIBC_PRIVATE' #6

pearu opened this issue Aug 22, 2019 · 0 comments
Labels
with a solution Issue has a solution

Comments

@pearu
Copy link
Contributor

pearu commented Aug 22, 2019

[ 30%] Building CXX object SampleCode/CMakeFiles/StreamInsert.dir/StreamInsert.cpp.o
Scanning dependencies of target KafkaImporter
/home/pearu/miniconda3/envs/omnisci-gpu-dev/bin/ld: /home/pearu/miniconda3/envs/omnisci-gpu-dev/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/librt.so.1: undefined reference to `__vdso_clock_gettime@GLIBC_PRIVATE'
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [Tests/CMakeFiles/OmniSQLUtilitiesTest.dir/build.make:93: Tests/OmniSQLUtilitiesTest] Error 1
make[1]: *** [CMakeFiles/Makefile2:3947: Tests/CMakeFiles/OmniSQLUtilitiesTest.dir/all] Error 2

As a solution, add -lrt -pthread -lresolv to LDFLAGS.

@pearu pearu added the with a solution Issue has a solution label Aug 22, 2019
@pearu pearu changed the title [Failure] undefined reference to `__vdso_clock_gettime@GLIBC_PRIVATE' undefined reference to `__vdso_clock_gettime@GLIBC_PRIVATE' Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
with a solution Issue has a solution
Projects
None yet
Development

No branches or pull requests

1 participant