Closed bpranoto closed 1 year ago
Because you have copied wrong branch to /usr/src/ncpfs-2.2.6, you now trying to compile the version for kernel >= 6.3.
If you check your make.log you will see in example error /var/lib/dkms/ncpfs/2.2.6/build/dir.c:34:30: warning: ‘struct mnt_idmap’ declared inside parameter list will not be visible outside of this definition or declaration
, but mnt_idmap was introduced in kernel_6.3.
Solution 1:
sudo -s
cd /usr/src/ncpfs*
git checkout kernel_5.2
dkms build -m ncpfs -v 2.2.6 && dkms install -m ncpfs -v 2.2.6 || true
Solution 2:
cd ~
sudo -s
rm /usr/src/ncpfs*
git clone https://github.com/EnzephaloN/ncpfs_dkms.git ncpfs
cp -r ncpfs /usr/src/ncpfs-2.2.6
dkms build -m ncpfs -v 2.2.6 && dkms install -m ncpfs -v 2.2.6 || true
dkms build failed on linux mate 20.04 with kernel 5.4.0-150.
The make.log is attached make.log