http://bugs.winehq.org/show_bug.cgi?id=21325
Summary: aclocal.m4's main prototype is incorrect Product: Wine Version: unspecified Platform: x86-64 OS/Version: Mac OS X 10.6 Status: UNCONFIRMED Severity: normal Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: lessen42+wine@gmail.com
Created an attachment (id=25662) --> (http://bugs.winehq.org/attachment.cgi?id=25662) fix aclocal.m4's main prototype
aclocal.m4 uses "int main(int argc, char *argv[]" as the prototype for main for various tests. However, the [] isn't quoted/escaped/whatever properly and is discarded by autotools, leaving "int main(int argc, char *argv" in configure.
clang treats this invalid main prototype as a hard error, so these configure tests fail.
Attached patch fixes it.
http://bugs.winehq.org/show_bug.cgi?id=21325
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #1 from Austin English austinenglish@gmail.com 2010-01-11 09:43:10 --- Please submit patches to wine-patches@winehq.org
http://bugs.winehq.org/show_bug.cgi?id=21325
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.1.36
http://bugs.winehq.org/show_bug.cgi?id=21325
--- Comment #2 from Luca Bennati lucak3@gmail.com 2010-09-04 11:40:09 CDT --- llvm+clang 2.7 and wine-1.3.2, compiled with CC=clang CXX=clang CFLAGS="-std=gnu89 -O0" ./configure --prefix=/usr --sysconfdir=/etc --with-x --without-capi --without-gsm --without-icns Not a single error!
http://bugs.winehq.org/show_bug.cgi?id=21325
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #3 from Austin English austinenglish@gmail.com 2010-09-04 13:15:30 CDT --- Fixed by http://source.winehq.org/git/wine.git/?a=commitdiff;h=5d3eacd25009dd531c52f4...
http://bugs.winehq.org/show_bug.cgi?id=21325
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2010-09-18 13:06:32 CDT --- Closing bugs fixed in 1.3.3.
http://bugs.winehq.org/show_bug.cgi?id=21325
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Mac OS X 10.6 |Mac OS X