We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I dont know why
❯ ./install_patched_fmk.sh Cloning into 'firmware-mod-kit'... remote: Enumerating objects: 3823, done. remote: Counting objects: 100% (328/328), done. remote: Compressing objects: 100% (89/89), done. remote: Total 3823 (delta 256), reused 239 (delta 239), pack-reused 3495 Receiving objects: 100% (3823/3823), 10.40 MiB | 11.02 MiB/s, done. Resolving deltas: 100% (2030/2030), done. Already on 'master' Your branch is up to date with 'origin/master'. dos2unix: converting file /home/bradix/firmware-mod-kit/src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c to Unix format... patching file src/others/squashfs-2.0-nb4/nb4-mksquashfs/squashfs/mksquashfs.c patching file src/others/squashfs-3.0-e2100/mksquashfs.c patching file src/others/squashfs-3.2-r2/mksquashfs.c patching file src/others/squashfs-3.2-r2-hg612-lzma/squashfs3.2-r2/squashfs-tools/mksquashfs.c patching file src/others/squashfs-3.2-r2-lzma/squashfs3.2-r2/squashfs-tools/mksquashfs.c patching file src/others/squashfs-3.2-r2-rtn12/mksquashfs.c patching file src/others/squashfs-3.2-r2-wnr1000/mksquashfs.c patching file src/others/squashfs-3.3/mksquashfs.c patching file src/others/squashfs-3.3-grml-lzma/squashfs3.3/squashfs-tools/mksquashfs.c patching file src/others/squashfs-3.3-lzma/squashfs3.3/squashfs-tools/mksquashfs.c patching file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/mksquashfs.c Hunk #2 FAILED at 2705. 1 out of 2 hunks FAILED -- saving rejects to file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/mksquashfs.c.rej patching file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/unsquashfs.c Hunk #1 FAILED at 48. 1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/unsquashfs.c.rej patching file src/others/squashfs-4.0-lzma/mksquashfs.c Hunk #1 FAILED at 3129. 1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.0-lzma/mksquashfs.c.rej patching file src/others/squashfs-4.0-realtek/mksquashfs.c Hunk #1 FAILED at 3177. 1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.0-realtek/mksquashfs.c.rej patching file src/others/squashfs-4.2/squashfs-tools/mksquashfs.c Hunk #1 FAILED at 3355. 1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.2/squashfs-tools/mksquashfs.c.rej patching file src/others/squashfs-4.2-official/mksquashfs.c Hunk #1 FAILED at 3340. 1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.2-official/mksquashfs.c.rej patching file src/squashfs-2.1-r2/mksquashfs.c patching file src/squashfs-3.0/mksquashfs.c patching file src/squashfs-3.0-lzma-damn-small-variant/mksquashfs.c patching file src/webcomp-tools/common.c Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file src/webcomp-tools/common.c.rej patching file src/webcomp-tools/common.h Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file src/webcomp-tools/common.h.rej patching file src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c Hunk #2 FAILED at 2719. 1 out of 2 hunks FAILED -- saving rejects to file src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c.rej ./install_patched_fmk.sh: line 16: ./configure: No such file or directory gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -c -o asustrx.o asustrx.c gcc asustrx.o -o asustrx gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -c -o addpattern.o addpattern.c gcc addpattern.o -o addpattern g++ -c -o untrx.o untrx.cc In file included from untrx.cc:38: untrx.h:44:10: warning: #warning "u_int32_t may be undefined. please define as 32-bit type." [-Wcpp] 44 | #warning "u_int32_t may be undefined. please define as 32-bit type." | ^~~~~~~ g++ untrx.o -o untrx gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -c -o motorola-bin.o motorola-bin.c gcc motorola-bin.o -o motorola-bin g++ -c -o splitter3.o splitter3.cc In file included from splitter3.cc:39: untrx.h:44:10: warning: #warning "u_int32_t may be undefined. please define as 32-bit type." [-Wcpp] 44 | #warning "u_int32_t may be undefined. please define as 32-bit type." | ^~~~~~~ g++ splitter3.o -o splitter3 make -C ./bff/ make[1]: Entering directory '/home/bradix/firmware-mod-kit/src/bff' gcc bff_huffman_decompress.c -o bff_huffman_decompress make[1]: Leaving directory '/home/bradix/firmware-mod-kit/src/bff' make -C ./jffs2 make[1]: Entering directory '/home/bradix/firmware-mod-kit/src/jffs2' gcc -Wall sunjffs2.c -o sunjffs2 make[1]: Leaving directory '/home/bradix/firmware-mod-kit/src/jffs2' make -C ./uncramfs/ make[1]: Entering directory '/home/bradix/firmware-mod-kit/src/uncramfs' cc -g -O -g -O uncramfs.c -lz -o uncramfs uncramfs.c: In function ‘usage’: uncramfs.c:72:4: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 72 | exit(1); | ^~~~ uncramfs.c:49:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ 48 | #include "VERSION" +++ |+#include <stdlib.h> 49 | ; uncramfs.c:72:4: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 72 | exit(1); | ^~~~ uncramfs.c:72:4: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ uncramfs.c: In function ‘do_file’: uncramfs.c:231:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 231 | srcdata=(const u8*)(((u32)(base+offset)+blksize-1) & ~(blksize-1)); | ^ uncramfs.c:231:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 231 | srcdata=(const u8*)(((u32)(base+offset)+blksize-1) & ~(blksize-1)); | ^ uncramfs.c: In function ‘do_symlink’: uncramfs.c:315:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 315 | exit(1); | ^~~~ uncramfs.c:315:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ uncramfs.c: In function ‘main’: uncramfs.c:696:10: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 696 | exit(1); | ^~~~ uncramfs.c:696:10: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ ❯ ./install_patched_fmk.sh Cloning into 'firmware-mod-kit'... remote: Enumerating objects: 3823, done. remote: Counting objects: 100% (353/353), done. remote: Compressing objects: 100% (95/95), done. remote: Total 3823 (delta 276), reused 258 (delta 258), pack-reused 3470 Receiving objects: 100% (3823/3823), 10.40 MiB | 11.10 MiB/s, done. Resolving deltas: 100% (2030/2030), done. Already on 'master' Your branch is up to date with 'origin/master'. dos2unix: converting file /home/bradix/firmware-mod-kit/src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c to Unix format... patching file src/others/squashfs-2.0-nb4/nb4-mksquashfs/squashfs/mksquashfs.c patching file src/others/squashfs-3.0-e2100/mksquashfs.c patching file src/others/squashfs-3.2-r2/mksquashfs.c patching file src/others/squashfs-3.2-r2-hg612-lzma/squashfs3.2-r2/squashfs-tools/mksquashfs.c patching file src/others/squashfs-3.2-r2-lzma/squashfs3.2-r2/squashfs-tools/mksquashfs.c patching file src/others/squashfs-3.2-r2-rtn12/mksquashfs.c patching file src/others/squashfs-3.2-r2-wnr1000/mksquashfs.c patching file src/others/squashfs-3.3/mksquashfs.c patching file src/others/squashfs-3.3-grml-lzma/squashfs3.3/squashfs-tools/mksquashfs.c patching file src/others/squashfs-3.3-lzma/squashfs3.3/squashfs-tools/mksquashfs.c patching file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/mksquashfs.c Hunk #2 FAILED at 2705. 1 out of 2 hunks FAILED -- saving rejects to file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/mksquashfs.c.rej patching file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/unsquashfs.c Hunk #1 FAILED at 48. 1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/unsquashfs.c.rej patching file src/others/squashfs-4.0-lzma/mksquashfs.c Hunk #1 FAILED at 3129. 1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.0-lzma/mksquashfs.c.rej patching file src/others/squashfs-4.0-realtek/mksquashfs.c Hunk #1 FAILED at 3177. 1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.0-realtek/mksquashfs.c.rej patching file src/others/squashfs-4.2/squashfs-tools/mksquashfs.c Hunk #1 FAILED at 3355. 1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.2/squashfs-tools/mksquashfs.c.rej patching file src/others/squashfs-4.2-official/mksquashfs.c Hunk #1 FAILED at 3340. 1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.2-official/mksquashfs.c.rej patching file src/squashfs-2.1-r2/mksquashfs.c patching file src/squashfs-3.0/mksquashfs.c patching file src/squashfs-3.0-lzma-damn-small-variant/mksquashfs.c patching file src/webcomp-tools/common.c Reversed (or previously applied) patch detected! Assume -R? [n] y patching file src/webcomp-tools/common.h Reversed (or previously applied) patch detected! Assume -R? [n] y patching file src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c Hunk #2 FAILED at 2719. 1 out of 2 hunks FAILED -- saving rejects to file src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c.rej ./install_patched_fmk.sh: line 16: ./configure: No such file or directory gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -c -o asustrx.o asustrx.c gcc asustrx.o -o asustrx gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -c -o addpattern.o addpattern.c gcc addpattern.o -o addpattern g++ -c -o untrx.o untrx.cc In file included from untrx.cc:38: untrx.h:44:10: warning: #warning "u_int32_t may be undefined. please define as 32-bit type." [-Wcpp] 44 | #warning "u_int32_t may be undefined. please define as 32-bit type." | ^~~~~~~ g++ untrx.o -o untrx gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -c -o motorola-bin.o motorola-bin.c gcc motorola-bin.o -o motorola-bin g++ -c -o splitter3.o splitter3.cc In file included from splitter3.cc:39: untrx.h:44:10: warning: #warning "u_int32_t may be undefined. please define as 32-bit type." [-Wcpp] 44 | #warning "u_int32_t may be undefined. please define as 32-bit type." | ^~~~~~~ g++ splitter3.o -o splitter3 make -C ./bff/ make[1]: Entering directory '/home/bradix/firmware-mod-kit/src/bff' gcc bff_huffman_decompress.c -o bff_huffman_decompress make[1]: Leaving directory '/home/bradix/firmware-mod-kit/src/bff' make -C ./jffs2 make[1]: Entering directory '/home/bradix/firmware-mod-kit/src/jffs2' gcc -Wall sunjffs2.c -o sunjffs2 make[1]: Leaving directory '/home/bradix/firmware-mod-kit/src/jffs2' make -C ./uncramfs/ make[1]: Entering directory '/home/bradix/firmware-mod-kit/src/uncramfs' cc -g -O -g -O uncramfs.c -lz -o uncramfs uncramfs.c: In function ‘usage’: uncramfs.c:72:4: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 72 | exit(1); | ^~~~ uncramfs.c:49:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ 48 | #include "VERSION" +++ |+#include <stdlib.h> 49 | ; uncramfs.c:72:4: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 72 | exit(1); | ^~~~ uncramfs.c:72:4: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ uncramfs.c: In function ‘do_file’: uncramfs.c:231:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 231 | srcdata=(const u8*)(((u32)(base+offset)+blksize-1) & ~(blksize-1)); | ^ uncramfs.c:231:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 231 | srcdata=(const u8*)(((u32)(base+offset)+blksize-1) & ~(blksize-1)); | ^ uncramfs.c: In function ‘do_symlink’: uncramfs.c:315:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 315 | exit(1); | ^~~~ uncramfs.c:315:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ uncramfs.c: In function ‘main’: uncramfs.c:696:10: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 696 | exit(1); | ^~~~ uncramfs.c:696:10: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ uncramfs.c:703:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 703 | exit(1); | ^~~~ uncramfs.c:703:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ uncramfs.c:712:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 712 | exit(1); | ^~~~ uncramfs.c:712:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ uncramfs.c:720:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 720 | exit(1); | ^~~~ uncramfs.c:720:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’ make[1]: *** [: uncramfs] Error 1 make[1]: Leaving directory '/home/bradix/firmware-mod-kit/src/uncramfs' make: *** [Makefile:7: all] Error 2
The text was updated successfully, but these errors were encountered:
(Its a patch btw https://github.com/st-ty1/Arch-Linux_firmware-mod-kit)
Sorry, something went wrong.
No branches or pull requests
I dont know why
❯ ./install_patched_fmk.sh
Cloning into 'firmware-mod-kit'...
remote: Enumerating objects: 3823, done.
remote: Counting objects: 100% (328/328), done.
remote: Compressing objects: 100% (89/89), done.
remote: Total 3823 (delta 256), reused 239 (delta 239), pack-reused 3495
Receiving objects: 100% (3823/3823), 10.40 MiB | 11.02 MiB/s, done.
Resolving deltas: 100% (2030/2030), done.
Already on 'master'
Your branch is up to date with 'origin/master'.
dos2unix: converting file /home/bradix/firmware-mod-kit/src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c to Unix format...
patching file src/others/squashfs-2.0-nb4/nb4-mksquashfs/squashfs/mksquashfs.c
patching file src/others/squashfs-3.0-e2100/mksquashfs.c
patching file src/others/squashfs-3.2-r2/mksquashfs.c
patching file src/others/squashfs-3.2-r2-hg612-lzma/squashfs3.2-r2/squashfs-tools/mksquashfs.c
patching file src/others/squashfs-3.2-r2-lzma/squashfs3.2-r2/squashfs-tools/mksquashfs.c
patching file src/others/squashfs-3.2-r2-rtn12/mksquashfs.c
patching file src/others/squashfs-3.2-r2-wnr1000/mksquashfs.c
patching file src/others/squashfs-3.3/mksquashfs.c
patching file src/others/squashfs-3.3-grml-lzma/squashfs3.3/squashfs-tools/mksquashfs.c
patching file src/others/squashfs-3.3-lzma/squashfs3.3/squashfs-tools/mksquashfs.c
patching file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/mksquashfs.c
Hunk #2 FAILED at 2705.
1 out of 2 hunks FAILED -- saving rejects to file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/mksquashfs.c.rej
patching file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/unsquashfs.c
Hunk #1 FAILED at 48.
1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/unsquashfs.c.rej
patching file src/others/squashfs-4.0-lzma/mksquashfs.c
Hunk #1 FAILED at 3129.
1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.0-lzma/mksquashfs.c.rej
patching file src/others/squashfs-4.0-realtek/mksquashfs.c
Hunk #1 FAILED at 3177.
1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.0-realtek/mksquashfs.c.rej
patching file src/others/squashfs-4.2/squashfs-tools/mksquashfs.c
Hunk #1 FAILED at 3355.
1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.2/squashfs-tools/mksquashfs.c.rej
patching file src/others/squashfs-4.2-official/mksquashfs.c
Hunk #1 FAILED at 3340.
1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.2-official/mksquashfs.c.rej
patching file src/squashfs-2.1-r2/mksquashfs.c
patching file src/squashfs-3.0/mksquashfs.c
patching file src/squashfs-3.0-lzma-damn-small-variant/mksquashfs.c
patching file src/webcomp-tools/common.c
Reversed (or previously applied) patch detected! Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/webcomp-tools/common.c.rej
patching file src/webcomp-tools/common.h
Reversed (or previously applied) patch detected! Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file src/webcomp-tools/common.h.rej
patching file src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c
Hunk #2 FAILED at 2719.
1 out of 2 hunks FAILED -- saving rejects to file src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c.rej
./install_patched_fmk.sh: line 16: ./configure: No such file or directory
gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -c -o asustrx.o asustrx.c
gcc asustrx.o -o asustrx
gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -c -o addpattern.o addpattern.c
gcc addpattern.o -o addpattern
g++ -c -o untrx.o untrx.cc
In file included from untrx.cc:38:
untrx.h:44:10: warning: #warning "u_int32_t may be undefined. please define as 32-bit type." [-Wcpp]
44 | #warning "u_int32_t may be undefined. please define as 32-bit type."
| ^~~~~~~
g++ untrx.o -o untrx
gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -c -o motorola-bin.o motorola-bin.c
gcc motorola-bin.o -o motorola-bin
g++ -c -o splitter3.o splitter3.cc
In file included from splitter3.cc:39:
untrx.h:44:10: warning: #warning "u_int32_t may be undefined. please define as 32-bit type." [-Wcpp]
44 | #warning "u_int32_t may be undefined. please define as 32-bit type."
| ^~~~~~~
g++ splitter3.o -o splitter3
make -C ./bff/
make[1]: Entering directory '/home/bradix/firmware-mod-kit/src/bff'
gcc bff_huffman_decompress.c -o bff_huffman_decompress
make[1]: Leaving directory '/home/bradix/firmware-mod-kit/src/bff'
make -C ./jffs2
make[1]: Entering directory '/home/bradix/firmware-mod-kit/src/jffs2'
gcc -Wall sunjffs2.c -o sunjffs2
make[1]: Leaving directory '/home/bradix/firmware-mod-kit/src/jffs2'
make -C ./uncramfs/
make[1]: Entering directory '/home/bradix/firmware-mod-kit/src/uncramfs'
cc -g -O -g -O uncramfs.c -lz -o uncramfs
uncramfs.c: In function ‘usage’:
uncramfs.c:72:4: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
72 | exit(1);
| ^~~~
uncramfs.c:49:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
48 | #include "VERSION"
+++ |+#include <stdlib.h>
49 | ;
uncramfs.c:72:4: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
72 | exit(1);
| ^~~~
uncramfs.c:72:4: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
uncramfs.c: In function ‘do_file’:
uncramfs.c:231:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
231 | srcdata=(const u8*)(((u32)(base+offset)+blksize-1) & ~(blksize-1));
| ^
uncramfs.c:231:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
231 | srcdata=(const u8*)(((u32)(base+offset)+blksize-1) & ~(blksize-1));
| ^
uncramfs.c: In function ‘do_symlink’:
uncramfs.c:315:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
315 | exit(1);
| ^~~~
uncramfs.c:315:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
uncramfs.c: In function ‘main’:
uncramfs.c:696:10: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
696 | exit(1);
| ^~~~
uncramfs.c:696:10: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
❯ ./install_patched_fmk.sh
Cloning into 'firmware-mod-kit'...
remote: Enumerating objects: 3823, done.
remote: Counting objects: 100% (353/353), done.
remote: Compressing objects: 100% (95/95), done.
remote: Total 3823 (delta 276), reused 258 (delta 258), pack-reused 3470
Receiving objects: 100% (3823/3823), 10.40 MiB | 11.10 MiB/s, done.
Resolving deltas: 100% (2030/2030), done.
Already on 'master'
Your branch is up to date with 'origin/master'.
dos2unix: converting file /home/bradix/firmware-mod-kit/src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c to Unix format...
patching file src/others/squashfs-2.0-nb4/nb4-mksquashfs/squashfs/mksquashfs.c
patching file src/others/squashfs-3.0-e2100/mksquashfs.c
patching file src/others/squashfs-3.2-r2/mksquashfs.c
patching file src/others/squashfs-3.2-r2-hg612-lzma/squashfs3.2-r2/squashfs-tools/mksquashfs.c
patching file src/others/squashfs-3.2-r2-lzma/squashfs3.2-r2/squashfs-tools/mksquashfs.c
patching file src/others/squashfs-3.2-r2-rtn12/mksquashfs.c
patching file src/others/squashfs-3.2-r2-wnr1000/mksquashfs.c
patching file src/others/squashfs-3.3/mksquashfs.c
patching file src/others/squashfs-3.3-grml-lzma/squashfs3.3/squashfs-tools/mksquashfs.c
patching file src/others/squashfs-3.3-lzma/squashfs3.3/squashfs-tools/mksquashfs.c
patching file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/mksquashfs.c
Hunk #2 FAILED at 2705.
1 out of 2 hunks FAILED -- saving rejects to file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/mksquashfs.c.rej
patching file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/unsquashfs.c
Hunk #1 FAILED at 48.
1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-3.4-nb4/squashfs3.4/squashfs-tools/unsquashfs.c.rej
patching file src/others/squashfs-4.0-lzma/mksquashfs.c
Hunk #1 FAILED at 3129.
1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.0-lzma/mksquashfs.c.rej
patching file src/others/squashfs-4.0-realtek/mksquashfs.c
Hunk #1 FAILED at 3177.
1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.0-realtek/mksquashfs.c.rej
patching file src/others/squashfs-4.2/squashfs-tools/mksquashfs.c
Hunk #1 FAILED at 3355.
1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.2/squashfs-tools/mksquashfs.c.rej
patching file src/others/squashfs-4.2-official/mksquashfs.c
Hunk #1 FAILED at 3340.
1 out of 1 hunk FAILED -- saving rejects to file src/others/squashfs-4.2-official/mksquashfs.c.rej
patching file src/squashfs-2.1-r2/mksquashfs.c
patching file src/squashfs-3.0/mksquashfs.c
patching file src/squashfs-3.0-lzma-damn-small-variant/mksquashfs.c
patching file src/webcomp-tools/common.c
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/webcomp-tools/common.h
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c
Hunk #2 FAILED at 2719.
1 out of 2 hunks FAILED -- saving rejects to file src/others/squashfs-3.4-cisco/squashfs-tools/mksquashfs.c.rej
./install_patched_fmk.sh: line 16: ./configure: No such file or directory
gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -c -o asustrx.o asustrx.c
gcc asustrx.o -o asustrx
gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -c -o addpattern.o addpattern.c
gcc addpattern.o -o addpattern
g++ -c -o untrx.o untrx.cc
In file included from untrx.cc:38:
untrx.h:44:10: warning: #warning "u_int32_t may be undefined. please define as 32-bit type." [-Wcpp]
44 | #warning "u_int32_t may be undefined. please define as 32-bit type."
| ^~~~~~~
g++ untrx.o -o untrx
gcc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -c -o motorola-bin.o motorola-bin.c
gcc motorola-bin.o -o motorola-bin
g++ -c -o splitter3.o splitter3.cc
In file included from splitter3.cc:39:
untrx.h:44:10: warning: #warning "u_int32_t may be undefined. please define as 32-bit type." [-Wcpp]
44 | #warning "u_int32_t may be undefined. please define as 32-bit type."
| ^~~~~~~
g++ splitter3.o -o splitter3
make -C ./bff/
make[1]: Entering directory '/home/bradix/firmware-mod-kit/src/bff'
gcc bff_huffman_decompress.c -o bff_huffman_decompress
make[1]: Leaving directory '/home/bradix/firmware-mod-kit/src/bff'
make -C ./jffs2
make[1]: Entering directory '/home/bradix/firmware-mod-kit/src/jffs2'
gcc -Wall sunjffs2.c -o sunjffs2
make[1]: Leaving directory '/home/bradix/firmware-mod-kit/src/jffs2'
make -C ./uncramfs/
make[1]: Entering directory '/home/bradix/firmware-mod-kit/src/uncramfs'
cc -g -O -g -O uncramfs.c -lz -o uncramfs
uncramfs.c: In function ‘usage’:
uncramfs.c:72:4: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
72 | exit(1);
| ^~~~
uncramfs.c:49:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
48 | #include "VERSION"
+++ |+#include <stdlib.h>
49 | ;
uncramfs.c:72:4: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
72 | exit(1);
| ^~~~
uncramfs.c:72:4: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
uncramfs.c: In function ‘do_file’:
uncramfs.c:231:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
231 | srcdata=(const u8*)(((u32)(base+offset)+blksize-1) & ~(blksize-1));
| ^
uncramfs.c:231:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
231 | srcdata=(const u8*)(((u32)(base+offset)+blksize-1) & ~(blksize-1));
| ^
uncramfs.c: In function ‘do_symlink’:
uncramfs.c:315:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
315 | exit(1);
| ^~~~
uncramfs.c:315:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
uncramfs.c: In function ‘main’:
uncramfs.c:696:10: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
696 | exit(1);
| ^~~~
uncramfs.c:696:10: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
uncramfs.c:703:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
703 | exit(1);
| ^~~~
uncramfs.c:703:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
uncramfs.c:712:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
712 | exit(1);
| ^~~~
uncramfs.c:712:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
uncramfs.c:720:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
720 | exit(1);
| ^~~~
uncramfs.c:720:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
make[1]: *** [: uncramfs] Error 1
make[1]: Leaving directory '/home/bradix/firmware-mod-kit/src/uncramfs'
make: *** [Makefile:7: all] Error 2
The text was updated successfully, but these errors were encountered: