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 properlyi386ld 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 unixidbuild: 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?"