Technical article 107625

I get a "/etc/slink: Function "boot_net0" redefined" error during kernel relink.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

Problem

While relinking the kernel after removing or reconfiguring my network card, I see this slink error:

/etc/slink: Function "boot_net0" redefined

Cause

The file /etc/strcf has too many entries for boot_net0.

Solution

First, make backup copies of /etc/strcf and /etc/strcf.d/10tcp.

Next, using vi or another editor, remove the second and subsequent references to boot_net0 from the boot function. You will see something like this:

#
# boot - boot time configuration
#
boot {
        # stuff deleted here
        initqp /dev/inet/udp rq 8192 49152
        # stuff deleted here
        boot_net0
        boot_net0
        loopback ip
        close ip
        call ip_set_if_address
}
Remove all but one of the boot_net0 entries.  Just below this
section, you should also remove the extra entries that look like
this:

boot_net0 { ip = open /dev/inet/ip cenetb ip /dev/net0 net0 close ip }

When you finish editing the files, you should have only one instance of the "boot_net0" in the boot function, and only one boot_net0 function below that.

Once the files are cleaned up, relink the kernel manually with the following command:

/etc/conf/cf.d/link_unix -y

You should no longer see any slink errors.

NOTES:    Additional files to consider:
/etc/tcp  (/etc/rc2.d/S85tcp)
/etc/strcf
/etc/strcf.d/10tcp
/etc/conf/pack.d/ksl/space.c
/etc/conf/pack.d/net0
/usr/lib/netconfig/chains

Please ensure any files are backed up prior to any manual editing.

From the Xinuos technical article database, record 107625. Reproduced with permission. The original is at www.sco.com/ta/107625, which is reachable but blocked from search engines.

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.