It's impossible to compile latest SDL version (2.0.5) with Mir video support active. Configuring with any flag option won't help.
Which series are you on? What error do you see?
Would you mind posting the compilation error? I just tried on 17.04 and there are some deprecations which will cause warnings, but it'll still compile.
[Expired for Mir because there has been no activity for 60 days.]
Bug watches keep track of this bug in other bug trackers.
Which series are you on?
What error do you see?