rampageX / firmware-mod-kit

Automatically exported from code.google.com/p/firmware-mod-kit
811 stars 179 forks source link

Extraction error also compliance #176

Open wolfyy59 opened 3 years ago

wolfyy59 commented 3 years ago

Anyone help me out with this error I've installed all dependencies except python-magic I could not install unable to locate packages. Screenshot_20210219-132709 Screenshot_20210219-132758

crystalwwj commented 3 years ago

changing the line int swap; to static int swap; and recompiling should fix it.

sdfrir commented 3 years ago

Hi, i had same issues with this and even rage quit few times and gave up. But after few rage quits i found out that changing "int swap" to "static int swap" in all files called "read_fs.c" by searching for this name and changing manually for every file all seems to solve the issue

Otus9051 commented 2 years ago

Changed that, problem is this now:

Firmware Mod Kit (extract) 0.99, (c)2011-2013 Craig Heffner, Jeremy Collake

Preparing tools ...
/usr/bin/ld: sort.o: warning: relocation against `silent' in read-only section `.text'
/usr/bin/ld: sort.o: in function `sort_files_and_write':
sort.c:(.text+0x895): undefined reference to `silent'
/usr/bin/ld: sort.c:(.text+0x8bd): undefined reference to `silent'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:14: mksquashfs-lzma] Error 1
make: *** [Makefile:11: all] Error 2
Tools build failed! Check pre-requisites. Quitting...