Problem
I am trying to run a program that was developed with the SCO OpenServer Release 5.0.4 Development System and which used dynamic libraries (DLLs). Attempting to run this program generates the following error:
dynamic linker: [binary name]: can't set protections on segment of length [hex number] at [hex number]
where "[binary name]" is the name of the program being executed, and "[hex number]" is the length of the segment and the address of the segment.
NOTE: This error message may also be due to other causes, such as using non-Position Independent Code in ELF objects that make up a dynamic library. SLS OSS475A is intended for customers who receive this error message using the OpenServer 5.0.4 Development System only, particularly if they are using the lex(CP) command.
Solution
Support Level Supplement (SLS) OSS475A, the lex/libl Development System Patch, corrects some instances of this problem.
See the attached cover letter that accompanies this SLS for more information, including installation instructions.
Dear SCO Customer,Support Level Supplement, (SLS) OSS475A, the lex/libl Development System Patch, corrects a dynamic linker problem with the SCO OpenServer 5.0.4 Development System. This problem can generate the following error at runtime:
dynamic linker: [binary name]: can't set protections on segment of length [hex number] at [hex number]
where "[binary name]" is the name of the program being executed, and "[hex number]" is the length of the segment and the address of the segment.
This problem _only_ exists on the OpenServer 5.0.4 Development System. The problem does not occur with the 5.0.0 or 5.0.2 Development Systems, although the same error message may be generated by other causes. SLS OSS475A is only intended for, and will only install on, the OpenServer 5.0.4 Development System.
This SLS is recommended for any customer who uses lex(CP) in ELF binaries. If this patch is installed, any lex-generated code will need to be regenerated since previously generated code will no longer compile. This is not usually an issue because most makefiles include lex in the build process.
Software Notes and Recommendations
----------------------------------SLS OSS475A is intended for use on SCO OpenServer Development System Release 5.0.4 and will not install on other releases of the OpenServer Development System.
I. INSTALLING SLS OSS475A1. Prepare the media for installation.Download the OSS475A media image file (oss475a file), place the file in the /tmp directory and rename the file by typing the following commands:
mv /tmp/oss475a /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 "/tmp" (or the directory where you placed the VOL
file in step 1) and then select "OK".6. When prompted to select software to install, ensure that the "OSS475A" entry is highlighted. Choose "Install".
7. Once the installation finishes, quit the Software Manager. Installation of SLS OSS475A is now complete.
II. REMOVING SLS OSS475ANote: Patches must be rolled back in the reverse order in which they were
installed on a per-component basis. Hence, if the "lex/libl Development
System Patch" 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 "lex/libl Development System Patch" patch prior to rollback of
the "lex/libl Development System Patch" SLS.1. Log in as root.2. Execute the command:# scoadmin softwareor double-click on the Software Manager icon in the desktop.
3. Highlight "OSS475A: lex/libl Development System Patch". 4. Pull down the "Software" menu and select "Remove Software".
5. Once the removal finishes, quit the Software Manager. Removal of
SLS OSS475A 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