rpm -Uvh kernel-headers-2.2.16-3.i386.rpm removed my /usr/include/linux and /usr/include/asm symbolic links, meaning that gcc couldn't find headers (both egcs aka gcc-2.91, the 6.* standard, and gcc-2.95.2 from Mandrake) fix: rpm -ivh --force kernel-headers-2.2.14-12.i386.rpm Shouldn't updating a package set up the links? /usr/include/linux & asm were simply not there at all after upgrading.
Typo in summary: /usr/linux/include should be /usr/include/linux Both my machines also run libsafe, but are otherwise standard RH6.2. No libsafe messages in /var/log/secure (had there been buffer overrun events in any of the actions undertaken during rpm update, libsafe would have aborted the component processes). Although on kernel upgrade I had gcc-2.95.2 from Mandrake, the problem was the same after removing these and installing egcs gcc, so it seems to point at something missing in the upgrade process for 2.2.16-3 headers - the symlinks for earlier kernel headers get removed, but no new ones put in place.
Looks as though #13517 is the same (even if mine is i386 and the other sparc).
This has been reported as #13517, #13711 - see comments there too
*** Bug 13517 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 13272 ***