Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 340931

Summary: wine 1.3.4 and -D_FORTIFY_SOURCE
Product: Gentoo Linux Reporter: Kyle Milz <kmilz>
Component: New packagesAssignee: Wine Maintainers <wine>
Status: RESOLVED DUPLICATE    
Severity: normal CC: tdalman
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: hack for ebuild

Description Kyle Milz 2010-10-14 06:20:02 UTC
When wine 1.3.4 is compiled from the ebuild in the main tree -D_FORTIFY_SOURCE=2 is set. This causes problems, notably for me the Office 2007 suite crashes on open/save dialogs. 

Reported upstream here:
http://bugs.winehq.org/show_bug.cgi?id=24606

Now, one of the wine devs kindly pointed out that FORTIFY_SOURCE breaks wine and so I decided to see for myself. I hacked the wine ebuild and sure enough, with -D_FORTIFY_SOURCE=0 the Office 2007 suite now has no such problems with open/save dialogs. 

So yeah, this should maybe get unset as I also read in the gcc man page that -O2 enables fortify source macro by default which is probably not what is wanted when compiling wine.

Reproducible: Always

Steps to Reproduce:
1.Compile Wine 1.3.4
2.Install Office 2007
3.Use open/save dialogs
Actual Results:  
Wine soft crashes.

Expected Results:  
The open/save dialogs actually work.
Comment 1 Kyle Milz 2010-10-14 06:24:09 UTC
Created attachment 250527 [details, diff]
hack for ebuild

This is probably not right at all as my ebuild-fu is still in its maturation stage.
Comment 2 SpanKY gentoo-dev 2010-10-15 01:55:54 UTC

*** This bug has been marked as a duplicate of bug 336887 ***