http://bugs.winehq.org/show_bug.cgi?id=26385
Summary: HTTP_ParseDay uses "sun" as variable name, which is GCC reserved word on Solaris Product: Wine Version: 1.3.15 Platform: x86 OS/Version: Solaris Status: UNCONFIRMED Severity: normal Priority: P2 Component: wininet AssignedTo: wine-bugs@winehq.org ReportedBy: hume-ml+winehq@bofh.ca
in dlls/wininet/http.c, lines 3583 and 3593 have a variable named "sun". Compilation of this file fails with "error: syntax error before numeric constant". This is because "sun" is redefined to "1" by GCC when compiling, because it is GCC running on Solaris (and thus "sun" as in "Sun").
Redefining the variable as "Sun" is sufficient to compile the object. To be more careful, though, I would recommend simply spelling out all the day names.
http://bugs.winehq.org/show_bug.cgi?id=26385
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |fgouget@codeweavers.com Ever Confirmed|0 |1
--- Comment #1 from Juan Lang juan_lang@yahoo.com 2011-03-11 10:42:42 CST --- Confirming. Francois sent a patch: http://www.winehq.org/pipermail/wine-patches/2011-March/099565.html It failed to apply: http://source.winehq.org/patches/data/71921
Francois, could you resend?
http://bugs.winehq.org/show_bug.cgi?id=26385
--- Comment #2 from François Gouget fgouget@codeweavers.com 2011-03-11 11:49:49 CST --- Done: http://www.winehq.org/pipermail/wine-patches/2011-March/099822.html
http://bugs.winehq.org/show_bug.cgi?id=26385
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, patch CC| |austinenglish@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=26385
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #3 from Juan Lang juan_lang@yahoo.com 2011-03-14 14:39:56 CDT --- Fixed by commit 4bacb3f24e3919d93330e82e25a1ba88a2aabd59.
http://bugs.winehq.org/show_bug.cgi?id=26385
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2011-03-18 14:39:39 CDT --- Closing bugs fixed in 1.3.16.