MrCreditRepair.biz will fix your credit rating!

well, I managed to totally destroy my firmware-mod-kit. it had been compiled on my old 32-bit system before that crazy upgrade-in-place to 64 bits last year, and after changing and recompiling some parts of it, it broke the rest, so I had to recompile everything.

then I was getting errors about major and minor being undefined. that was a known problem (thanks Stackoverflow!) and solved by:

sed  -i '/^#include <sys\/types.h>/a #include <sys/sysmacros.h>' $(find . -type f -name '*.[ch]' | xargs grep -l types.h | xargs grep -L sysmacros.h)

also, make clean from /usr/src/firmware-mod-kit didn't remove all the object files, so I had to zap them with:

rm $(find . -name '*.o' | xargs file | grep -v x86-64 | awk '{print $1}' | tr -d ':')

none of that worked, because now I get a whole bunch of errors from binwalk, such as:

/tmp/tmpols8RO, 1388: Warning: Printf format is too long for type `belong' in description `%ld,'

which, apparently, is due to an incompatibility with recent versions of libmagic. so Collake's idea of including all the sources of all the packages he used, trying to avoid the possibility of upgraded packages breaking his scripts, failed.

Back to blog or home page

last updated 2019-01-14 16:47:24. served from tektonic