libiberty/testsuite/test-demangle.c

After configuration with the following

../../configure --program-suffix=-4.5.0 --enable-languages=c,c++,objc,obj-c++

I've started

make check

which failed on Fedora 10+ x86 as well as x86-64

../../../../libiberty/testsuite/test-demangle.c:49: error: conflicting types
for ‘getline’
/usr/include/stdio.h:653: note: previous declaration of ‘getline’ was here
make[3]: *** [test-demangle] Error 1

because of name clash with

#ifdef  __USE_XOPEN2K8

/* Like `getdelim', but reads up to a newline.

   This function is not part of POSIX and therefore no official
   cancellation point.  But due to similarity with an POSIX interface
   or due to the implementation it is a cancellation point and
   therefore not marked with __THROW.  */
extern _IO_ssize_t getline (char **__restrict __lineptr,
                            size_t *__restrict __n,
                            FILE *__restrict __stream) __wur;
#endif


-- 
           Summary: test-demangle.c failed to compile
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: peter dot kovar at gmail dot com
GCC target triplet: x86_64-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39752

Reply via email to