https://bugs.winehq.org/show_bug.cgi?id=40937
--- Comment #5 from Mathieu Comandon strider@strycore.com --- (In reply to Henri Verbeet from comment #4)
(In reply to Bruno Jesus from comment #2)
My Debian (Sid) package for libgnutls-dev is version 2.12.23-5,
That doesn't sound right. Do you have leftover libgnutls26 packages by any chance?
Well that helped resolving the issue on my part (Ubuntu 14.04). I noticed that Debian did not have a libgnutls-dev package anymore and found out that it used the libgnutls28-dev package instead, also available on Ubuntu. I installed that (which automatically removed libgnutls-dev package) and the build succeeded.
So there's nothing wrong with wine's source code itself but this kind of version mismatch should be caught at configure time. It could be helpful for users to display something about the existence of these multiple package and that's certainly something that would have confused me if I ran into such an issue.