Technical article 105776

Kernel relink fails after all SCSI tapes are removed from the link kit.

OpenServer 5.0.4

Written · Last revised

Problem

All SCSI tapes were removed from the system using 'mkdev tape'. Now, when the /etc/conf/cf.d/link_unix command is run to relink the kernel, it fails with error messages similar to the following:

The UNIX Operating System will now be rebuilt.
This will take a few minutes.  Please wait.
Root for this system build is /

"/var/opt/K/SCO/link/1.1.0Eb/etc/conf/pack.d/Stp/space.h", line 63: Syntax error "/var/opt/K/SCO/link/1.1.0Eb/etc/conf/pack.d/Stp/space.h", line 65: warning: sizeof returns 0 "/var/opt/K/SCO/link/1.1.0Eb/etc/conf/pack.d/Stp/space.h", line 70: Syntax error

ERROR: '/var/opt/K/SCO/link/1.1.0Eb/etc/conf/pack.d/Stp/space.c'
will not compile properly

i386ld stubs.o fatal: Can't open file /var/opt/K/SCO/link/1.1.0Eb/etc/conf/pack.d/Stp/space.o for input

ERROR: Can not link-edit unix
idbuild: idmkunix had errors.
System build failed.

Solution

This problem was fixed in Release Supplement 504C for SCO OpenServer 5.0.4 (rs504c).

However, if you have rs504c installed on the system and the kernel still fails to relink, follow the instruction below to correct the problem.

In order to correct this problem, run 'mkdev tape' and add a
SCSI tape drive.  In order to save time, do not choose to relink
the kernel. Note that you may be unable to add a second device
at the original device parameters. If this is the case, then use
a different scsi id, bus or lun to add the drive.

Edit the file /etc/conf/sdevice.d/Stp and delete the second line.

Then, run 'mkdev tape' again and remove the SCSI tape drive. Relink the kernel.

See also

ta105811, "What is the Release Supplement 504C for SCO OpenServer Release 5.0.4 (rs504c) and how can I obtain it?"

From the Xinuos technical article database, record 105776. Reproduced with permission. The original is at www.sco.com/ta/105776, 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.