Proposal: proactive search for autofoo bugs

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


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 
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 ; \
	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