Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340931 - wine 1.3.4 and -D_FORTIFY_SOURCE
Summary: wine 1.3.4 and -D_FORTIFY_SOURCE
Status: RESOLVED DUPLICATE of bug 336887
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-14 06:20 UTC by Kyle Milz
Modified: 2010-10-15 01:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
hack for ebuild (wine-no-fortify-source.patch,530 bytes, patch)
2010-10-14 06:24 UTC, Kyle Milz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***