Hello! net-analyzer/vnstat fails on cross-compilation, because it assumes in the Makefile that the compiler (CC) is simply gcc. To fix the problem is only needed to change CC variable to CHOST-gcc, with this compiles ok in a cross-compilation (I have tested between x86 and amd64). I attach a patch for vnstat-1.4.ebuild that fixes the problem. In vnstat-1.4-r1.ebuild the fix is the same. The patch changes CC variable on the Makefile and also changes CFLAGS variable there. Good bye!
Created attachment 82717 [details, diff] vnstat-1.4.ebuild.patch
Fixed for 1.4-r1 in cvs, thanks. Keep up the good work :)