Repair anvils with iron ingots or damage them with obsidian, via crafting or by shift + right-clicking them.
e2db4cc