Oakum
Oakum is a preparation of tarred fibre used to seal gaps. Its main traditional applications were in shipbuilding, for caulking or packing the joints of timbers in wooden vessels and the deck planking of iron and steel ships; in plumbing, for sealing joints in cast iron pipe; and in log cabins for chinking. In ship caulking, it was forced between the seams using a hammer and a caulking iron, then sealed into place with hot pitch.
Coal tar
Pine tar has historically also been used for this purpose. Though it is frequently cited online as having been banned as a medical product by the FDA due to a "lack of evidence having been submitted for proof of effectiveness", pine tar is included in the Code of Federal Regulations, subchapter D: Drugs for Human Use, as an OTC treatment for "Dandruff/seborrheic dermatitis/psoriasis".