Comments (7)
Stacktrace:
04-10 02:17:06.659 8928-8990/? E/AndroidRuntime: FATAL EXCEPTION: Thread-397
Process: com.google.android.sambadocumentsprovider, PID: 8928
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "state_path" referenced by "libsmbregistry-samba4.so"...
at java.lang.Runtime.loadLibrary(Runtime.java:371)
at java.lang.System.loadLibrary(System.java:988)
at com.google.android.sambadocumentsprovider.nativefacade.NativeCredentialCache.<clinit>(NativeCredentialCache.java:23)
at com.google.android.sambadocumentsprovider.nativefacade.SambaMessageLooper.prepare(SambaMessageLooper.java:71)
at com.google.android.sambadocumentsprovider.nativefacade.SambaMessageLooper.access$000(SambaMessageLooper.java:24)
at com.google.android.sambadocumentsprovider.nativefacade.SambaMessageLooper$1.run(SambaMessageLooper.java:29)
at java.lang.Thread.run(Thread.java:818)
from samba-documents-provider.
state_path is defined in libsmbconf.so, but it needs libsmbregsitry-samba4.so.
from samba-documents-provider.
I am calling this bug fix infeasible.
I tried to untie the circular dependencies, only to reveal more circular dependencies.
I made samba3util subsystem which defines state_path a shared library. Then I found symbols in param subsystem depends on smbconf a library and smbconf depends on param.
Given that I am not an expert in Samba, I feel keep untying circular dependencies will lead to unexpected behaviors.
Lollipop users don't be too sad. Lollipop cannot benefit from this app much because the only thing their users could do with this app if it ran was to pick files in Samba servers while sending an email.
from samba-documents-provider.
FWIW, configuring samba with
--with-static-modules=ALL \
--builtin-libraries=replace,ccan,samba-cluster-support,smbconf,smbregistry,secrets3 \
--bundled-libraries=talloc,tdb,pytdb,ldb,pyldb,tevent,pytevent
Seems to get rid of the circular dependencies.
Tested with SPMC on FireTV (API22).
Thanks for the patch, BTW ๐
from samba-documents-provider.
Thanks for @koying's effort and I believe you've tried several combinations before making it work.
Unlike SPMC this app is relying on Storage Access Framework. I believe releasing a patch for Lollipop users is not very useful as SAF was not very useful for L.
from samba-documents-provider.
Actually, the most difficult part is to make any sense of these options... which I still don't, honestly.
Purely empirical, I must admit, based only on the libs having the duplicate symbols the linker complained about ;)
Re usefulness, I guess, you're probably right for SAF, but could be useful for any app needing samba on droid, I suppose.
I bet you'll see many file explorers upgraded to slb2/smb3 based on your work, soon, considering the based press smb1 git those last months...
from samba-documents-provider.
#52 i meet the same question and i use ndk 12b to create the toolchain ๏ผnow it can run on android-l
from samba-documents-provider.
Related Issues (20)
- error configure.sh HOT 1
- Failed to mount share.
- Error:error: '../../../../src/main/jniLibs/x86_64/libsmbclient.so', needed by '../../../../build/intermediates/cmake/debug/obj/x86_64/libsamba_client.so', missing and no known rule to make it HOT 6
- "Cross answers file build_answers is incomplete" error and failed to build HOT 1
- macOS - wscript:223: error: could not configure a c compiler! HOT 3
- canโt compile with ndk19
- Support for non-standard smb port
- Insecure IV generation. HOT 1
- filenames that end with a "." get mangled
- Incorrect assignment in comparison
- Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project. HOT 1
- Cannot connect to secure SMB3 HOT 2
- Any idea how it works on MIUI? HOT 1
- Is there a plan to continue maintenance? Or is there any alternative? HOT 2
- How to build smaba server?
- V1.0 fails on Lillipop - how to fix?
- Domainname HOT 2
- Please enable Discussion.
- Broken in android 13 HOT 5
- Clean
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samba-documents-provider.