Page 1 of 1

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

Posted: 19 Feb 2017, 12:07
by att
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.....

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

Posted: 19 Feb 2017, 12:13
by Blaze
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/ ?

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

Posted: 20 Feb 2017, 11:09
by burdi01
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

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

Posted: 22 Feb 2017, 14:13
by burdi01
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

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

Posted: 10 Jul 2018, 10:24
by burdi01
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