https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77470
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The ssp headers are meant to be used together with -D_FORTIFY_SOURCE{,=2} -isystem .../include/ssp/ They are meant to override the system stdio.h, string.h and/or unistd.h headers, which they include as #include_next. So this looks like a user error, or maybe NetBSD header bug. Of course, if _FORTIFY_SOURCE support is in your C library, you don't need any of the libssp headers.