build system doesnt properly detect applet rebuild requirement

Denis Vlasenko vda.linux at googlemail.com
Sat Feb 3 12:39:51 UTC 2007


On Saturday 03 February 2007 13:09, Bernhard Fischer wrote:
> On Sat, Feb 03, 2007 at 02:44:07AM -0500, Mike Frysinger wrote:
> >$ make distclean
> >$ make allnoconfig
> >$ make menuconfig
> >-> enable dmesg, syslog, klogd, logger
> >$ make
> >$ nano .config
> >-> disable syslog, klogd, logger
> >$ make oldconfig
> >$ make
> ><link failure due to applets.o still wanting syslog/klogd/logger _main funcs>
> >-mike
> 
> Confirmed. See also vda's note that it's disfunctional:
> http://busybox.net/lists/busybox/2007-January/025966.html
> 
> In the old buildsys we had a dependency like
> applets.o: .config
> 
> Nowadays applets.o depends on usage_compressed.h alone.
> Iff the problem turns out to be passing -include autoconf.h directly
> (so, perhaps, autoconf.h isn't listed in foo.d as dep), then putting an
> #include "autoconf.h" into libbb.h would perhaps change that
> misbehaviour. Any takers?

Attached patch should fix it. Works for me.
Can someone else confirm?

Will need big dumb patch with lots of

+int ar_main(int argc, char **argv);
 int ar_main(int argc, char **argv)

in order to suppress warnings.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.patch
Type: text/x-diff
Size: 1914 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070203/aeffe6ef/attachment-0002.bin 


More information about the busybox mailing list