Opened 10 years ago

Closed 9 years ago

#546 closed defect/bug (Incomplete/Missing infos)

crash on startup: cannot load library: cannot locate [some symbol]

Reported by: openid-provider.appspot.com/roverorna Owned by: cp15
Priority: blocker Milestone:
Component: port/android Version: git master
Severity: Keywords:
Cc:

Description

This bug shows in SVN rev2952, pre-build and self-build. When I'm starting Navit on my HTC Dream (CyanogenMod? 4.2.14.1) it shows empty window for a second and disappears, leaving messages like this in log (full logcat attached):

E/navit (10138): navit:plugin_load:can't load '/data/data/org.navitproject.navit/lib/libgraphics_android.so', Error 'Cannot load library: reloc_library[1245]: 129 cannot locate 'g_malloc0'...'

The libraries seem to be installed (the files it's complaining about are where it looks for them).

Attachments (1)

logcat-cannot-load-library-cannot-locate.txt (3.8 KB) - added by openid-provider.appspot.com/roverorna 10 years ago.
logcat

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by openid-provider.appspot.com/roverorna

logcat

comment:1 Changed 10 years ago by openid-provider.appspot.com/roverorna

I looked around a bit, and it seems all of the missing symbols are in fact available from libnavit.so, but none of the libraries packaged with navit have libnavit as NEEDED (as in: arm-eabi-readelf -d is not showing libnavit.so as NEEDED for any of them).

comment:2 Changed 10 years ago by openid-provider.appspot.com/roverorna

Ok, I've got to change a line in configure.in:

diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -106,7 +106,7 @@ linux*_android)
        speech_android=yes; speech_android_reason="host_os is android"
        MODULE_LDFLAGS="-module -Xcompiler -nostdlib"
        MODULE_LIBADD="-llog"
-       NAVIT_MODULE_LDFLAGS="$MODULE_LDFLAGS"
+       NAVIT_MODULE_LDFLAGS="$MODULE_LDFLAGS -L\$(top_builddir)/navit -lnavit"
        ;;
 esac
 if test "x$win32" = "xyes"

I hope this won't break anything else.

comment:3 Changed 10 years ago by hoffenheim

Still the same problem here with navit-svn-2974.apk on a Samsung Galaxy (Android 1.5)

comment:4 Changed 10 years ago by kazer

hoffenheim : having the issue with patched navit? or the vanilla one ?

comment:5 Changed 9 years ago by kazer

  • Resolution set to Incomplete/Missing infos
  • Status changed from new to closed

no updates for 8 months. If needed, please reopen.

Note: See TracTickets for help on using tickets.