EnzephaloN / ncpfs_dkms

a ncpfs-module for kernel >= 4.18 and dkms
5 stars 1 forks source link

Error compile on kernel 6.2.0-34 #13

Closed bpranoto closed 1 year ago

bpranoto commented 1 year ago

With branch kernel_5.6, I got this error: DKMS make.log for ncpfs-2.2.6 for kernel 6.2.0-34-generic (x86_64) Rab 18 Okt 2023 01:52:40 WIB make -C /lib/modules/6.2.0-34-generic/build M=/var/lib/dkms/ncpfs/2.2.6/build modules make[1]: Entering directory '/usr/src/linux-headers-6.2.0-34-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 You are using: gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 CC [M] /var/lib/dkms/ncpfs/2.2.6/build/dir.o In file included from /var/lib/dkms/ncpfs/2.2.6/build/ncp_fs.h:2, from /var/lib/dkms/ncpfs/2.2.6/build/dir.c:25: /var/lib/dkms/ncpfs/2.2.6/build/include/linux/ncp_fs.h:17:10: fatal error: linux/ipx.h: No such file or directory 17 | #include <linux/ipx.h> | ^~~~~~~~~~~~~ compilation terminated. make[2]: *** [scripts/Makefile.build:260: /var/lib/dkms/ncpfs/2.2.6/build/dir.o] Error 1 make[1]: *** [Makefile:2026: /var/lib/dkms/ncpfs/2.2.6/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.2.0-34-generic' make: *** [Makefile:48: all] Error 2

With branch kernel_6.3, I got this: DKMS make.log for ncpfs-2.2.6 for kernel 6.2.0-34-generic (x86_64) Rab 18 Okt 2023 01:57:10 WIB make -C /lib/modules/6.2.0-34-generic/build M=/var/lib/dkms/ncpfs/2.2.6/build modules make[1]: Entering directory '/usr/src/linux-headers-6.2.0-34-generic' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 You are using: gcc-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 CC [M] /var/lib/dkms/ncpfs/2.2.6/build/dir.o /var/lib/dkms/ncpfs/2.2.6/build/dir.c:62:27: error: initialization of ‘int (*)(struct user_namespace *, struct inode *, struct dentry *, umode_t, bool)’ {aka ‘int (*)(struct user_namespace *, struct inode *, struct dentry *, short unsigned int, _Bool)’} from incompatible pointer type ‘int (*)(struct mnt_idmap *, struct inode *, struct dentry *, umode_t, bool)’ {aka ‘int (*)(struct mnt_idmap *, struct inode *, struct dentry *, short unsigned int, _Bool)’} [-Werror=incompatible-pointer-types] 62 | .create = ncp_create, | ^~~~~~~~~~ /var/lib/dkms/ncpfs/2.2.6/build/dir.c:62:27: note: (near initialization for ‘ncp_dir_inode_operations.create’) /var/lib/dkms/ncpfs/2.2.6/build/dir.c:65:27: error: initialization of ‘int (*)(struct user_namespace *, struct inode *, struct dentry *, const char *)’ from incompatible pointer type ‘int (*)(struct mnt_idmap *, struct inode *, struct dentry *, const char *)’ [-Werror=incompatible-pointer-types] 65 | .symlink = ncp_symlink, | ^~~~~~~~~~~

EnzephaloN commented 1 year ago

You have to use branch kernel_5.19 !

bpranoto commented 1 year ago

Duuh! I stupidly thought 5.6 is more recent than 5.19.

Sorry and thank you

On Wed, 18 Oct 2023 at 14:07, Johannes C. Schulz @.***> wrote:

You have to use branch kernel_5.19 !

— Reply to this email directly, view it on GitHub https://github.com/EnzephaloN/ncpfs_dkms/issues/13#issuecomment-1767805548, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYS3LZ43ANEQSVLUG6R2KDX7554RAVCNFSM6AAAAAA6E7U3QGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRXHAYDKNJUHA . You are receiving this because you authored the thread.Message ID: @.***>

-- Bambang P http://bpranoto.blogspot.com