Problem
I run an ELF binary produced by a non-OpenServer compiler and get the error message:
dynamic linker: : symbol not found:
init_features_vector Cause
All OpenServer dynamic ELF binaries make reference to the symbol "_init_features_vector". Some other development systems' libc do not provide this symbol. However, the runtime linker uses a different mechanism to recognize binary types, and can sometimes be fooled.
Solution
Support Level Supplement (SLS) OSS472A, the Binary Misrecognition Patch, provides a new libc.so.1 which has an additional check for ELF binaries. Specifically, after conventional means have determined that the binary is not an OpenServer binary, a call to _lookup was added to look for _init_features_vector in the symbol table. The alternate rtld is loaded only if _init_features_vector is not there.
See the attached cover letter that accompanies this SLS for more information, including installation instructions.
See also
ta100864, "I installed the JDK or UDK, and now some binaries will not run."
Dear SCO Customer,Attempting to run ELF binaries produced by a non-OpenServer compiler produces the error:
dynamic linker: : symbol not found:
init_features_vectorExamining this binary with the ldd(C) command (ldd [-r|-d] ) results in
the following errors:needs:
/usr/lib/libc.so.1 => /udk/usr/lib/libc.so.1dynamic linker: : relocation error: symbol not found: _init_features_vector
Support Level Supplement (SLS) OSS472A, the Binary Misrecognition Patch for OpenServer 5.0.4, corrects these problems.
Software Notes and Recommendations
----------------------------------SLS OSS472A is only intended for use on SCO OpenServer Enterprise System Release 5.0.4 with the SCO Development System Release 5.0.4 installed.
I. INSTALLING SLS OSS472ANOTE: Make sure you have a working emergency boot/root floppy and a verified backup of /usr/lib/libc.so.1 before installing OSS472A.
As this patch replaces libc.so.1, any failure during installation or
removal puts the system into an unusable state. If the patch fails during
installation or removal, you should boot from the emergency boot/root
floppies, mount the root filesystem, and restore the libc.so.1 from a
backed up copy.1. Prepare the media for installation.Download the OSS472A media image file (oss472a file), place the file in the /tmp directory, and rename the file by typing the following command:
mv /tmp/oss472a /tmp/VOL.000.0002. Run the Software Manager with the command:
# scoadmin softwareor double-click on the Software Manager icon in the desktop.
3. Pull down the "Software" menu and select "Install New".
4. When prompted for the host from which to install, choose the local machine and then "Continue".
5. When prompted to select the media device:
If you are installing this SLS from diskette media, select the appropriate floppy disk drive and then "Continue". Proceed to step 6.
If you are installing this SLS from media images per step 1, select
"Media Images", then "Continue". When prompted for the "Image
Directory", enter the working directory where you placed the VOL
files in step 1 and then select "OK".6. When prompted to select software to install, ensure that the "OSS472A" entry is highlighted. Choose "Install".
7. Once the installation finishes, quit the Software Manager. Installation
of SLS OSS472A is now complete.II. REMOVING SLS OSS472ANote: Patches must be rolled back in the reverse order in which they were
installed on a per-component basis. Hence, if the "Binary Misrecognition
Patch for OpenServer 5.0.4" patch is not the most recent patch applied to
the UNIX component of the product, you will have to roll back all patches
applied after the "Binary Misrecognition Patch for OpenServer 5.0.4" patch
prior to rollback of the "Binary Misrecognition Patch for OpenServer 5.0.4"
patch.1. Log in as root.2. Execute the command:# scoadmin softwareor double-click on the Software Manager icon in the desktop.
3. Highlight "OSS472A: Binary Misrecognition Patch for OpenServer 5.0.4".
4. Pull down the "Software" menu and select "Remove Software".
5. Once the removal finishes, quit the Software Manager. Removal of
SLS OSS472A is now complete.If you have questions regarding this SLS, or the product on which it is installed, please contact your software supplier.
We appreciate your business.SCO Support Services