It sounds like you are talking about the gargoyle maze. The entrance is on the north side close to the ladder down to the beach where the dragon is.
Enter the maze and pass through to area with librarian (you can use teleport to pass the locked gates but this is considered cheating by the gargoyles). You'll have a brief fight with 4 fiery undead next to the librarian who is on a pedestal not in a pit.
You can cure him by casting blood rain (or using blood from flesh sacrifice) and then blessing it.