enzephalon / ncpfs-module Goto Github PK
View Code? Open in Web Editor NEWa ncpfs-module for kernel >= 4.18 as standalone module
a ncpfs-module for kernel >= 4.18 as standalone module
>>> Emerging (10 of 14) net-fs/ncpfs-modules-9999::linamh
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 6.6.0-xanmod1-dist
* Checking for suitable kernel configuration options ... [ ok ]
>>> Unpacking source...
* Repository id: EnzephaloN_ncpfs-module.git
* To override fetched repository properties, use:
* EGIT_OVERRIDE_REPO_ENZEPHALON_NCPFS_MODULE
* EGIT_OVERRIDE_BRANCH_ENZEPHALON_NCPFS_MODULE
* EGIT_OVERRIDE_COMMIT_ENZEPHALON_NCPFS_MODULE
* EGIT_OVERRIDE_COMMIT_DATE_ENZEPHALON_NCPFS_MODULE
*
* Fetching https://github.com/EnzephaloN/ncpfs-module.git ...
git fetch https://github.com/EnzephaloN/ncpfs-module.git +refs/heads/master:refs/heads/master
git symbolic-ref refs/git-r3/net-fs/ncpfs-modules/0/__main__ refs/heads/master
* Checking out https://github.com/EnzephaloN/ncpfs-module.git to /var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999 ...
git checkout --quiet master
GIT update -->
repository: https://github.com/EnzephaloN/ncpfs-module.git
at the commit: 11f1407afe4473526d372293454b7bf66c36ada8
>>> Source unpacked in /var/tmp/portage/net-fs/ncpfs-modules-9999/work
>>> Preparing source in /var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999 ...
ln: failed to create symbolic link 'Module.symvers': File exists
* Preparing ncpfs module
make -j12 -s HOSTCC=x86_64-pc-linux-gnu-gcc 'LDFLAGS=-m elf_x86_64' KDIR=/usr/src/linux M=/var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999 all
/var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999/inode.c: In function ‘ncp_update_dates’:
/var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999/inode.c:158:16: error: ‘struct inode’ has no member named ‘i_ctime’; did you mean ‘i_atime’?
158 | inode->i_ctime.tv_sec = ncp_date_dos2unix(nwi->creationTime, nwi->creationDate);
| ^~~~~~~
| i_atime
/var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999/inode.c:162:16: error: ‘struct inode’ has no member named ‘i_ctime’; did you mean ‘i_atime’?
162 | inode->i_ctime.tv_nsec = 0;
| ^~~~~~~
| i_atime
make[3]: *** [scripts/Makefile.build:243: /var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999/inode.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-6.6.0-xanmod1-dist/Makefile:2068: /var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make: *** [Makefile:49: all] Error 2
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-67-generic'
CC [M] /home/rwdeane/ncpfs-module/dir.o
CC [M] /home/rwdeane/ncpfs-module/file.o
CC [M] /home/rwdeane/ncpfs-module/inode.o
CC [M] /home/rwdeane/ncpfs-module/ioctl.o
CC [M] /home/rwdeane/ncpfs-module/mmap.o
CC [M] /home/rwdeane/ncpfs-module/ncplib_kernel.o
CC [M] /home/rwdeane/ncpfs-module/sock.o
CC [M] /home/rwdeane/ncpfs-module/ncpsign_kernel.o
CC [M] /home/rwdeane/ncpfs-module/getopt.o
CC [M] /home/rwdeane/ncpfs-module/symlink.o
/home/rwdeane/ncpfs-module/symlink.c:44:61: warning: ‘struct folio’ declared inside parameter list will not be visible outside of this definition or declaration
44 | static int ncp_symlink_read_folio(struct file *file, struct folio *folio)
| ^~~~~
/home/rwdeane/ncpfs-module/symlink.c: In function ‘ncp_symlink_read_folio’:
/home/rwdeane/ncpfs-module/symlink.c:46:36: error: invalid use of undefined type ‘struct folio’
46 | struct inode *inode = folio->mapping->host;
| ^~
Emerging (1 of 2) net-fs/ncpfs-modules-9999::linamh
/usr/src/linux
6.8.0-xanmod1-dist
Unpacking source...
Source unpacked in /var/tmp/portage/net-fs/ncpfs-modules-9999/work
Preparing source in /var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999 ...
Source prepared.
Configuring source in /var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999 ...
Source configured.
Compiling source in /var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999 ...
ln: failed to create symbolic link 'Module.symvers': File exists
` * Determining the location of the kernel source code
/usr/src/linux
6.3.1-xanmod1-dist
Unpacking source...
Source unpacked in /var/tmp/portage/net-fs/ncpfs-modules-9999/work
Preparing source in /var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999 ...
Source prepared.
Configuring source in /var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999 ...
Source configured.
Compiling source in /var/tmp/portage/net-fs/ncpfs-modules-9999/work/ncpfs-modules-9999 ...
ln: failed to create symbolic link 'Module.symvers': File exists
emerge --info '=net-fs/ncpfs-modules-9999::linamh'
,emerge -pqv '=net-fs/ncpfs-modules-9999::linamh'
.Failed to emerge net-fs/ncpfs-modules-9999, Log file:
`
Hello.
I try compile this module, but I have a lot of errors:
make -C /lib/modules/5.10.0-8-amd64/build M=/home/leonid/ncpfs-module modules make[1]: вход в каталог «/usr/src/linux-headers-5.10.0-8-amd64» CC [M] /home/leonid/ncpfs-module/dir.o In file included from /home/leonid/ncpfs-module/ncp_fs.h:102, from /home/leonid/ncpfs-module/dir.c:25: /home/leonid/ncpfs-module/ncplib_kernel.h:189:2: error: unknown type name ‘time_t’ 189 | time_t mtime; | ^~~~~~ /home/leonid/ncpfs-module/dir.c:62:13: error: initialization of ‘int (*)(struct inode *, struct dentry *, umode_t, bool)’ {aka ‘int (*)(struct inode *, struct dentry *, short unsigned int, _Bool)’} from incompatible pointer type ‘int (*)(struct user_namespace *, struct inode *, struct dentry *, umode_t, bool)’ {aka ‘int (*)(struct user_namespace *, struct inode *, struct dentry *, short unsigned int, _Bool)’} [-Werror=incompatible-pointer-types] 62 | .create = ncp_create, | ^~~~~~~~~~ /home/leonid/ncpfs-module/dir.c:62:13: note: (near initialization for ‘ncp_dir_inode_operations.create’) /home/leonid/ncpfs-module/dir.c:65:13: error: initialization of ‘int (*)(struct inode *, struct dentry *, const char *)’ from incompatible pointer type ‘int (*)(struct user_namespace *, struct inode *, struct dentry *, const char *)’ [-Werror=incompatible-pointer-types] 65 | .symlink = ncp_symlink, | ^~~~~~~~~~~ /home/leonid/ncpfs-module/dir.c:65:13: note: (near initialization for ‘ncp_dir_inode_operations.symlink’) /home/leonid/ncpfs-module/dir.c:66:12: error: initialization of ‘int (*)(struct inode *, struct dentry *, umode_t)’ {aka ‘int (*)(struct inode *, struct dentry *, short unsigned int)’} from incompatible pointer type ‘int (*)(struct user_namespace *, struct inode *, struct dentry *, umode_t)’ {aka ‘int (*)(struct user_namespace *, struct inode *, struct dentry *, short unsigned int)’} [-Werror=incompatible-pointer-types] 66 | .mkdir = ncp_mkdir, | ^~~~~~~~~ /home/leonid/ncpfs-module/dir.c:66:12: note: (near initialization for ‘ncp_dir_inode_operations.mkdir’) /home/leonid/ncpfs-module/dir.c:68:12: error: initialization of ‘int (*)(struct inode *, struct dentry *, umode_t, dev_t)’ {aka ‘int (*)(struct inode *, struct dentry *, short unsigned int, unsigned int)’} from incompatible pointer type ‘int (*)(struct user_namespace *, struct inode *, struct dentry *, umode_t, dev_t)’ {aka ‘int (*)(struct user_namespace *, struct inode *, struct dentry *, short unsigned int, unsigned int)’} [-Werror=incompatible-pointer-types] 68 | .mknod = ncp_mknod, | ^~~~~~~~~ /home/leonid/ncpfs-module/dir.c:68:12: note: (near initialization for ‘ncp_dir_inode_operations.mknod’) /home/leonid/ncpfs-module/dir.c:69:13: error: initialization of ‘int (*)(struct inode *, struct dentry *, struct inode *, struct dentry *, unsigned int)’ from incompatible pointer type ‘int (*)(struct user_namespace *, struct inode *, struct dentry *, struct inode *, struct dentry *, unsigned int)’ [-Werror=incompatible-pointer-types] 69 | .rename = ncp_rename, | ^~~~~~~~~~ /home/leonid/ncpfs-module/dir.c:69:13: note: (near initialization for ‘ncp_dir_inode_operations.rename’) /home/leonid/ncpfs-module/dir.c:70:13: error: initialization of ‘int (*)(struct dentry *, struct iattr *)’ from incompatible pointer type ‘int (*)(struct user_namespace *, struct dentry *, struct iattr *)’ [-Werror=incompatible-pointer-types] 70 | .setattr = ncp_notify_change, | ^~~~~~~~~~~~~~~~~ /home/leonid/ncpfs-module/dir.c:70:13: note: (near initialization for ‘ncp_dir_inode_operations.setattr’) /home/leonid/ncpfs-module/dir.c:407:8: error: unknown type name ‘time_t’ 407 | static time_t ncp_obtain_mtime(struct dentry *dentry) | ^~~~~~ /home/leonid/ncpfs-module/dir.c: In function ‘ncp_readdir’: /home/leonid/ncpfs-module/dir.c:445:2: error: unknown type name ‘time_t’; did you mean ‘ktime_t’? 445 | time_t mtime = 0; | ^~~~~~ | ktime_t
How to fix it?
Thank you.
Hello, EnzephaloN.
Can you list pkgs for build this ncpfs-module in Debian 11?
Thank you.
Next kernel verison that has problems.
DKMS make.log for ncpfs-2.2.6 for kernel 6.5.0-kali3-amd64 (x86_64)
piektdiena, 2024. gada 19. janvāris, 14:12:22 EET
make -C /lib/modules/6.5.0-kali3-amd64/build M=/var/lib/dkms/ncpfs/2.2.6/build modules
make[1]: Entering directory '/usr/src/linux-headers-6.5.0-kali3-amd64'
CC [M] /var/lib/dkms/ncpfs/2.2.6/build/dir.o
CC [M] /var/lib/dkms/ncpfs/2.2.6/build/file.o
CC [M] /var/lib/dkms/ncpfs/2.2.6/build/inode.o
/var/lib/dkms/ncpfs/2.2.6/build/inode.c: In function ‘ncp_update_dates’:
/var/lib/dkms/ncpfs/2.2.6/build/inode.c:158:9: error: implicit declaration of function ‘inode_set_ctime’; did you mean ‘node_set_state’? [-Werror=implicit-function-declaration]
158 | inode_set_ctime(inode, ncp_date_dos2unix(nwi->creationTime, nwi->creationDate), 0);
| ^~~~~~~~~~~~~~~
| node_set_state
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-6.5.0-kali3-common/scripts/Makefile.build:248: /var/lib/dkms/ncpfs/2.2.6/build/inode.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.5.0-kali3-common/Makefile:2059: /var/lib/dkms/ncpfs/2.2.6/build] Error 2
make[1]: *** [/usr/src/linux-headers-6.5.0-kali3-common/Makefile:246: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.5.0-kali3-amd64'
make: *** [Makefile:48: all] Error 2
Hello,
i want use the kernel module for a debian 11 (5.10.0-27-amd64). I use the branch for 5.6.
It compiles perfectly and the module was installed correctly too.
But if i want mount a novell file share, i've got an error message:
"mount(2) system call failed: Channel number out of range"
Is there any known reason for this?
Thx a lot for this project.
Best regards,
Andreas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.