Describes how to fix issues with removal of compat5x package.
This happens because the files have the flag schg on them.
schg = system immutabnle flag
This must be removed for a successful removal or re-installation of the compat5x package.
This fix will not work if you have the kernel in security mode 1 or above.
If your system uses kernel security mode 1 or above you need to boot the system into single-user mode and follow the instructions below. I would probably do the actual upgrade in single-user mode as well just to be on the safe side.
For some reason the update process of compat5x sometimes fails with a message that the files /usr/local/lib/compat/libc.so.5 and various others cannot be removed. To fix this run