Hello,
how to install netdrive3 in ubuntu. Error shows.
~$ bash -c “$(curl -fsSL https://raw.githubusercontent.com/NetDrive/installer/master/install.sh)”
Command ‘curl’ not found, but can be installed with:
sudo snap install curl # version 8.1.2, or
sudo apt install curl # version 7.81.0-1ubuntu1.14
See ‘snap info curl’ for additional versions.
itadmin@Zener:~$ bash -c “$(wget -O- https://raw.githubusercontent.com/NetDrive/installer/master/install.sh)”
–2023-11-19 14:45:02-- https://raw.githubusercontent.com/NetDrive/installer/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 185.199.108.133, 185.199.111.133, 185.199.110.133, …
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 4164 (4.1K) [text/plain]
Saving to: ‘STDOUT’
-
100%[===================>] 4.07K --.-KB/s in 0s
2023-11-19 14:45:08 (34.4 MB/s) - written to stdout [4164/4164]
Cloning Repositories…
Cloning into ‘/home/itadmin/.netdrive/kernel-ndfuse’…
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 14 (delta 0), reused 10 (delta 0), pack-reused 0
Receiving objects: 100% (14/14), 69.97 KiB | 314.00 KiB/s, done.
Cloning into ‘/home/itadmin/.netdrive/installer’…
remote: Enumerating objects: 47, done.
remote: Counting objects: 100% (47/47), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 47 (delta 3), reused 41 (delta 2), pack-reused 0
Receiving objects: 100% (47/47), 335.20 KiB | 358.00 KiB/s, done.
Resolving deltas: 100% (3/3), done.
~ ~
ndfuse module not loaded.
make -C /lib/modules/6.2.0-36-generic/build M=/home/itadmin/.netdrive/kernel-ndfuse clean
make[1]: Entering directory ‘/usr/src/linux-headers-6.2.0-36-generic’
make[1]: Leaving directory ‘/usr/src/linux-headers-6.2.0-36-generic’
make -C /lib/modules/6.2.0-36-generic/build M=/home/itadmin/.netdrive/kernel-ndfuse modules
make[1]: Entering directory ‘/usr/src/linux-headers-6.2.0-36-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] /home/itadmin/.netdrive/kernel-ndfuse/dev.o
/home/itadmin/.netdrive/kernel-ndfuse/dev.c: In function ‘request_end’:
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:388:25: error: implicit declaration of function ‘clear_bdi_congested’ [-Werror=implicit-function-declaration]
388 | clear_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC);
| ^~~~~~~~~~~~~~~~~~~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:388:60: error: ‘BLK_RW_SYNC’ undeclared (first use in this function)
388 | clear_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC);
| ^~~~~~~~~~~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:388:60: note: each undeclared identifier is reported only once for each function it appears in
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:389:60: error: ‘BLK_RW_ASYNC’ undeclared (first use in this function)
389 | clear_bdi_congested(fc->sb->s_bdi, BLK_RW_ASYNC);
| ^~~~~~~~~~~~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c: In function ‘fuse_request_send_background_locked’:
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:579:17: error: implicit declaration of function ‘set_bdi_congested’ [-Werror=implicit-function-declaration]
579 | set_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC);
| ^~~~~~~~~~~~~~~~~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:579:50: error: ‘BLK_RW_SYNC’ undeclared (first use in this function)
579 | set_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC);
| ^~~~~~~~~~~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:580:50: error: ‘BLK_RW_ASYNC’ undeclared (first use in this function)
580 | set_bdi_congested(fc->sb->s_bdi, BLK_RW_ASYNC);
| ^~~~~~~~~~~~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c: In function ‘fuse_copy_fill’:
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:749:54: error: ‘struct pipe_inode_info’ has no member named ‘buffers’; did you mean ‘bufs’?
749 | if (cs->nr_segs == cs->pipe->buffers)
| ^~~~~~~
| bufs
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:769:23: error: too few arguments to function ‘iov_iter_get_pages’
769 | err = iov_iter_get_pages(cs->iter, &page, PAGE_SIZE, 1, &off);
| ^~~~~~~~~~~~~~~~~~
In file included from ./include/linux/bio.h:11,
from ./include/linux/writeback.h:208,
from ./include/linux/backing-dev.h:16,
from /home/itadmin/.netdrive/kernel-ndfuse/fuse_i.h:19,
from /home/itadmin/.netdrive/kernel-ndfuse/dev.c:9:
./include/linux/uio.h:253:9: note: declared here
253 | ssize_t iov_iter_get_pages(struct iov_iter *i, struct page **pages,
| ^~~~~~~~~~~~~~~~~~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c: In function ‘fuse_try_move_page’:
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:849:13: error: implicit declaration of function ‘pipe_buf_steal’; did you mean ‘pipe_buf_try_steal’? [-Werror=implicit-function-declaration]
849 | if (pipe_buf_steal(cs->pipe, buf) != 0)
| ^~~~~~~~~~~~~~
| pipe_buf_try_steal
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:875:15: error: implicit declaration of function ‘replace_page_cache_page’; did you mean ‘replace_page_cache_folio’? [-Werror=implicit-function-declaration]
875 | err = replace_page_cache_page(oldpage, newpage, GFP_KERNEL);
| ^~~~~~~~~~~~~~~~~~~~~~~
| replace_page_cache_folio
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:884:17: error: implicit declaration of function ‘lru_cache_add_file’; did you mean ‘lru_cache_disable’? [-Werror=implicit-function-declaration]
884 | lru_cache_add_file(newpage);
| ^~~~~~~~~~~~~~~~~~
| lru_cache_disable
/home/itadmin/.netdrive/kernel-ndfuse/dev.c: In function ‘fuse_ref_page’:
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:925:38: error: ‘struct pipe_inode_info’ has no member named ‘buffers’; did you mean ‘bufs’?
925 | if (cs->nr_segs == cs->pipe->buffers)
| ^~~~~~~
| bufs
/home/itadmin/.netdrive/kernel-ndfuse/dev.c: In function ‘fuse_dev_splice_read’:
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1372:30: error: ‘struct pipe_inode_info’ has no member named ‘buffers’; did you mean ‘bufs’?
1372 | bufs = kmalloc(pipe->buffers * sizeof(struct pipe_buffer), GFP_KERNEL);
| ^~~~~~~
| bufs
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1383:19: error: ‘struct pipe_inode_info’ has no member named ‘nrbufs’; did you mean ‘bufs’?
1383 | if (pipe->nrbufs + cs.nr_segs > pipe->buffers) {
| ^~~~~~
| bufs
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1383:47: error: ‘struct pipe_inode_info’ has no member named ‘buffers’; did you mean ‘bufs’?
1383 | if (pipe->nrbufs + cs.nr_segs > pipe->buffers) {
| ^~~~~~~
| bufs
/home/itadmin/.netdrive/kernel-ndfuse/dev.c: In function ‘fuse_dev_splice_write’:
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1959:30: error: ‘struct pipe_inode_info’ has no member named ‘buffers’; did you mean ‘bufs’?
1959 | bufs = kmalloc(pipe->buffers * sizeof(struct pipe_buffer), GFP_KERNEL);
| ^~~~~~~
| bufs
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1966:35: error: ‘struct pipe_inode_info’ has no member named ‘nrbufs’; did you mean ‘bufs’?
1966 | for (idx = 0; idx < pipe->nrbufs && rem < len; idx++)
| ^~~~~~
| bufs
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1967:40: error: ‘struct pipe_inode_info’ has no member named ‘curbuf’
1967 | rem += pipe->bufs[(pipe->curbuf + idx) & (pipe->buffers - 1)].len;
| ^~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1967:65: error: ‘struct pipe_inode_info’ has no member named ‘buffers’; did you mean ‘bufs’?
1967 | rem += pipe->bufs[(pipe->curbuf + idx) & (pipe->buffers - 1)].len;
| ^~~~~~~
| bufs
In file included from ./include/linux/export.h:33,
from ./include/linux/linkage.h:7,
from ./include/linux/fs.h:5,
from /home/itadmin/.netdrive/kernel-ndfuse/fuse_i.h:13,
from /home/itadmin/.netdrive/kernel-ndfuse/dev.c:9:
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1980:38: error: ‘struct pipe_inode_info’ has no member named ‘buffers’; did you mean ‘bufs’?
1980 | BUG_ON(nbuf >= pipe->buffers);
| ^~~~~~~
./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1980:17: note: in expansion of macro ‘BUG_ON’
1980 | BUG_ON(nbuf >= pipe->buffers);
| ^~~~~~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1981:31: error: ‘struct pipe_inode_info’ has no member named ‘nrbufs’; did you mean ‘bufs’?
1981 | BUG_ON(!pipe->nrbufs);
| ^~~~~~
./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1981:17: note: in expansion of macro ‘BUG_ON’
1981 | BUG_ON(!pipe->nrbufs);
| ^~~~~~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1982:40: error: ‘struct pipe_inode_info’ has no member named ‘curbuf’
1982 | ibuf = &pipe->bufs[pipe->curbuf];
| ^~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1988:29: error: ‘struct pipe_inode_info’ has no member named ‘curbuf’
1988 | pipe->curbuf = (pipe->curbuf + 1) & (pipe->buffers - 1);
| ^~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1988:45: error: ‘struct pipe_inode_info’ has no member named ‘curbuf’
1988 | pipe->curbuf = (pipe->curbuf + 1) & (pipe->buffers - 1);
| ^~
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1988:68: error: ‘struct pipe_inode_info’ has no member named ‘buffers’; did you mean ‘bufs’?
1988 | pipe->curbuf = (pipe->curbuf + 1) & (pipe->buffers - 1);
| ^~~~~~~
| bufs
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1989:31: error: ‘struct pipe_inode_info’ has no member named ‘nrbufs’; did you mean ‘bufs’?
1989 | pipe->nrbufs–;
| ^~~~~~
| bufs
/home/itadmin/.netdrive/kernel-ndfuse/dev.c:1991:25: warning: ignoring return value of ‘pipe_buf_get’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
1991 | pipe_buf_get(pipe, ibuf);
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:260: /home/itadmin/.netdrive/kernel-ndfuse/dev.o] Error 1
make[1]: *** [Makefile:2026: /home/itadmin/.netdrive/kernel-ndfuse] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-6.2.0-36-generic’
make: *** [Makefile:10: all] Error 2