The black gunk is probably Ormonoid, a great product for sealing leaks in rooves and gutters. I use it where the plumber has pop riveted the two or more gutters together. Make sure the surface is clean and brush a quantity over the joint and no more leaks. From memory is comes as Paintable or Trowelable.