Likely sap. Wood peckers might be one cause, also dripping pine cones over time, wind damaged branches, old wounds can ooze for a long time. Maybe boring insects. Fun fact: you can collect the white dry sap to use as incense when placed on hot charcoal.