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

Compiling in 2020 #2

Open
tom-adsfund opened this issue Jan 14, 2020 · 3 comments
Open

Compiling in 2020 #2

tom-adsfund opened this issue Jan 14, 2020 · 3 comments

Comments

@tom-adsfund
Copy link

I've tried to compile, after having installed libfuse-dev and the latest version of libcfg+ in Ubuntu, but I get the following output:

cc -D_FILE_OFFSET_BITS=64 -I/usr/include/fuse -lfuse -pthread -O2 -Wall  -lcfg+ -DVERSION=\"0.0.9\" fuseflt.c -o fuseflt
fuseflt.c: In function ‘main’:
fuseflt.c:682:7: warning: ignoring return value of ‘fchdir’, declared with attribute warn_unused_result [-Wunused-result]
       fchdir(cwdfd);
       ^~~~~~~~~~~~~
fuseflt.c:717:5: warning: ignoring return value of ‘fchdir’, declared with attribute warn_unused_result [-Wunused-result]
     fchdir(cwdfd);
     ^~~~~~~~~~~~~
/tmp/ccQhE6dN.o: In function `main':
fuseflt.c:(.text.startup+0x174): undefined reference to `fuse_main_real'
fuseflt.c:(.text.startup+0x23d): undefined reference to `cfg_get_context'
fuseflt.c:(.text.startup+0x269): undefined reference to `cfg_set_cfgfile_context'
fuseflt.c:(.text.startup+0x271): undefined reference to `cfg_parse'
fuseflt.c:(.text.startup+0x2b1): undefined reference to `cfg_fprint_error'
fuseflt.c:(.text.startup+0x309): undefined reference to `cfg_free_context'
collect2: error: ld returned 1 exit status

Would be great to be able to use this in 2020!

@mzmrk
Copy link

mzmrk commented Apr 21, 2022

Compile and install libcfg+ from here: http://opensource.platon.sk/projects/release_view_page.php?release_id=74

@tom-adsfund
Copy link
Author

Thanks very much.

I'm not familiar with C, but is there a way to make a release binary that's portable across some number of distros/kernels? Or is that made impossible by FUSE being so deeply embedded with the OS?

@mzmrk
Copy link

mzmrk commented Apr 21, 2022

It probably won't work without distro maintainer support, since each of them probably will need different binary.

I compiled it and seems to be still working in 2022 for me.

I'm also not familiar with C too much.

I did those steps on debian 10

For libcfg+ i did
./configure
make
make install
Then run "ldconfig" to refresh libraries in os.

Next simply compile fuseflt.
according to readme https://github.com/thkala/fuseflt/blob/master/README
make
make install
It should put binary in /usr/local/bin/fuseflt according to documentation.

Personally I manually compiled it so not sure how make install works for fuseflt itself.

You might need to install extra libraries since i installed python-fuse. Not sure if that installed any extra libraries.

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