Thanks for the two replies above.
It's a Perkins 4107 and the manifold came adrift. One stud has sheared off. I have the new bits. New studs, new manifold gaskets and a new tappet cover gasket.
Mostly, I'm a bit nervous about tackling the stud extraction, and tightening those nuts with metric spanners is quite tricky with all those pipes and stuff in the way.
I'm a lot older than the above profile picture suggests and I wish my eyesight was a bit better.
Dave is excellent, but for reasons I can't go into, communication has broken down way back in time.