-
Notifications
You must be signed in to change notification settings - Fork 496
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
target libfuse version 30 #221
Conversation
libfuse only defines fuse_new_30 when FUSE_USE_VERSION == 30. It does not define fuse_new_31 in the headers. fuse_new_31 and _32 seem to be internal only. Fixes a linking issue: ld: sshfs.p/sshfs.c.o: in function `main': sshfs.c:(.text.startup+0x506): undefined reference to `fuse_new' ld: sshfs.c:(.text.startup+0x506): undefined reference to `fuse_new'
Sorry, I do not understand (and I can't reproduce the problem). SSHFS uses |
libfuse 3.10 does not have a
|
So I did some more testing, and the above is true with a uClibc-based toolchain, while with glibc, we have:
So in this case, |
To provide one more data point, with a musl-based toolchain, the situation is like with glibc. So, the issue occurs only with a uClibc-based toolchain. Not sure what else I can provide to help fix this... Just ask if you need further info or testsing. |
All I know is, this patch fixes it. |
That a patch fixes an issue is not what a maintainer wants to know. What they want to know, are the conditions why the issue occurs, so that they can assess if the patch is indeed the proper fix, or is just a workaround. As maintainers, they have a much better grasp at the code, its design and layout and intricate interdependencies, to review a patch, and if needed, suggest a better fix. Additionally, knowing those conditions will allow them to actually test and validate the patch. Finally, as maintainers, they will have to carry and care about that change in the future, and ensure that it does not break back. If a patch does not explain in details why it was done, chances are high it gets reverted sooner or later if the issue it purportedly fixed can't be reproduced. |
Hmm... |
Found the issue: https://github.com/libfuse/libfuse/blob/master/lib/fuse_misc.h#L16 These hacks need to go the way of the dodo. |
Closing this as lobfuse was fixed. Strictly speaking, it's still a problem with macOS but I don't know if aahfs even works there. |
@neheb Thank you for the further investigations, and eventual proper fix. :-) We'll now be able to also fix that in Buildroot, so extra thanks are due, too. |
libfuse only defines fuse_new_30 when FUSE_USE_VERSION == 30. It does not
define fuse_new_31 in the headers.
fuse_new_31 and _32 seem to be internal only.
Fixes a linking issue:
ld: sshfs.p/sshfs.c.o: in function
main': sshfs.c:(.text.startup+0x506): undefined reference to
fuse_new'ld: sshfs.c:(.text.startup+0x506): undefined reference to `fuse_new'