Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ssp(3) problem?



Hi!

A user tried following the ssp man page and got unexpected results.
I'd like to know if the man page is wrong or implementation.

Here's his translated message:

Take any program using stdio.h, say

#include <stdlib.h>
#include <stdio.h>

as the only lines, and use gcc as described in ssp(3):

gcc -I/usr/include/ssp -D_FORTIFY_SOURCE=2 file.c

On NetBSD 6 this gives

In file included from file.c:2:0:
/usr/include/ssp/stdio.h:49:40: error: expected declaration specifiers or ‘...’ before ‘FILE’

On NetBSD current this gives

In file included from file.c:2:0:
/usr/include/ssp/stdio.h:49:40: error: unknown type name ‘FILE’
 char *__fgets_chk(char *, int, size_t, FILE *);

 Thomas



Home | Main Index | Thread Index | Old Index