Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firmware-mod-kit issues under Kali : Failed while building #2

Closed
pabb85 opened this issue Nov 17, 2016 · 2 comments
Closed

Firmware-mod-kit issues under Kali : Failed while building #2

pabb85 opened this issue Nov 17, 2016 · 2 comments

Comments

@pabb85
Copy link

pabb85 commented Nov 17, 2016

@adi0x90

Issue when running firmware-mod-kit (it goes to compile the tools on first run);

root@iot-kali:~/tools/firmware-mod-kit# ./extract-firmware.sh ./Dlink_firmware.bin 
Firmware Mod Kit (extract) 0.99, (c)2011-2013 Craig Heffner, Jeremy Collake

Preparing tools ...
bff_huffman_decompress.c: In function ‘unpack_parse_header’:
bff_huffman_decompress.c:167:14: warning: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
  bytesread = read(in, hdr + prelen, PACK_HEADER_LENGTH - prelen);
              ^~~~
bff_huffman_decompress.c: In function ‘unpack’:
bff_huffman_decompress.c:318:22: warning: implicit declaration of function ‘dup’ [-Wimplicit-function-declaration]
  unpack_parse_header(dup(in), dup(out), pre, prelen, bytes_in, &unpackd);
                      ^~~
mksquashfs.o: In function `linux_opendir':
/root/tools/firmware-mod-kit/src/others/squashfs-2.2-r2-7z/mksquashfs.c:1384: undefined reference to `add_dir_entry'
mksquashfs.o: In function `encomp_opendir':
/root/tools/firmware-mod-kit/src/others/squashfs-2.2-r2-7z/mksquashfs.c:1399: undefined reference to `add_dir_entry'
/root/tools/firmware-mod-kit/src/others/squashfs-2.2-r2-7z/mksquashfs.c:1416: undefined reference to `add_dir_entry'
mksquashfs.o: In function `single_opendir':
/root/tools/firmware-mod-kit/src/others/squashfs-2.2-r2-7z/mksquashfs.c:1431: undefined reference to `add_dir_entry'
/root/tools/firmware-mod-kit/src/others/squashfs-2.2-r2-7z/mksquashfs.c:1451: undefined reference to `add_dir_entry'
collect2: error: ld returned 1 exit status
Makefile:18: recipe for target 'mksquashfs' failed
make[2]: *** [mksquashfs] Error 1
Makefile:2: recipe for target 'all' failed
make[1]: *** [all] Error 2
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 2
Tools build failed! Check pre-requisites. Quitting...
@pabb85
Copy link
Author

pabb85 commented Nov 17, 2016

I have this working on my system now by removing the offending item from the ~/tools/firmware-mod-kit/src/others/Makefile - as mksquashfs was already installed on my system, there's no point trying (failing) to build it again.

Also see: https://bitsum.com/forum/index.php?topic=2018.0 - You may need a few extra dependencies.

@adi0x90
Copy link
Member

adi0x90 commented Nov 17, 2016

Perfect. Thanks for resolving this @pabb85 .

@adi0x90 adi0x90 closed this as completed Nov 17, 2016
@adi0x90 adi0x90 changed the title Firmware-mod-kit issues under Kali Firmware-mod-kit issues under Kali : Failed while building Nov 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants