This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/55784] New: [4.8 regression] declaration of C function 'const char* strsignal(int)' conflicts with /usr/include/string.h:112: error: previous declaration


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

             Bug #: 55784
           Summary: [4.8 regression] declaration of C function 'const
                    char* strsignal(int)' conflicts with
                    /usr/include/string.h:112: error: previous declaration
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gerald@pfeifer.com


This happened in the last 24 hours and seems to affect all versions of
FreeBSD (explicitly amd64-unknown-freebsd8.2 and i386-unknown-freebsd10.0):

g++ -c   -g -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables
-W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common 
-DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild
-I/scratch2/tmp/gerald/gcc-HEAD/gcc -I/scratch2/tmp/gerald/gcc-HEAD/gcc/build
-I/scratch2/tmp/gerald/gcc-HEAD/gcc/../include -I./../intl
-I/scratch2/tmp/gerald/gcc-HEAD/gcc/../libcpp/include
-I/home/gerald/10-i386/include 
-I/scratch2/tmp/gerald/gcc-HEAD/gcc/../libdecnumber
-I/scratch2/tmp/gerald/gcc-HEAD/gcc/../libdecnumber/dpd -I../libdecnumber
-I/scratch2/tmp/gerald/gcc-HEAD/gcc/../libbacktrace    \
        -o build/genconstants.o
/scratch2/tmp/gerald/gcc-HEAD/gcc/genconstants.c
In file included from /scratch2/tmp/gerald/gcc-HEAD/gcc/system.h:198,
                 from /scratch2/tmp/gerald/gcc-HEAD/gcc/genconstants.c:29:
/usr/include/sys/types.h:187: error: declaration does not declare anything
In file included from /scratch2/tmp/gerald/gcc-HEAD/gcc/genconstants.c:29:
/scratch2/tmp/gerald/gcc-HEAD/gcc/system.h:502: error: declaration of C
function 'const char* strsignal(int)' conflicts with
/usr/include/string.h:112: error: previous declaration 'char* strsignal(int)'
here
gmake[3]: *** [build/genconstants.o] Error 1
gmake[3]: Leaving directory `/scratch2/tmp/gerald/OBJ-1222-0104/gcc'
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory `/scratch2/tmp/gerald/OBJ-1222-0104'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/scratch2/tmp/gerald/OBJ-1222-0104'
gmake: *** [all] Error 2


The respective lines of /usr/include/sys/types.h are the following:

186 #ifndef _RLIM_T_DECLARED
187 typedef __rlim_t        rlim_t;         /* resource limit */
188 #define _RLIM_T_DECLARED
189 #endif

though I'd focus on the other issue first.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]