From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.help Subject: Re: Termux package "CANNOT LINK EXECUTABLE" error with Emacs Android Date: Tue, 17 Oct 2023 21:45:13 +0800 Message-ID: <87y1g15pna.fsf@yahoo.com> References: <20231017164151.42830fd4@Elitebook> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34844"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Herman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 17 15:46:14 2023 Return-path: Envelope-to: geh-help-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 1qskOj-0008mp-Hp for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 17 Oct 2023 15:46:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qskO3-0004pW-La; Tue, 17 Oct 2023 09:45:31 -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 1qskO2-0004om-Hg for help-gnu-emacs@gnu.org; Tue, 17 Oct 2023 09:45:30 -0400 Original-Received: from sonic317-32.consmr.mail.ne1.yahoo.com ([66.163.184.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qskO0-0004eu-FB for help-gnu-emacs@gnu.org; Tue, 17 Oct 2023 09:45:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697550325; bh=VOJsZMZXV+Y0ZQ/4RxIAYboqRomd9LKWyCF+lvthMmA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=UcbPZSLmijVZW1yQ4L/BaMcBqB+4q4MhqmG0qgNg07fxae9f3jrhKvcEGnDPc9L7TaGNHASiHIOAU/3lLwnXlahPpB/Mxkb505D35PpjJh0J94+eVo3vqWYxdn1L73Vzb+BDKFY0QjXeavEpKx/SLPFuVciwA2fRsHPACEfTDTgyHaiiWYTNlyjYp1mFp4yx5clWAkM3H8lXMxV1+98+2nxgXtk7sntwf4hIF9SL2tszPnf/XyQbWtmQsmzM6Nm3CXjvpsNyq9GXiwmbA4hFsiqFyO8nz7vCpZbTZgFpmYc1xNsNidl1U4eIgjwaZ6sWyg4vk0l48sz0zbaWH4GOxA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697550325; bh=GJPUWKEFGkAnH7eVB6oVQD3oA20Do32ojb4OMVhjqbI=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=lDWRdj9TZFRrsxY2AZH6+NZwJpruJnEFxdz0scC3E3nO9F/VOaRbvrGqF7cEk08Dd9kFjFYPgC+plx6gNCynfqYjJMa4dAOQLYZmc4HkLCzK3vnYBsYZsTMoSDdfK3wePLOFIHazG6k55VTFb/evpXnabmCmow6urH9yyG+6zCwyNmIJoM7usmrjzR3sqd6GX4R5LLToiQIewSx8TEHE8gbXwqbFasat+7FcEklEUxFr7uK/D3YylDdBT43wYJ90XwVmixkXzF8129VsjIoDXYGXbwYn94hGexfPBXougIoUS8/dKZTYkt/qtJyex0wGCominZcqpQ+o+c4jFFqx4A== X-YMail-OSG: I.9HBQsVM1maRXpHkzoyFm0LY2LAlaE6tlbAmr5QCmo6CIrQdu_zMoSldE2ju1A RF8ODLUH8cqy4wzy1hFuDiWWG9FbLbSOjabw69K5V5r0VQbG8iHmQix8BOjI_vYZBhGH2s76LKvD 95BnTwsbLcGTAjm0pQWFoGbUeCrCpKuAehnIvVY3MRoxstX6R9I43SN0eXBiCxfboRVpG.LfudKE jzzCB0WzS9YQxGphdyb_k3b8t1L0A9BlscdW4KsACNk5pMRMlhrqbPwGEj6IUxKfW4ZGx6kbsqNr TvaSuKjCxL5qrzlxnnxZabjCYcnACmSNMyoNJk2C4ukzgkU.Tbd.oFJYdN7agoCiDBAPZiIjlvQW fNPdKVuLFnOcGpp0ig8b90F3l8ohgef6rI9fXXbfW3W9Z.Aevj_rSDQalGqrIzQlx17u0CiuUpZC uSAb63i4DSdj58QMF09vuUrK7w_oDGM_7ejxNA1uH1ByuGP0gCVX45J0WSZUD_xJKTzwe2JiFaFi si.FyXCMMyEKd2fuyzIup624dqXFF7LomU1Z58RKkOlm47RG3Gtcg0vdMmRyUhtwlIfTAHcPGG.y PzQPDwKgLNpeI27vGxd6N5FOyRlXBpwhNTtSW.knlwBUvbZrVZbS3mWL8tsghvDvx4hcb_HFtnoy bbeD9FRD.AbucxBzRdUWIBDtwCRd.ldqaww41cKW.oWcwjkfBGfAtfYFODj2oBDEs1bfj03KguVv uoeUXBsqmCU5UgtvwyFe73G3ilDhKe5xWnDxRsoHT7iJPdvkthhxYC1xWkEuXabeP1NKQrAchxFp 6SeF6e5MJeQLUl0yagSLzNxEcuSRzRXiNXbSat56eF X-Sonic-MF: X-Sonic-ID: cc53d721-270b-44f1-af03-4ce94d89c9ae Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Tue, 17 Oct 2023 13:45:25 +0000 Original-Received: by hermes--production-sg3-57f7997989-bg88w (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fb31867d6e40d6beef370a432334661a; Tue, 17 Oct 2023 13:45:18 +0000 (UTC) In-Reply-To: <20231017164151.42830fd4@Elitebook> (Herman's message of "Tue, 17 Oct 2023 16:41:51 +0300") X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.43; envelope-from=luangruo@yahoo.com; helo=sonic317-32.consmr.mail.ne1.yahoo.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145305 Archived-At: Herman writes: > Hi ! > > Installed megacmd package under Termux. > > megacmd commands under Termux work fine. But not under Emacs shell or eshell: > > $ megasimplesync > CANNOT LINK EXECUTABLE > "/data/data/com.termux/files/usr/bin/megasimplesync": cannot locate > symbol "CrcGenerateTable" referenced by > "/system/lib64/libunwindstack.so"... > > To reproduce it's enough to run any 'mega-'command. > $ mega-login > > $ cat ~/megaCmd/megacmdserver.log > CANNOT LINK EXECUTABLE "mega-smd-server": cannot locate symbol > "CrcGenerateTable" referenced by "/system/lib64/libunwindstack.so"... > > Dont know, if it is misconfiguration or bug. > > Relevant information: > Android 10 > Downloaded Emacs 30.0.50-29 and Termux 0.118.0 from > https://sourceforge.net/projects/android-ports-for-gnu-emacs/files/termux/ > with shared user ID and Termux terminal emulator signed with Emacs's > signing keys. Also made the following preparations: > Emacs shell: $ pkg update && pkg upgrade > and added to early-init.el: > (setenv "PATH" (format "%s:%s" "/data/data/com.termux/files/usr/bin" (getenv "PATH"))) > (setenv "LD_LIBRARY_PATH" (format "%s:%s" > "/data/data/com.termux/files/usr/lib" (getenv "LD_LIBRARY_PATH"))) > (push "/data/data/com.termux/files/usr/bin" exec-path) > Other packages e.g. 'pkg' or 'git' work fine under Emacs shell. Hmm, what if you introduce an entry for /system/lib64 into LD_LIBRARY_PATH?