From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Herman Newsgroups: gmane.emacs.help Subject: Re: Termux package "CANNOT LINK EXECUTABLE" error with Emacs Android Date: Tue, 17 Oct 2023 20:17:38 +0300 Message-ID: <20231017201738.49a48f42@Elitebook> References: <20231017164151.42830fd4@Elitebook> <87y1g15pna.fsf@yahoo.com> <20231017172650.4c9fc47e@Elitebook> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4936"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Po Lu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 17 19:18:40 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 1qsniJ-00014l-GR for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 17 Oct 2023 19:18:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsnhV-0003nm-EV; Tue, 17 Oct 2023 13:17:49 -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 1qsnhT-0003nJ-De for help-gnu-emacs@gnu.org; Tue, 17 Oct 2023 13:17:47 -0400 Original-Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qsnhR-0003pK-D2 for help-gnu-emacs@gnu.org; Tue, 17 Oct 2023 13:17:47 -0400 Original-Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2c4fdf94666so62890611fa.2 for ; Tue, 17 Oct 2023 10:17:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697563063; x=1698167863; darn=gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=U3mVm9N/h0LINQwIU0tkDVXo0/98jByPIy6x25nOWJg=; b=F+iv12cf47WlebQTBcO3h/Apg05kHic/H2uVGJLgUGPu+HTfqTVTYIZTk6A5CIjaYy qC8oGKm2BGukaLwPy92KOZKOzGLlEq+/KLCPZ9F2vyxWILwNuKlo7JJphyr5x7L8gRbj f8mpb6NpVrskDiballcI6tXTdz9FPLsU0KGGpXBV8YQZnPeGyO38MjzF4mg+c5hlw1aL XDyU83C2I5Mib93aXiR1c6HkyMXfLP2poitH8iLE9Fr4mUiCztkOksp0qckufQ4ellL6 cqNno0c0IkKtJ4c6fUtCRDVOiSbQCH5A5sjXO0+TVccp8/tCl8t+Uz//LTp4vH3K+nq3 g+bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697563063; x=1698167863; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=U3mVm9N/h0LINQwIU0tkDVXo0/98jByPIy6x25nOWJg=; b=MQQ7UAJ6eDxf1WeU3+xCZhI3fFuQoCOiHUqHnNTD/HdHstAEA3zKlzMPyNQgnZkXVq 69tlUPdkcRYTy8htgBf6MKKgPsOl+kg9238wUDxJfDQRmDWktXNKlVKecpaUWfR3/VRu SGjVzMyb7UoVAZdimruX20KQJ74AkoRnt3quImahFMOuGJvMblz+rhj4qSXB+lHNf2Zi qNkD0+fAEqQhV3Y2ZawoPpvbkPy5mK9Bw7s9PddUXOHnMpmrW6lMJ4vbrXkTTalP41uO cSy5jyyXvmro/9UZJeDCORFYIFBaAAl6TTd6J7mFku1KDkcPg/Q9HRfG6r9Sh1qJE1Cm aZOA== X-Gm-Message-State: AOJu0Yziz/8qVEMn0Bv5FNDeUThujYQmhB7J9X8hW5ng5J/roSkJEZyA usHw7EoLxNYQLsC+8ga2dLi4uMJBAp7Hmw== X-Google-Smtp-Source: AGHT+IGuWBU6BjfcrHXToFB2SoZodIUCwlPK1vNO9t+K1qsfJfz1/CoQjdU84h6O0bwC/578v0r69g== X-Received: by 2002:a2e:b893:0:b0:2c5:1483:fae1 with SMTP id r19-20020a2eb893000000b002c51483fae1mr2490304ljp.11.1697563062979; Tue, 17 Oct 2023 10:17:42 -0700 (PDT) Original-Received: from Elitebook ([2a09:bac5:30ad:5f5::98:30]) by smtp.gmail.com with ESMTPSA id u21-20020a2ea175000000b002c5050d6c75sm335254ljl.90.2023.10.17.10.17.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 10:17:42 -0700 (PDT) In-Reply-To: <20231017172650.4c9fc47e@Elitebook> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2a00:1450:4864:20::22a; envelope-from=mahlamytsike@gmail.com; helo=mail-lj1-x22a.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, 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: 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:145310 Archived-At: The problem seems to be that in Termux and Emacs shell the same executable is linked to the same library (libpcrecpp.so) but in different locations. How can it be solved ? ### Termux ### $ ldd /data/data/com.termux/files/usr/bin/mega-cmd-server | grep -e "pcrecpp" libpcrecpp.so => /data/data/com.termux/files/usr/lib/libpcrecpp.so $ nm -gD /data/data/com.termux/files/usr/lib/libpcrecpp.so | grep -e "_ZN7pcrecpp2RE6no" 00000000000125d0 B _ZN7pcrecpp2RE6no_argE ### Emacs shell ### $ ldd /data/data/com.termux/files/usr/bin/mega-cmd-server | grep -e "pcrecpp" (standard input):2: libpcrecpp.so => /system/lib64/libpcrecpp.so $ nm -gD /system/lib64/libpcrecpp.so | grep -e "_ZN7pcrecpp2RE6no" $ /sorry for initial repeated messages/ On Tue, 17 Oct 2023 17:26:50 +0300 Herman wrote: > On Tue, 17 Oct 2023 21:45:13 +0800 > Po Lu wrote: > > > 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. > > > > > > > Hmm, what if you introduce an entry for /system/lib64 into > > LD_LIBRARY_PATH? > > Thanks ! Adding /system/lib64 into LD_LIBRARY_PATH made > megasumplesync working. > > This revealed now the next obstacle. Megasimplesync is a simple > process that just stays on after launch. However, all other 'mega-' > commands will spawn 'mega-cmd-server' and this will fail under Emacs. > > $ mega-sync > [Initiating MEGAcmd server in background. Log: > /data/data/org.gnu.emacs/files/.megaCmd/megacmdserver.log] > Unable to connect to service: error=111 > Please ensure mega-cmd-server is running > Failed to create socket for registering for state changes > > $ cat ~/.megaCmd/megacmdserver.log > CANNOT LINK EXECUTABLE "mega-cmd-server": cannot locate symbol > "_ZN7pcrecpp2RE6no_argE" referenced by > "/data/data/com.termux/files/usr/bin/mega-cmd-server"...