recursive link error on Android 5.1.1

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

recursive link error on Android 5.1.1

Nistelberger Kurt
Anybody has a solution for this:

E/art     ( 4135): dlopen("/data/app/com.example.samplegame-1/lib/arm/libil2cpp.so", RTLD_LAZY) failed: dlopen failed: recursive link to "libil2cpp.so"

my application works fine on all Android versions higher than 5.1.1 but on 5.1.1 and below I get the above error and it crashes during startup...
I dont see a solution to fix this, the problem is that I have a circular dependency between two libraries which need each other,
is there a fix to this?

thanks, kurt

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/e9e1aece-5643-4522-9f1e-42b94340c838o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: recursive link error on Android 5.1.1

Dan Albert
Can you make the recursive subset of your libraries static and link them all together into one SO? That's probably your only option if old OS versions reject it.

On Thu, Jun 25, 2020, 08:43 Nistelberger Kurt <[hidden email]> wrote:
Anybody has a solution for this:

E/art     ( 4135): dlopen("/data/app/com.example.samplegame-1/lib/arm/libil2cpp.so", RTLD_LAZY) failed: dlopen failed: recursive link to "libil2cpp.so"

my application works fine on all Android versions higher than 5.1.1 but on 5.1.1 and below I get the above error and it crashes during startup...
I dont see a solution to fix this, the problem is that I have a circular dependency between two libraries which need each other,
is there a fix to this?

thanks, kurt

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/e9e1aece-5643-4522-9f1e-42b94340c838o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFVaGhvv5NGCYTh6oOk0K4v%2B9Po7p_CthjT-9t9rHA9c_4rRVQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: recursive link error on Android 5.1.1

Alex Cohn
In reply to this post by Nistelberger Kurt
Anybody has a solution for this:

E/art     ( 4135): dlopen("/data/app/com.example.samplegame-1/lib/arm/libil2cpp.so", RTLD_LAZY) failed: dlopen failed: recursive link to "libil2cpp.so"

my application works fine on all Android versions higher than 5.1.1 but on 5.1.1 and below I get the above error and it crashes during startup...
I dont see a solution to fix this, the problem is that I have a circular dependency between two libraries which need each other,
is there a fix to this?

thanks, kurt

Well, you can break the circular dependency by using dlsym(), but this isn't a painless solution, alas.

BR,
Alex

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/fb77fb37-1779-4d6b-85a6-91e541a7c67eo%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: recursive link error on Android 5.1.1

Nistelberger Kurt
In reply to this post by Dan Albert
hmmm, thats a very nice idea, I gonna try this, thanks a lot

Am Donnerstag, 25. Juni 2020 20:25:47 UTC+2 schrieb Dan Albert:
Can you make the recursive subset of your libraries static and link them all together into one SO? That's probably your only option if old OS versions reject it.

On Thu, Jun 25, 2020, 08:43 Nistelberger Kurt <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="7N5S9wtPAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">kurt.nis...@...> wrote:
Anybody has a solution for this:

E/art     ( 4135): dlopen("/data/app/com.example.samplegame-1/lib/arm/libil2cpp.so", RTLD_LAZY) failed: dlopen failed: recursive link to "libil2cpp.so"

my application works fine on all Android versions higher than 5.1.1 but on 5.1.1 and below I get the above error and it crashes during startup...
I dont see a solution to fix this, the problem is that I have a circular dependency between two libraries which need each other,
is there a fix to this?

thanks, kurt

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="7N5S9wtPAgAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">andro...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/android-ndk/e9e1aece-5643-4522-9f1e-42b94340c838o%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/android-ndk/e9e1aece-5643-4522-9f1e-42b94340c838o%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/android-ndk/e9e1aece-5643-4522-9f1e-42b94340c838o%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/android-ndk/e9e1aece-5643-4522-9f1e-42b94340c838o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/aeb3a45e-7393-4eb8-a256-db53d05e0aa2o%40googlegroups.com.