Problem
During the installation of SCO Merge 4.0.0 the kernel is relinked. This relink fails with the following message:
undefined symbol mrgGetMem first referenced in file /var/opt/K/SCO/link/1.1.0Eb/etc/conf/pack.d/epca/space.o i386ld fatal: Symbol referencing errors. No output written to unix ERROR: Can not link-edit unix
idbuild: idmkunix had errors.
System build failed.The directory and symbol name may vary.
The only options are to cancel or retry. Retrying results in
the same error. If you cancel the installation, Merge will not
work. If you attempt to reinstall Merge, you get the message:All the software selected for installation is already installed. You
must remove this software before you can reinstall it.Attempting to remove Merge gives these errors:
----
mkdir: cannot make directory: /usr/merge/dosroot/dos: No such file or directory
(error 2)
chown: cannot access /usr/merge/dosroot/dos: No such file or directory (error 2)
chgrp: cannot access /usr/merge/dosroot/dos: No such file or directory (error 2)
chmod: WARNING: cannot access /usr/merge/dosroot/dos: No such file or directory
(error 2)
/opt/K/SCO/Merge/4.0.0a/usr/lib/merge/Remove/rem_mrg.sh:
/usr/merge/dosroot/config.sys: cannot create
/opt/K/SCO/Merge/4.0.0a/usr/lib/merge/Remove/rem_mrg.sh:
/usr/merge/dosroot/autoexec.bat: cannot create
/opt/K/SCO/Merge/4.0.0a/usr/lib/merge/Remove/rem_mrg.sh: /usr/merge/dosroot:
does not exist
ERROR: Merge PRE_UNEXPORT: Error in rem_mrg.shError: Component control script (CCS) pre-unexport step failed for "SCO Merge" (SCO:Merge)
Error Stack: CCS script "./opt/K/SCO/Merge/4.0.0a/cntl/ccs" failed for PRE_UNEXPORT step CCS returned failure code
Cause
If the unreferenced symbol has the prefix "mrg" as above, then the linking error may be caused by a driver that hasn't been updated to use the new Merge Kernel Interface.
Solution
There are four different pieces to the solution. They are listed
separately below.1. Fix the errors in custom(ADM) so Merge can be removed.
If you create the directory /usr/merge/dosroot, you should be able to remove Merge so it can be reinstalled.
2. If you don't require the 3rd party driver to work within Merge, you may be able to disable the Merge functionality within that driver.
This will vary depending on the driver. In the example above,
which is a Digi serial driver, the solution is to edit the
file /etc/conf/pack.d/epca/space.c and change the line:#if MRG_CNTLS > 0to:#if 0This will allow the kernel to relink cleanly, and the Digi
serial ports to work. Merge will work, but you will not be
able to attach the Digi serial ports within Merge. If you
have a driver from a different vendor, you should contact them
for a workaround.3. If you do require the 3rd party driver to work within Merge, you will need to get an updated driver from the 3rd party vendor.
4. If the vendor has no updated driver, and no way to disable the Merge functionality in their driver, then you will need to either remove the 3rd party driver, or not use SCO Merge 4.0.0.