I have heard that the program format of the 4.0 SUN OS contains several bugs. May be try to get the release 4.0.1 or wait for the next 4.1 or call directly Sun.