Technical article 109213

SCO Merge 4.0.0 install fails with 3rd party drivers installed; can't remove or reinstall Merge.

OpenServer 5.0.4

Written · Last revised

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.sh

Error: 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 > 0
to:
#if 0
This 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.

From the Xinuos technical article database, record 109213. Reproduced with permission. The original is at www.sco.com/ta/109213, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.