[Bug libgcc/77470] New: libssp may have bad includes

coypu at sdf dot org gcc-bugzilla@gcc.gnu.org
Sun Sep 4 06:15:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77470

            Bug ID: 77470
           Summary: libssp may have bad includes
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: coypu at sdf dot org
  Target Milestone: ---

apologies if this is invalid for vanilla GCC, I am very skeptical I will be
able to build it without the help of a package, which includes small changes.

configuring with --enable-libssp, I got a header file:

$ grep ssp /usr/pkg/gcc5/lib/gcc/x86_64--netbsd/5.4.0/include/ssp/stdio.h 
#include <ssp.h>

there is no /usr/pkg/gcc5/lib/gcc/x86_64--netbsd/5.4.0/include/ssp.h,
only /usr/pkg/gcc5/lib/gcc/x86_64--netbsd/5.4.0/include/ssp/ssp.h.

and if I try to build hello world (i.e. include stdio.h) with -D_FORTIFY_SOURCE
I get:

$ /usr/pkg/gcc5/bin/gcc -D_FORTIFY_SOURCE test.c
In file included from /usr/include/stdio.h:597:0,
                 from test.c:1:
/usr/pkg/gcc5/lib/gcc/x86_64--netbsd/5.4.0/include/ssp/stdio.h:38:17: fatal
error: ssp.h: No such file or directory
compilation terminated.


More information about the Gcc-bugs mailing list