Long Live Ghosts! (1977)
A trespassing gang of boys encounter a ghost in the ruins of a castle. When they rescue the ghost who is caught in a trapset, they become allies in a fight to prevent ruins from being turned into mushroom farm by the city authorities.
Some information and/or images in this header may be provided either partially or in full from The Movie Database.