Hello! I find bug in sys-apps/net-tools-1.60-r13 source code: x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -I. -idirafter ./include/ -Ilib -D_GNU_SOURCE -Wall -I/var/tmp/portage/sys-apps/net-tools-1.60-r13/work/net-tools-1.60 -idirafter /var/tmp/portage/sys-apps/net-tools-1.60-r13/work/net-tools-1.60/include -c -o ec_hw.o ec_hw.c ec_hw.c:24: error: 'NULL' undeclared here (not in a function) make[1]: *** [ec_hw.o] Error 1 Reproducible: Always Steps to Reproduce: 1. Update portage tree 2. Try to emerge -bkev system Actual Results: Copmile fails with error: ec_hw.c:24: error: 'NULL' undeclared here (not in a function) My make.conf: CFLAGS="-march=core2 -O2 -pipe" CXXFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" USE="mmx sse sse2 opengl hal kdeenablefinal qt3 kde X userlocales"
Please submit in attachments your "emerge --info" output, and the full build log. Reopen the bug, when you have submitted the above information. Thanks.
Created attachment 162926 [details] build.log /var/tmp/portage/sys-apps/net-tools-1.60-r13/temp/build.log
Created attachment 162927 [details] emerge --info
Info added, reopen
This seems to work for me. Just adds stddef.h #include. --- net-tools-1.60/lib/ec_hw.c.orig 2008-08-15 00:17:35.000000000 +0200 +++ net-tools-1.60/lib/ec_hw.c 2008-08-15 00:24:01.000000000 +0200 @@ -17,6 +17,7 @@ #if HAVE_HWEC #include <net/if_arp.h> +#include <stddef.h> #include "net-support.h" struct hwtype ec_hwtype =
Oh and of course sys-apps/net-tools-1.60_p20071202044231-r1 already fixes that (ah how could be otherwise after i already took the time to do it myself ;) * 0013-Pull-in-stdlib.h-for-NULL-definition-to-fix-225425.patch ...
Thanks!