I've never been quite sure how to handle questions like this one where the OP is apparently having difficulty building some piece of third-party software. I guess it's on-topic if the software in question is some sort of library that is subsequently going to be used as part of a software-development project, but what if it's just some generic piece of software that is throwing errors when the user tries to build it with their particular Linux distribution or GCC version and the user is not necessarily a programmer?
Clarification: although I gave one particular example above, this type of question is quite common, so I am looking for some general "rules of thumb" to apply, e.g. "if the OP is a programmer and is building something for development purposes then it's on-topic, otherwise off-topic."