cifsd-team / ksmbd

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

Cannot build on Debian GNU/Linux 11 (bullseye) #541

Closed negoces closed 1 month ago

negoces commented 2 years ago
nego@debian:~/ksmbd$ make V=1
make -C /lib/modules/5.10.0-9-amd64/build M=/home/nego/ksmbd modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-9-amd64'
make -C /usr/src/linux-headers-5.10.0-9-amd64 -f /usr/src/linux-headers-5.10.0-9-common/Makefile modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        \
echo >&2;                           \
echo >&2 "  ERROR: Kernel configuration is invalid.";       \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo >&2 ;                          \
/bin/false)
make -f /usr/src/linux-headers-5.10.0-9-common/scripts/Makefile.build obj=/home/nego/ksmbd \
single-build= \
need-builtin=1 need-modorder=1
make[3]: *** No rule to make target '/home/nego/ksmbd/ksmbd_spnego_negtokeninit.asn1.c', needed by '/home/nego/ksmbd/ksmbd_spnego_negtokeninit.asn1.o'.  Stop.
make[2]: *** [/usr/src/linux-headers-5.10.0-9-common/Makefile:1846: /home/nego/ksmbd] Error 2
make[1]: *** [/usr/src/linux-headers-5.10.0-9-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-9-amd64'
make: *** [Makefile:47: all] Error 2
hclee commented 2 years ago

Did you build the latest ksmbd of main branch?

negoces commented 2 years ago

Did you build the latest ksmbd of main branch?

Yes, I am using the latest branch, but this seems to be a problem from Debian.

https://unix.stackexchange.com/a/657174

hclee commented 2 years ago

Could you check the kernel configuration, CONFIG_ASN1 is turned on?

negoces commented 2 years ago

Could you check the kernel configuration, CONFIG_ASN1 is turned on?

I think it is.

nego@debian:~$ cat /boot/config-5.10.0-9-amd64 | grep CONFIG_ASN1
CONFIG_ASN1=y
namjaejeon commented 2 years ago

https://stackoverflow.com/questions/50361990/how-to-solve-kernel-configuration-is-invalid-issues