FS#33720 - [lib32-openssl] please compile with flag -mstackrealign for official packages

Attached to Project: Community Packages
Opened by David Lim (davidlim) - Tuesday, 05 February 2013, 00:24 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Tuesday, 12 February 2013, 21:16 GMT
Task Type Bug Report
Category Packages: Multilib
Status Closed
Assigned To Florian Pritz (bluewind)
Sven-Hendrik Haase (Svenstaro)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
This bug was previously discussed here: https://bbs.archlinux.org/viewtopic.php?pid=903645. It had also previously been fixed, but it appears to have recurred in the current version (not sure if other versions in between times have had the same issue as I only recently switched to Arch full time).

Apparantely GCC doesn't align the stack when compiling openssl. This results in some Windows applications (under wine) crashing when utilising openssl. My specific use case is attempting to activate Office 2010 on wine. I have managed to fix the issue by recompiling lib32-openssl utilising the compiler flags: -mstackrealign. But I thought that you may want to fix this in the official builds so that others don't have the same problem.

Additional info:
* package version(s) lib32-openssl-1.0.1.c-1-x86_64

Steps to reproduce:
1. Install wine (with deps, including lib32-openssl)
2. Install Microsoft Office 2010
3. Attempt to active Microsoft Office 2010
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Tuesday, 12 February 2013, 21:16 GMT
Reason for closing:  Works for me
Comment by Dave Reisner (falconindy) - Tuesday, 05 February 2013, 02:15 GMT
I feel like we've been here before, and while it may have been added at some point, it was reverted because of the problems it causes elsewhere. There's an eternal back and forth between wine devs and gcc devs as to what the "correct" ABI here is. I really don't think Arch should be getting involved.

Not my place to care though. Assigning...
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 05 February 2013, 08:33 GMT
Finally someone to test this with. David, please stay around until we fully figure this out. I have no software to test this with.

Does it work with wine-1.5.22?
Comment by David Lim (davidlim) - Tuesday, 05 February 2013, 11:43 GMT
Sorry, yes I am using wine-1.5.22-1-x86_64. FYI my system is using all current versions of packages as per the Arch repositories at present.

I can try and do some testing, but as you can probably appreciate Microsoft Office activations are generally a once only process (at least not a frequent event). I'm not sure how long it will take for the Activation servers to become annoyed with me and revoke/disable my license.
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 05 February 2013, 12:56 GMT
Incorrect, wine-1.5.23-1 is current. wine-1.5.22-1 didn't have any of the critical changes of wine-1.5.23-1. So, now which one are you using?
Comment by David Lim (davidlim) - Tuesday, 05 February 2013, 17:41 GMT
Didn't realise wine was updated yesterday - I must have done my system update just before that came through. I have now upgraded to wine-1.5.23-1-x86_64. I also reverted back to the repo version of openssl and retested. Activation for a fresh install of Microsoft Office activation now seems to work.

Thanks,
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 05 February 2013, 22:43 GMT
That was not supposed to work. Does wine-1.5.23-2 break it again? If so, please tell me so I can finally fix this for good.
Comment by David Lim (davidlim) - Tuesday, 05 February 2013, 23:02 GMT
Sorry, refreshed browser window from to check updates and it reposted my message from earlier.

No, wine-1.5.23-2 seems to work as well. I again re-downloaded/installed the openssl-1.0.1.c-1 package from Arch repos to be sure (had deleted openssl from pacman cache as well).
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 05 February 2013, 23:13 GMT
Why did you just repost that?
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 06 February 2013, 18:11 GMT
Ok thanks. Then I again don't know what is going on as nothing changed and openssl is still built the old way. Did you redownload lib32-openssl as well?
Comment by David Lim (davidlim) - Tuesday, 12 February 2013, 20:33 GMT
I am confused as well. Yes I had re-downloaded a fresh copy of lib32-openssl from the official Arch repos.
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 12 February 2013, 21:16 GMT
I will just close this. This doesn't really get us anywhere. It works for me and you so it seems good.

Loading...