fw_env.c fails to build since mtd/mtd-user.h is missing linux/types.h __u32 definition.
Created attachment 192675 [details, diff] include linux/types.h before mtd/mtd-user.h this small patch fixes the issue
post the actual error you're seeing. packages should not be working around broken kernel headers. you should be able to include mtd/mtd-user.h by itself just fine and not have things break.
*** Bug 273985 has been marked as a duplicate of this bug. ***
Diego posted a build log in his bug, but that just shows that this issue has been fixed in linux-headers-2.6.30