How do I build a magma-safe floodgate in Dwarf Fortress?

Solution 1:

The problem is that you don't make rock things at the Metalsmith's Forge. To build it out of rock, go to your Mason's Workshop and add a floodgate(l). This will only construct a general rock floodgate though. To make sure that it's made out of Alunite, you should see this question.