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 -yYou 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/chainsPlease ensure any files are backed up prior to any manual editing.