[CRIU] Bugfix 341: Error Building CRIU
Adrian Reber
adrian at lisas.de
Wed Mar 27 16:02:08 MSK 2019
On Mon, Mar 25, 2019 at 09:56:27PM +0530, Mitul Karnik wrote:
> <https://github.com/checkpoint-restore/criu/issues/341>
> and as a part of the fix I am adding a call clock_gettime() in '
> compel/plugins/std/log.c'.
> But I am facing issues while building the same.
> Error:
> LINK criu/pie/parasite.built-in.o
> GEN criu/pie/parasite-blob.h
> Error (compel/src/lib/handle-elf-host.c:336): Unexpected undefined symbol:
> `clock_gettime'. External symbol in PIE?
> criu/pie/Makefile:49: recipe for target 'criu/pie/parasite-blob.h' failed
> make[2]: *** [criu/pie/parasite-blob.h] Error 255
> criu/Makefile:61: recipe for target 'pie' failed
> make[1]: *** [pie] Error 2
> Makefile:228: recipe for target 'criu' failed
>
> Though I have included the appropriate headers.
> A little assistance is required around the same.
You cannot use external library functions in compel. If you look around
in compel you see that all syscalls are prefixed with sys_ and are
actually defined in compel (grep for sys_clock_gettime).
Adrian
More information about the CRIU
mailing list