From owner-freebsd-questions@freebsd.org Thu Feb 11 04:26:02 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8BEEF539F65 for ; Thu, 11 Feb 2021 04:26:02 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "dreamchaser.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dbk8T49mhz4j66 for ; Thu, 11 Feb 2021 04:26:01 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id 11B4Ppt0001898; Wed, 10 Feb 2021 21:25:51 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Reply-To: freebsd@dreamchaser.org Subject: Re: which linux libfuse.so.2? To: Pete Wright , FreeBSD Mailing List References: <79254130-e926-fab3-9d5b-b6862c6b747b@dreamchaser.org> <8e50ba4b-a419-0d60-c2b5-1c379e2dc604@nomadlogic.org> <51a444f0-c920-1764-0480-ca99e2ac8186@nomadlogic.org> From: Gary Aitken Message-ID: Date: Wed, 10 Feb 2021 21:21:21 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <51a444f0-c920-1764-0480-ca99e2ac8186@nomadlogic.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Wed, 10 Feb 2021 21:25:52 -0700 (MST) X-Rspamd-Queue-Id: 4Dbk8T49mhz4j66 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-2.30 / 15.00]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[66.109.141.57:from]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; SPAMHAUS_ZRD(0.00)[66.109.141.57:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2021 04:26:02 -0000 I'm still trying to get my head around what's going on here. I *thought* the /compat/linux stuff was meant to work with fbsd stuff to some extent... On 2/9/21 9:03 PM, Pete Wright wrote: > On 2/9/21 7:23 PM, Gary Aitken wrote: >> >> Is there a way to run /compat/linux/usr/bin/ldd to figure out what >> it is really looking for? I get the same error whether the symlink >> for libfuse.so.2 is present or not. If I try to run the linux ldd >> I get: >> >> $ /compat/linux/usr/bin/ldd >> PrusaSlicer-2.3.0+linux-x64-202101111322.AppImage bash: >> /compat/linux/usr/bin/ldd: /usr/bin/bash: bad interpreter: No such >> file or directory >> >> There is no /usr/bin/bash (it's in /usr/local/bin/bash), but there >> is a /compat/linux/usr/bin/bash. >> > you might want to chroot into the /compat/linux environment like this > for example: $ sudo chroot /compat/linux /usr/bin/bash > > that should make tools like ldd friendlier while you debug. Not sure if this is friendlier or not :-(: $ sudo chroot /compat/linux /usr/bin/bash /$ cd /home/garya/ /home/garya$ ./PrusaSlicer-2.3.0+linux-x64-202101111322.AppImage dlopen(): error loading libfuse.so.2 AppImages require FUSE to run. You might still be able to extract the contents of this AppImage if you run it with the --appimage-extract option. /home/garya$ ldd PrusaSlicer-2.3.0+linux-x64-202101111322.AppImage ELF binary type "3" not known. /bin/ldd: line 161: /lib/ld-linux.so.2: cannot execute binary file not a dynamic executable So, I exploded the .AppImage, which leaves a subtree squashfs-root with a script "AppRun" which basically runs usr/bin/prusa-slicer. So /home/garya$ cd squashfs-root/ /home/garya/squashfs-root$ ./AppRun /home/garya/squashfs-root/usr/bin/bin/prusa-slicer: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory /home/garya/squashfs-root$ ldd /usr/bin/prusa-slicer ELF binary type "3" not known. /bin/ldd: line 161: /lib/ld-linux.so.2: cannot execute binary file not a dynamic executable I don't understand why bin/ldd is a script in compat/linux, which tries to execute a shared library, but even if that made sense... It appears the binary file prusa-slicer is looking for libGLU.so.1, which is not in the /compat/linux tree. Am I correct that running with this linux compatibility mode is restricted to stuff in /compat/linux? If the .AppImage is supposed to be a self-contained binary executable which can run on any linux system, then what does "self-contained" mean? Does it mean "only self-contained enough that libraries we think are on all linux systems by default are not included."? > you also might want to give setting your LD_LIBRARY_PATH when > executing the command from freebsd to include the linux locations and > see how far you get: $ > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/compat/linux/lib:/compat/linux/lib64 > PrusaSlicer... my default environment has no LD_LIBRARY_PATH; I think that's normal in fbsd, correct? In any case, the following still does not find libfuse when run from fbsd: $ LD_LIBRARY_PATH=/compat/linux/lib:/compat/linux/lib64:/usr/local/lib:/usr/lib ./PrusaSlicer-2.3.0+linux-x64-202101111322.AppImage dlopen(): error loading libfuse.so.2 This feels like the whole concept of .AppImage doesn't play well with the compat/linux environment. I guess it is time to upgrade to 12.x and try the ubuntu linuxulator... Gary