From: Takesi Ayanokoji <ayanokoji.takesi@gmail.com>
To: 66508@debbugs.gnu.org
Subject: bug#66508: 30.0.50; Emacs Android port crashes due to link error when build with libxml2 and ImageMagick7
Date: Fri, 13 Oct 2023 06:19:05 +0900 [thread overview]
Message-ID: <CAN7WbiakRTcc1F=vD=y-0yFargaUe3iZQXo9R9n7iANaHO6NPA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2256 bytes --]
Hello,
After building and installing Emacs Android port with libxml2 and
ImageMagick, Emacs crashed during startup with such bellow error on logcat
output.
10-13 06:00:10.489 22999 22999 I SELinux : SELinux: seapp_context_lookup:
seinfo=untrusted, level=s0:c512,c768, pkgname=org.gnu.emacs
10-13 06:00:10.873 22999 22999 W linker :
"/data/app/org.gnu.emacs-qyrcKpWJ8LCBp8R1gwRLIg==/lib/arm64/libc++_shared.so"
unused DT entry: type 0x70000001 arg 0x0
10-13 06:00:10.888 22999 22999 W linker :
"/data/app/org.gnu.emacs-qyrcKpWJ8LCBp8R1gwRLIg==/lib/arm64/libc++_shared.so"
unused DT entry: type 0x70000001 arg 0x0
10-13 06:00:11.005 22999 22999 E AndroidRuntime: Process: org.gnu.emacs,
PID: 22999
10-13 06:00:11.005 22999 22999 E AndroidRuntime:
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol
"UCNV_TO_U_CALLBACK_STOP_64" referenced by
"/data/app/org.gnu.emacs-qyrcKpWJ8LCBp8R1gwRLIg==/lib/arm64/libxml2_emacs.so"...
10-13 06:00:11.005 22999 22999 E AndroidRuntime: at
org.gnu.emacs.EmacsNative.<clinit>(EmacsNative.java:322)
10-13 06:00:11.005 22999 22999 E AndroidRuntime: at
org.gnu.emacs.EmacsNative.setupSystemThread(Native Method)
10-13 06:00:11.005 22999 22999 E AndroidRuntime: at
org.gnu.emacs.EmacsApplication.onCreate(EmacsApplication.java:84)
And below are nm out put,
this one is when build with libxml2 only,
nm arm64-v8a/libxml2_emacs.so |grep -i ucnv
U UCNV_FROM_U_CALLBACK_STOP_56
U UCNV_TO_U_CALLBACK_STOP_56
U ucnv_close_56
U ucnv_convertEx_56
U ucnv_open_56
U ucnv_setFromUCallBack_56
U ucnv_setToUCallBack_56
and below is when build with libxml2 and ImageMagick7
nm arm64-v8a/libxml2_emacs.so |grep -i ucnv
U UCNV_FROM_U_CALLBACK_STOP_64
U UCNV_TO_U_CALLBACK_STOP_64
U ucnv_close_64
U ucnv_convertEx_64
U ucnv_open_64
U ucnv_setFromUCallBack_64
U ucnv_setToUCallBack_64
I think this is caused by a conflict due to static libraries *.a having
the same name during build.
(not *.o because they are made unique by prefixing path to *.o.)
Thanks,
[-- Attachment #2: Type: text/html, Size: 3365 bytes --]
next reply other threads:[~2023-10-12 21:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-12 21:19 Takesi Ayanokoji [this message]
2024-01-10 22:04 ` bug#66508: 30.0.50; Emacs Android port crashes due to link error when build with libxml2 and ImageMagick7 Stefan Kangas
2024-01-11 1:29 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-01-11 22:16 ` Takesi Ayanokoji
2024-01-12 1:49 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN7WbiakRTcc1F=vD=y-0yFargaUe3iZQXo9R9n7iANaHO6NPA@mail.gmail.com' \
--to=ayanokoji.takesi@gmail.com \
--cc=66508@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.