Proposal: proactive search for autofoo bugs

Alexander E. Patrakov patrakov at ums.usu.ru
Sat Aug 13 21:10:41 PDT 2005


Hello,

Bugs when a packahe uses some HAVE_XXX macro in its source and the 
./configura script doesn't sefine that in config.h are pretty common 
nowadays:

http://archives.linuxfromscratch.org/mail-archives/blfs-dev/2005-June/010153.html
http://www.diy-linux.org/pipermail/diy-linux-dev/2005-July/000593.html
and the recent gettext testsuite failure caused by gawk-3.1.5

As you see, the result of such bugs is always silent miscompilation. 
However, it is possible to search for them. Therefore, I put forward the 
following proposal.

When adding a "version update" comment to Bugzilla, please also add the 
output of the following checker script:

ifnames `find . -name \*.c -o -name \*.h` | grep HAVE | \
	grep -v HAVE_CONFIG_H | cut -d " " -f 1 >ifnames.hin
for a in `cat ifnames.hin` ; do if ! grep -q $a configh.in ; \
	then echo "$a is missing " ; fi ; done

(it is OK to omit output related to files that implement missing 
glibc-like functions for non-GNU systems functions that)

-- 
Alexander E. Patrakov



More information about the lfs-dev mailing list