cifsd-team / ksmbd

ksmbd kernel server(SMB/CIFS server)
151 stars 23 forks source link

Cannot compile on Debian11 #566

Open s0urcelab opened 1 year ago

s0urcelab commented 1 year ago

OS: Debian11 with kernel 5.10.0-15-amd64

as https://unix.stackexchange.com/questions/657157/building-ksmbd-on-debian-buster-bpo said:

but throw some error:

root@HTPC:/tmp/tmp.nmMkxqcoli/linux-source-5.10# make fs/ksmbd/ksmbd.ko SYNC include/config/auto.conf.cmd CC arch/x86/kernel/asm-offsets.s In file included from ./include/linux/memcontrol.h:13, from ./include/linux/swap.h:9, from ./include/linux/suspend.h:5, from arch/x86/kernel/asm-offsets.c:13: ./include/linux/cgroup.h: In function ‘cgroup_ino’: ./include/linux/cgroup.h:627:9: error: implicit declaration of function ‘kernfs_ino’; did you mean ‘kernfs_init’? [-Werror=implicit-function-declaration] 627 | return kernfs_ino(cgrp->kn); | ^~~~~~ | kernfs_init cc1: some warnings being treated as errors make[1]: [scripts/Makefile.build:117:arch/x86/kernel/asm-offsets.s] 错误 1 make: [Makefile:1204:prepare0] 错误 2

namjaejeon commented 1 year ago

./include/linux/cgroup.h:627:9: error: implicit declaration of function ‘kernfs_ino’; did you mean ‘kernfs_init’? [-Werror=implicit-function-declaration]

build error is not related with ksmbd ? I don't think that it is ksmbd issue. Please see where build error is coming.

consp commented 1 year ago

Why try to build with kernel sources? Have you tried building ksmbd form github outside of the kernel source?

shige-fami commented 1 year ago

This might help you; https://kamikopanda.ddns.net/2022/08/09/ksmbdsmbdirect-works/