From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Takesi Ayanokoji Newsgroups: gmane.emacs.bugs 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 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000191a0b06078b7edd" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11289"; mail-complaints-to="usenet@ciao.gmane.io" To: 66508@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 12 23:19:48 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qr35w-0002jx-2A for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Oct 2023 23:19:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qr35r-0000cw-Hf; Thu, 12 Oct 2023 17:19:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qr35n-0000co-SO for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2023 17:19:40 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qr35n-00031L-Ka for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2023 17:19:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qr36A-0005d7-6s for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2023 17:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Takesi Ayanokoji Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Oct 2023 21:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66508 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169714559021618 (code B ref -1); Thu, 12 Oct 2023 21:20:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Oct 2023 21:19:50 +0000 Original-Received: from localhost ([127.0.0.1]:44391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qr35y-0005cb-Cc for submit@debbugs.gnu.org; Thu, 12 Oct 2023 17:19:50 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:55106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qr35w-0005cO-Bq for submit@debbugs.gnu.org; Thu, 12 Oct 2023 17:19:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qr35U-0000aR-Bz for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2023 17:19:20 -0400 Original-Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qr35S-000301-OY for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2023 17:19:20 -0400 Original-Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-417fc2da919so8784051cf.2 for ; Thu, 12 Oct 2023 14:19:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697145557; x=1697750357; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=X2LlosarBbziHbThF4Ee3rj/0k1tN9al6DWrwWcgvk0=; b=cntBR9NNc98H0IX40sjMAsQatjR7rA64LzpjN+ataoH6Mxyeibk5HBvafM3E92pjX+ WbRAndTyHSMQRW7H3MxNQmAqmaSKqMq+4WtBSzxN+zcSRdstMYCHYm5K/Tzx62ZTq2X2 yG34uOrBTsftpGt7tL6WMoz49Qplok20rbBP7iRlsWaC65cYJdaFFe9iyO0YB7qHgrOm LQ5eoOXQRl/RaOlqJkVFZqFyWmuyOnkwh3Q3u/p3TS2EHJKcHbBOYF+TsSV/3kTDuDdM SZmie6qp9bAt65Bh/BFFjl6p7BidD4j8p1dDNSL6NhEIOiZk19ZHkNqMwbdZNuxfzIKC aRJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697145557; x=1697750357; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=X2LlosarBbziHbThF4Ee3rj/0k1tN9al6DWrwWcgvk0=; b=YlfJcEOWYlfoxl0q093UdTLeBlf+1SAm+6mKHiB0kFjRi+6T8aq1+sq5QpegRJppz5 tjpwKawKUMZIu+b0/J2AuOJLH/RbC9YaDxpPBA1801msVn3YU8iQ4hkGyg5FmJ1i7/Hj qqoSzQiYON53Pnrwcg4OHBj80xtgcuvNRw97YrnwMYxoJSQ4Dj32x/Ynz53S1Qf8cdav sPWXN8hDfB9JUbv7GIOKJFhLnpEUV/iVyOUseN5ChwSUkUsF6RLbmfSf1fRIMbNLVbxO +w1Ha/DmclHa/VX1MBhG3YrcYEnK5f3sECoegS5eWmSgsVaugQpi/r/luobzrOdleaIs Xi6A== X-Gm-Message-State: AOJu0YyRR6x5tV2oxOPc+3hgsgnMW21GuINjw8kIGyEOEBYpN2noOxu+ hGrpyTTrALdvt7a3BD1NMYSL1nQ7Sf5gtrFuBV3HiAyU X-Google-Smtp-Source: AGHT+IGnh44TgNLnEx5ittggLzDmyVyvuRbmBhHrCAu005SHQpbqcwwo6DHG4iGVhDiWXOJ48s62tVorXrPd5l8lJ90= X-Received: by 2002:a05:622a:2d4:b0:417:9962:4de9 with SMTP id a20-20020a05622a02d400b0041799624de9mr28364379qtx.1.1697145557685; Thu, 12 Oct 2023 14:19:17 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::831; envelope-from=ayanokoji.takesi@gmail.com; helo=mail-qt1-x831.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272323 Archived-At: --000000000000191a0b06078b7edd Content-Type: text/plain; charset="UTF-8" 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.(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, --000000000000191a0b06078b7edd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

After building and installing Emacs Android port with=C2= =A0 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: s= einfo=3Duntrusted, level=3Ds0:c512,c768, pkgname=3Dorg.gnu.emacs
10-13 06:00:10.873 22999 22999 W linker=C2=A0 : "/data/ap= p/org.gnu.emacs-qyrcKpWJ8LCBp8R1gwRLIg=3D=3D/lib/arm64/libc++_shared.so&quo= t; unused DT entry: type 0x70000001 arg 0x0
10-13 06= :00:10.888 22999 22999 W linker=C2=A0 : "/data/app/org.gnu.emacs-qyrcK= pWJ8LCBp8R1gwRLIg=3D=3D/lib/arm64/libc++_shared.so" unused DT entry: t= ype 0x70000001 arg 0x0
10-13 06:00:11.005 22999 2299= 9 E AndroidRuntime: Process: org.gnu.emacs, PID: 22999
10-13 06:00:11.005 22999 22999 E AndroidRuntime: java.lang.UnsatisfiedLi= nkError: dlopen failed: cannot locate symbol "UCNV_TO_U_CALLBACK_STOP_= 64" referenced by "/data/app/org.gnu.emacs-qyrcKpWJ8LCBp8R1gwRLIg= =3D=3D/lib/arm64/libxml2_emacs.so"...
10-13 06:= 00:11.005 22999 22999 E AndroidRuntime:=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.g= nu.emacs.EmacsNative.<clinit>(EmacsNative.java:322)
10-13 06:00:11.005 22999 22999 E AndroidRuntime:=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at org.gnu.emacs.EmacsNative.setupSystemThread(Native Method)
<= div dir=3D"auto">10-13 06:00:11.005 22999 22999 E AndroidRuntime:=C2=A0 =C2= =A0 =C2=A0 =C2=A0 at org.gnu.emacs.EmacsApplication.onCreate(EmacsApplicati= on.java:84)

And below ar= e nm out put,

this one i= s when build with libxml2 only,

nm arm64-v8a/libxml2_emacs.so |grep -i ucnv
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0U UCNV_FROM= _U_CALLBACK_STOP_56
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0U UCNV_TO_U_CALLBACK_STOP_56
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0U u= cnv_close_56
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0U ucnv_convertEx_56
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0U ucnv_open_56
=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0U ucnv_setFromUCallBack_56
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0U ucnv_setToUCallBack_56
=

and below is when build with = libxml2 and ImageMagick7

nm arm64-v8a/libxml2_emacs.so |grep -i ucnv
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0U UCNV_FROM_U_CALLBA= CK_STOP_64
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0U UCNV_TO_U_CALLBACK_STOP_64
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0U ucnv_close_= 64
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0U ucnv_convertEx_64
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0U ucnv_open_64
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0U u= cnv_setFromUCallBack_64
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0U ucnv_setToUCallBack_64

I think this is caused by a conflict due= to static libraries *.a=C2=A0 having the same name during build.
(not *.o because they are made unique by prefixing path to *.= o.)

Thanks,
--000000000000191a0b06078b7edd--