32bit "ghost" executable with porteus 3.2.2 64bit?

Technical issues/questions of an intermediate or advanced nature.
att
Contributor
Contributor
Posts: 137
Joined: 28 Dec 2010, 17:09

32bit "ghost" executable with porteus 3.2.2 64bit?

Post#1 by att » 19 Feb 2017, 12:07

Hello,
I have a very old but good backup software called "Norton Ghost 11.5/Linux" which I would like to use with Porteus 3.2.2/64 bit on an old PC (Intel Q6600, 8GB Ram, MSI Neo3-FR Mobo).
Do you know what libraries or addons I need to get this old 32bit-executable to start? It did work fine with previous Porteus versions.....

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Re: 32bit "ghost" executable with porteus 3.2.2 64bit?

Post#2 by Blaze » 19 Feb 2017, 12:13

Hi att.
What about compat32-libraries-3.0-x86_64-1sl.xzm or 0050-multilib-current-x86_64.sxz (rename to 0050-multilib-current-x86_64.xzm)
from http://bear.alienbase.nl/mirrors/slackware-live/bonus/ ?
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

burdi01
Shogun
Shogun
Posts: 201
Joined: 18 Aug 2013, 12:09
Distribution: Slackware PartedMagic Xubuntu
Location: The Netherlands

Re: 32bit "ghost" executable with porteus 3.2.2 64bit?

Post#3 by burdi01 » 20 Feb 2017, 11:09

Running Porteus KDE 3.2.2 64-bit:

Code: Select all

root@porteus:~# ldd /usr/bin/ghost
             not a dynamic executable
root@porteus:~# file /usr/bin/ghost
/usr/bin/ghost: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), statically linked, stripped
root@porteus:~#
It being statically linked one would expect ghost to run without a hitch, but it silently dies... Some /lib trickery seems to be required. But the full 32-bit compatibility stuff seems like an overkill to me.
At least today I will not have the time to research things, or to test on a 32-bit Porteus ...
:D

burdi01
Shogun
Shogun
Posts: 201
Joined: 18 Aug 2013, 12:09
Distribution: Slackware PartedMagic Xubuntu
Location: The Netherlands

Re: 32bit "ghost" executable with porteus 3.2.2 64bit?

Post#4 by burdi01 » 22 Feb 2017, 14:13

First of all I should mention that I have been using the "ghost" linux executable for years (and still do so) as a module to my (unofficial) PartedMagic spin (64-bit kernel, 32-bit userland).

As /usr/bin/ghost is an ELF 32-bit LSB executable I expected it to run without a hitch on a 32-bit Porteus -- and it does. What mislead me initially was the fact that after activating the module even when logged in as root ghost did not start via the menu. First after logging out and in again that symptom turned out to be resolved.

As /usr/bin/ghost is statically linked I expected it to run on a 64-bit Porteus -- but it did not, and without messages things are difficult to debug ... I know that dynamically linked 32-bit executables need a /lib/ld-linux.so.2 library, so as an experiment I copied that one from the 32-bit Porteus. To my very surprise ghost now complained about a missing libm. So I copied the /lib/libm from the 32-bit Porteus too. Now ghost complained about a missing libdl ... And so on. After adding 6 libraries ghost finally started from the CLI -- see the remark about activating above.

Next I tried the compat32 module as mentioned by Blaze: ghost started. But these libraries are from Aug'2013, which in Linux terms is ancient, and 75 MB seems like an overkill.
I then tried AlienBob's multilib module as also mentioned by Blaze: ghost started. But 366 MB seem even more like an overkill ... As our target is to *run* and not to "build" a 32-bit executable I extracted the /lib and /usr/lib directories from the multilib module: 169 MB. I also had a look at AlienBob's glibc-solibs (3.8 MB), but that is missing the /usr/lib/libgcc_s.so library.

So I retraced my steps and decided on the 6 libraries as mentioned above. The attached module contains these 6 libraries as copied from a Dec'2016 Slack32 Current installation.
Note that as ghost is proprietary this module does *not* contain the /usr/bin/ghost executable -- you will have to provide that one yourself.
:D

https://drive.google.com/file/d/0B0gP2v ... sp=sharing

burdi01
Shogun
Shogun
Posts: 201
Joined: 18 Aug 2013, 12:09
Distribution: Slackware PartedMagic Xubuntu
Location: The Netherlands

32bit "ghost" executable with porteus 3.2.2 64bit?

Post#5 by burdi01 » 10 Jul 2018, 10:24

The above module is no longer available.
For the record the pertinent 32-bit libraries are: ld-linux.so.2 libc.so.6 libdl.so.2 libgcc_s.so libm.so.6 and libpthread.so.0 (and their link targets of course).
:D

Post Reply