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

Compilation problem on ubuntu 11.10 64bit server #5

Open
GoogleCodeExporter opened this issue Mar 16, 2016 · 1 comment
Open

Compilation problem on ubuntu 11.10 64bit server #5

GoogleCodeExporter opened this issue Mar 16, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link


Linking CXX executable cpfromkfs
../qcdio/libqcdio.a(qcmutex.o): In function `GetAbsTimeout':
/home/septem/kfs/kfs-0.5/src/cc/qcdio/qcmutex.cpp:40: undefined reference to 
`clock_gettime'
/home/septem/kfs/kfs-0.5/src/cc/qcdio/qcmutex.cpp:40: undefined reference to 
`clock_gettime'
collect2: ld returned 1 exit status
make[2]: *** [src/cc/tools/cpfromkfs] Error 1
make[1]: *** [src/cc/tools/CMakeFiles/cpfromkfs.dir/all] Error 2
make: *** [all] Error 2

Original issue reported on code.google.com by septem...@gmail.com on 29 Dec 2011 at 5:55

@GoogleCodeExporter
Copy link
Author

Is this the same as here: 

for gcc 4.6.1 -lrt has to be last. 

http://stackoverflow.com/questions/2418157/ubuntu-linux-c-error-undefined-refere
nce-to-clock-gettime-and-clock-settim


Try to change  build/src/cc/tools/CMakeFiles/cpfromkfs.dir/link.txt file by 
adding -lrt to the end of the line (it does not matter if it exists in other 
places in the line). If this fixes it you have to add -lrt to other files also 
(same reason).

Original comment by jhkoi...@gmail.com on 26 Mar 2012 at 3:49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant