http://bugs.winehq.org/show_bug.cgi?id=21405
--- Comment #11 from James Le Cuirot chewi@aura-online.co.uk 2010-01-19 08:35:09 --- Okay so I rebuilt Wine with _FORTIFY_SOURCE=0 in my CFLAGS and that worked. But according to features.h, 0 should be the default. So I did a little more digging and found this in Gentoo GCC patches.
"NOTE: In Gentoo, @option{-D_FORTIFY_SOURCE=2} is set by default, and is activated when @option{-O} is set to 2 or higher. This enables additional compile-time and run-time checks for several libc functions. To disable, specify either @option{-U_FORTIFY_SOURCE} or @option{-D_FORTIFY_SOURCE=0}."
Aha! Now I could go pester the Gentoo Wine maintainers but if you know that this option breaks Wine then maybe Wine should force it to 0? That's my opinion but I'll leave it up to you.