[LLVMbugs] [Bug 9147] New: ./configure test craps out with clang but not with gcc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 5 07:26:25 PST 2011


           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: unassignedclangbugs at nondot.org
        ReportedBy: stark at mit.edu
                CC: llvmbugs at cs.uiuc.edu

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

$ 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.

More information about the llvm-bugs mailing list