Building and Installing Software Packages for Linux: Backward Compatibility With a.out Binaries
6. Backward Compatibility With a.out BinariesIn a very few cases, it is necessary to use a.out binaries, either because
the source code is not available or because it is not possible to build
new ELF binaries from the source for some reason.As it happens, ELF installations almost always have a complete
set of a.out libraries in the /usr/i486-linuxaout/lib
directory. Theoretically, a.out binaries should be able to find these
libraries at runtime, but this may not always be the case.Note that the kernel should have a.out support built into it, either
directly or as a loadable module. It may be necessary to rebuild the
kernel to enable this. Moreover, some Linux distributions require
installation of a special compatibility package, such as Debian's
xcompat for executing a.out X applications.6.1 An ExampleJerry Smith wrote a very handy rolodex program some years back. It uses
the Motif libraries, but fortunately is available as a statically linked
binary in a.out format. Unfortunately, the source refuses to rebuild
using the lesstif libraries. Even more unfortunately, the a.out binary
bombs on an ELF system with the following error message.
xrolodex: can't load library '//lib/libX11.so.3'
No such libraryAs it happens, there is such a library, in
/usr/i486-linuxaout/lib, but xrolodex is unable to locate it
at run time. The simple solution is to provide a symbolic link in the
/lib directory:ln -s /usr/i486-linuxaout/lib/X11.so.3.1.0 libX11.so.3It turns out to be necessary to provide similar links for the libXt.so.3
and libc.so.4 libraries. This needs to be done as root, of course. Note
that you should make absolutely certain you will not overwrite or cause
version number conflicts with pre-existing libraries. Fortunately, the
new ELF libraries have higher version numbers than the older a.out ones,
to anticipate and forestall just such problems.After creating the three links, xrolodex runs fine.The xrolodex program may be obtained from Spectro.
i
Wyszukiwarka
Podobne podstrony:
software building 8 e4uyh3qkwxjc7pme5ousvqulimbc3x5q6hwh2di e4uyh3qkwxjc7pme5ousvqulimbc3x5q6hwh2disoftware building 4 ow4u7ftjqix6ypyajyiausw6ljbnsk4lccnikpi ow4u7ftjqix6ypyajyiausw6ljbnsk4lccnikpisoftware building rk7wcyx6ll4z62ay6pxhl7zsmijpswjrdb3qt6a rk7wcyx6ll4z62ay6pxhl7zsmijpswjrdb3qt6asoftware building 11 ruydodrt5a2jmrwkndrlzz4khac6w4jsqvoidyi ruydodrt5a2jmrwkndrlzz4khac6w4jsqvoidyisoftware building 2 n76ie6xpeb3tkzsblytpeqzqkz2gq3dvxytjrra n76ie6xpeb3tkzsblytpeqzqkz2gq3dvxytjrrasoftware building 3 cm4c3mvlq633x2fbs3nkewycw6by57oa3d3gvhy cm4c3mvlq633x2fbs3nkewycw6by57oa3d3gvhysoftware building 10 qphvkeqmjh45xg5kqrp7ve2cjksv5iet2yw7t6a qphvkeqmjh45xg5kqrp7ve2cjksv5iet2yw7t6asoftware building 7 gvqwxnhhh6cp42g7acdoucihxzm3dxkcuizdtka gvqwxnhhh6cp42g7acdoucihxzm3dxkcuizdtkasoftware building 13 mgyrdfdbroezamwrbct7xrjmnwjih5u5euadhma mgyrdfdbroezamwrbct7xrjmnwjih5u5euadhmasoftware building 5 z4naps6edff5df6r2cjzhoabg3kkdtaiislc3za z4naps6edff5df6r2cjzhoabg3kkdtaiislc3zasoftware building 1 4mtij5nhoj6dihjrdfhj5ed4gtky4376odatrxq 4mtij5nhoj6dihjrdfhj5ed4gtky4376odatrxqsoftware building 14 wqgkthak6yuioaph52rogh75d4n2rdp5bnaqv7q wqgkthak6yuioaph52rogh75d4n2rdp5bnaqv7qsoftware building 12 zvmjr3cx2kxg2soy4tu2wczso5tyoaa2qfkxgma zvmjr3cx2kxg2soy4tu2wczso5tyoaa2qfkxgmasoftware building 9 2inhqd5wjqaqos5nqjqk7dqsszz4na7guvhab7i 2inhqd5wjqaqos5nqjqk7dqsszz4na7guvhab7i2007 01 Web Building the Aptana Free Developer Environment for AjaxBuilding web applications with flaskSoftware User Guideprinting softwarewięcej podobnych podstron