Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build fuse-ext2 on ubuntu (xubuntu 2021.04) #118

Open
mpashka opened this issue May 7, 2021 · 0 comments
Open

Can't build fuse-ext2 on ubuntu (xubuntu 2021.04) #118

mpashka opened this issue May 7, 2021 · 0 comments

Comments

@mpashka
Copy link

mpashka commented May 7, 2021

Hello

I tried to build fuse-ext2 v0.10 from sources on my Linux XUbuntu. Initially I've got error that make and c++ are not installed. So I did # apt install make g++. Then during make I've got the following error:

gcc -DHAVE_CONFIG_H -I. -I..    -Wall -DHAVE_CONFIG_H -I/usr/local/include  -g -O2 -MT fuse_ext2-op_create.o -MD -MP -MF .deps/fuse_ext2-op_create.Tpo -c -o fuse_ext2-op_create.o ''test -f 'op_create.c' || echo './'''op_create.c
op_create.c: In function ‘old_valid_dev’:
op_create.c:45:9: warning: implicit declaration of function ‘major’ [-Wimplicit-function-declaration]
   45 |  return major(dev) < 256 && minor(dev) < 256;
      |         ^~~~~
op_create.c:45:29: warning: implicit declaration of function ‘minor’ [-Wimplicit-function-declaration]
   45 |  return major(dev) < 256 && minor(dev) < 256;
      |                             ^~~~~
op_create.c: In function ‘new_encode_dev’:
op_create.c:55:19: error: called object ‘major’ is not a function or function pointer
   55 |  unsigned major = major(dev);
      |                   ^~~~~
op_create.c:55:11: note: declared here
   55 |  unsigned major = major(dev);
      |           ^~~~~
op_create.c:56:19: error: called object ‘minor’ is not a function or function pointer
   56 |  unsigned minor = minor(dev);
      |                   ^~~~~
op_create.c:56:11: note: declared here
   56 |  unsigned minor = minor(dev);
      |           ^~~~~
make[2]: *** [Makefile:1413: fuse_ext2-op_create.o] Error 1

Attaching appropriate logs: lsb_release, uname, ./configure, make, list of installed packages
autogen.log
configure.log
make.log
uname -a Linux pc-intel 5.11.0-16-generic #17-Ubuntu SMP Wed Apr 14 20:12:43 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
lsb_release.log
installed_packages.log
config.log
config.h + config.status config.zip

Workaround:
By some reason sys/sysmacros.h was not included. So I fixed it by including it manually into fuse-ext2.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant