[sheepdog-users] Compilation error in sbd: sbd/sheep_block_device.c:293:2: error: implicit declaration of function 'strict_strtoul'

Marcin Mirosław marcin at mejor.pl
Sun Mar 29 22:45:32 CEST 2015


Hello!
I just tried to compile sheepdog with sbd from HEAD and I'got:
  x86_64-pc-linux-gnu-gcc
-Wp,-MD,/var/tmp/portage/net-fs/sheepdog-9999/work/sheepdog-9999/sbd/.sheep.o.d
 -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include
-I./arch/x86/include -Iarch/x86/include/generated  -Iinclude
-I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi
-I./include/uapi -Iinclude/generated/uapi -include
./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes
-Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security -std=gnu89
-m64 -mno-80387 -mno-fp-ret-in-387 -march=core2 -mno-red-zone
-mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args
-DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1
-DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1
-DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-mno-avx -fno-delete-null-pointer-checks -O2
--param=allow-store-data-races=0 -Wframe-larger-than=2048
-fno-stack-protector -Wno-unused-but-set-variable
-fno-omit-frame-pointer -fno-optimize-sibling-calls
-fno-var-tracking-assignments -Wdeclaration-after-statement
-Wno-pointer-sign -fno-strict-overflow -fconserve-stack
-Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO
-I/var/tmp/portage/net-fs/sheepdog-9999/work/sheepdog-9999/sbd/../include
-DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(sheep)"
-D"KBUILD_MODNAME=KBUILD_STR(sbd)" -c -o
/var/tmp/portage/net-fs/sheepdog-9999/work/sheepdog-9999/sbd/sheep.o
/var/tmp/portage/net-fs/sheepdog-9999/work/sheepdog-9999/sbd/sheep.c
/var/tmp/portage/net-fs/sheepdog-9999/work/sheepdog-9999/sbd/sheep_block_device.c:
In function 'sbd_remove':
/var/tmp/portage/net-fs/sheepdog-9999/work/sheepdog-9999/sbd/sheep_block_device.c:293:2:
error: implicit declaration of function 'strict_strtoul'
[-Werror=implicit-function-declaration]
  ret = strict_strtoul(buf, 10, &ul);
  ^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target
'/var/tmp/portage/net-fs/sheepdog-9999/work/sheepdog-9999/sbd/sheep_block_device.o'
failed
make[2]: ***
[/var/tmp/portage/net-fs/sheepdog-9999/work/sheepdog-9999/sbd/sheep_block_device.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:1381: recipe for target
'_module_/var/tmp/portage/net-fs/sheepdog-9999/work/sheepdog-9999/sbd'
failed
make[1]: ***
[_module_/var/tmp/portage/net-fs/sheepdog-9999/work/sheepdog-9999/sbd]
Error 2
make[1]: Leaving directory '/usr/src/linux-3.18.9-gentoo'
Makefile:4: recipe for target 'default' failed
make: *** [default] Error 2

Just for you information.
Thanks,
Marcin



More information about the sheepdog-users mailing list