-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Section 6.20.1. Installation of Findutils patches Makefile.in to barf some
extra errors and to stop on warnings:
The following command will build Findutils with additional compiler warnings:
find . -type f -name Makefile.in -exec \
sed 's/^CFLAGS =.*/& -Wformat -Wformat-security \\\
-Werror -Wfatal-errors/' -i.orig {} \;
This however will cause the findutils build to fail:
cc1: warnings being treated as errors
regexec.c: In function 'set_regs':
regexec.c:1390: warning: not protecting local variables: variable length
buffer
regcomp.c: In function 're_compile_fastmap_iter':
regcomp.c:333: warning: not protecting local variables: variable length buffer
make[4]: *** [regex.o] Error 1
make[4]: Leaving directory `/sources/findutils-4.2.30/gnulib/lib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/sources/findutils-4.2.30/gnulib/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/findutils-4.2.30/gnulib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/findutils-4.2.30'
make: *** [all] Error 2
As this is not exactly a fatal error or blatant security leak i've backed out
the sed
and after that findutils builds ok.
Cheers,
Albert
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGjNZMKltZixSsH2QRA7Y7AJ9yKSI/Vay2yBGBux4jTfrYkqTnyQCeI6h+
t/XX+pBrQqKKecPOTzaEBuE=
=3tIA
-----END PGP SIGNATURE-----
--
http://linuxfromscratch.org/mailman/listinfo/hlfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page