http://llvm.org/bugs/show_bug.cgi?id=9147
Summary: ./configure test craps out with clang but not with gcc
Product: clang
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=6106)
--> (http://llvm.org/bugs/attachment.cgi?id=6106)
Configure test which works with gcc but not clang
Our ./configure test fails with clang but not with gcc as follows (the test is
attached)
$ gcc -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -D_GNU_SOURCE conftest.c
$ clang -c -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno-strict-aliasing -fwrapv -D_GNU_SOURCE conftest.c
conftest.c:81:12: error: conflicting types for 'accept'
extern int accept (int, struct sockaddr *, socklen_t *);
^
In file included from conftest.c:79:
/usr/include/sys/socket.h:214:12: note: previous declaration is here
extern int accept (int __fd, __SOCKADDR_ARG __addr,
^
2 diagnostics generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs