warning: undefined preprocessor identifier '_FORTIFY_SOURCE'

Alex Chiang achiang at hp.com
Mon Mar 31 20:30:15 PDT 2008


Hi Zach,

Well, now I've gone and installed sparse, and I'm getting more
build errors:

achiang at blender:~/crfs$ make
echo "#define CRFS_REV 0x51977a8e" > include/crfs-shared/rev.h
gcc -g -Wall -Werror -D_FILE_OFFSET_BITS=64 -Iinclude -MD -MP -MF crfsd/accept.d -c crfsd/accept.c -o crfsd/accept.o
sparse -m64 -include .sparse.gcc-defines.h -I/usr/lib/gcc/ia64-linux-gnu/4.1.2/ -Wbitwise -D__CHECKER__ -g -Wall -Werror -D_FILE_OFFSET_BITS=64 -Iinclude crfsd/accept.c
/usr/include/features.h:265:5: warning: undefined preprocessor identifier '_FORTIFY_SOURCE'
/usr/include/stdio.h:830:5: warning: undefined preprocessor identifier '__USE_FORTIFY_LEVEL'
/usr/include/string.h:420:6: warning: undefined preprocessor identifier '__USE_FORTIFY_LEVEL'
make: *** [crfsd/accept.o] Error 1

Something funky is going on -- not sure why _FORTIFY_SOURCE
doesn't get set without sparse but does get set with sparse.

I'll take a closer look tomorrow.

/ac




More information about the crfs-devel mailing list