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

Unable to compile on FreeBSD #11

Open
Cubox opened this issue Jan 24, 2019 · 2 comments
Open

Unable to compile on FreeBSD #11

Cubox opened this issue Jan 24, 2019 · 2 comments

Comments

@Cubox
Copy link

Cubox commented Jan 24, 2019

FreeBSD compilation will fail because the make command is being used.
BSD make is different from GNU make, the compilation does not fail when using the gmake command.

gmake can be installed via the ports system, and will be located (if installed) on /usr/local/bin/gmake

@Cubox
Copy link
Author

Cubox commented Jan 24, 2019

Adding to that, there are other modifications needed for compilation to work.
First, I had to move /usr/local/include/fuse to /usr/include/fuse, having the compiler add to it's include paths /usr/local/include would fix this.
FreeBSD included need to be <fuse/fuse.h> instead of <fuse.h>
Same problem for /usr/local/lib/fuse.so, which had to be moved.

Some includes need to be removed:
In Fuse_util.c #include <sys/xattr.h> -> Which renders the flags XATTR_CREATE and XATTR_REPLACE nonexistent. The two ifs that reference them need to be ignored.
Unix_util_stubs.c needs to remove #include <sys/vfs.h>, nothing else needed.

I think that's all. I could make a pull request with those fixes, but I don't know how packaging with opam works.

@Cubox Cubox changed the title Unable to compile on FreeBSD, easy fix Unable to compile on FreeBSD Jan 24, 2019
@astrada
Copy link
Owner

astrada commented Jan 24, 2019

I think that's all. I could make a pull request with those fixes, but I don't know how packaging with opam works.

Feel free to make the pull request, and I will check that it doesn't break the Linux build. Thanks!

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

2 participants