This is a book written by St Peter Damian about homosexual priests in 1049 and also references homosexuality in earlier centuries. It would seem it has always been a problem although only recently, through lobbying, has it been accepted throughout most of the world.
Book of Gomorrah: An Eleventh-Century Treatise Against Clerical Homosexual Practices.
*Damian weeps from “fraternal compassion” because he sees a “noble soul made in the image and likeness of God and joined with the most precious blood of Christ” cast down from a great height of dignity and glory. Any Christian who commits sodomy, he explains, surpasses in sin the men of Sodom, for he “defies the very commands of evangelical grace.”
Damian reports that he has endured persecution for preaching against this sin, and he begs the Pope to use his sacred authority to quiet “the complaint of perverse men” who reason that “a statement brought forward by one person…is rejected by others as prejudice.” At one point he addresses the dissenters as men “who are angry with me and who hate to listen to this writer.” He tells the Pope that some of them “accuse me of being a traitor and an informer on the crime of a brother,” while others think it “valid to attack me who am on the attack” and to “accuse me of presumptuous prattle.” They also denounce him for not being “afraid of picking on Christians.”
No surprise, Damian observes, that he is not believed and that his “admonition is rejected,” since God’s own command is “taken lightly by the puffed-up heart of the reprobate.” His opponents even ignore the scriptural verses that condemn homosexuality because “the rashness of the complainers [does not] give in to divine testimony.” Still, he hopes that when the Pope speaks out, “the sick Church” will rise once again to her “rightful vigor.”
In his reply, Leo IX gives Damian his full support and warns those who would dare to criticize or question his papal decree concerning sodomy that they will be putting themselves in danger of being deposed from their rank. He agrees with Damian that severity against this sin is needed, that he who does not attack it encourages it, and that silence about it is rightly thought to incur guilt.*