[CRIU] [PATCH 2/2] criu/makefile: fix build (DEFINES array to CFLAGS)

Cyrill Gorcunov gorcunov at gmail.com
Mon Feb 15 07:44:28 PST 2016


On Mon, Feb 15, 2016 at 06:36:54PM +0300, Dmitry Safonov wrote:
> I have CONFIG_HAS_LIBBSD, but -DCONFIG_HAS_LIBBSD isn't passed to
> compiler. Fix for the following error:
> <...>
>   CC       cr-dedup.o
>   CC       cr-dump.o
> cr-dump.c: In function ‘dump_filemap’:
> cr-dump.c:382:3: error: implicit declaration of function ‘strlcpy’ [-Werror=implicit-function-declaration]
>    strlcpy(aufs_link.name, vma_area->aufs_rpath,
>    ^
> cc1: all warnings being treated as errors
> /home/japdoll/tools/criu/scripts/nmk/scripts/rules.mk:53: recipe for target 'cr-dump.o' failed
> make[2]: *** [cr-dump.o] Error 1
> Makefile:146: recipe for target 'built-in.o' failed
> make[1]: *** [built-in.o] Error 2
> Makefile:109: recipe for target 'criu' failed
> make: *** [criu] Error 2
> 
> Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
Acked-by: Cyrill Gorcunov <gorcunov at openvz.org>

Thank you!


More information about the CRIU mailing list