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

Technical issues/questions of an intermediate or advanced nature.
Post Reply
att
Contributor
Contributor
Posts: 131
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
Moderator
Moderator
Posts: 1383
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64
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 porteus 4.12.7-porteus #1 SMP PREEMPT Sun Aug 13 17:38:30 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

burdi01
Black ninja
Black ninja
Posts: 49
Joined: 18 Aug 2013, 12:09
Distribution: Slackware, 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
Black ninja
Black ninja
Posts: 49
Joined: 18 Aug 2013, 12:09
Distribution: Slackware, 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

Post Reply