mfoc icon indicating copy to clipboard operation
mfoc copied to clipboard

mfoc.c compile error

Open LiamLau1 opened this issue 7 years ago • 1 comments

I'm trying to run miLazyCrackerFreshInstall.sh which requires mfoc to be compiled. When gcc is called, the redefinition error of unknownSector, knownSector, unknownKeyLetter and unexpected_random comes up. Any help will be appreciated

Reading package lists... Building dependency tree... Reading state information... autoconf is already the newest version (2.69-10). git is already the newest version (1:2.11.0-3+deb9u3). libnfc-bin is already the newest version (1.7.1-4). libnfc-dev is already the newest version (1.7.1-4). 0 upgraded, 0 newly installed, 0 to remove and 48 not upgraded. HEAD is now at ba072f1 update debian dir with up-to-date packaging Removing INSTALL Removing Makefile Removing Makefile.in Removing aclocal.m4 Removing autom4te.cache/ Removing compile Removing config.h Removing config.h.in Removing config.h.in~ Removing config.log Removing config.status Removing configure Removing depcomp Removing install-sh Removing missing Removing src/.deps/ Removing src/Makefile Removing src/Makefile.in Removing src/crapto1.o Removing src/crypto1.o Removing src/mfoc.c.orig Removing src/mfoc.c.rej Removing src/mfoc.h.rej Removing stamp-h1 patching file src/mfoc.c Hunk #1 succeeded at 72 with fuzz 2 (offset 14 lines). Hunk #2 FAILED at 159. Hunk #3 succeeded at 257 (offset 15 lines). Hunk #4 FAILED at 471. Hunk #5 FAILED at 554. Hunk #6 FAILED at 770. Hunk #7 FAILED at 1029. 5 out of 7 hunks FAILED -- saving rejects to file src/mfoc.c.rej patching file src/mfoc.c Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file src/mfoc.c.rej patching file src/mfoc.c Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 2 out of 2 hunks ignored -- saving rejects to file src/mfoc.c.rej patching file src/mfoc.c Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 6 out of 6 hunks ignored -- saving rejects to file src/mfoc.c.rej patching file src/mfoc.h Reversed (or previously applied) patch detected! Assume -R? [n] Apply anyway? [n] Skipping patch. 3 out of 3 hunks ignored -- saving rejects to file src/mfoc.h.rej checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking whether make supports nested variables... (cached) yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for libnfc... yes checking for inline... inline checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for size_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for memset... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands make all-recursive make[1]: Entering directory '/home/pi/miLazyCracker/mfoc' Making all in src make[2]: Entering directory '/home/pi/miLazyCracker/mfoc/src' CC crapto1.o CC crypto1.o CC mfoc.o Makefile:388: recipe for target 'mfoc.o' failed make[2]: Leaving directory '/home/pi/miLazyCracker/mfoc/src' Makefile:358: recipe for target 'all-recursive' failed make[1]: Leaving directory '/home/pi/miLazyCracker/mfoc' Makefile:299: recipe for target 'all' failed Making install in src make[1]: Entering directory '/home/pi/miLazyCracker/mfoc/src' CC mfoc.o Makefile:388: recipe for target 'mfoc.o' failed make[1]: Leaving directory '/home/pi/miLazyCracker/mfoc/src' Makefile:358: recipe for target 'install-recursive' failed HEAD is now at 89de1ba Merge pull request #28 from dkgitdev/patch-1 Removing libnfc_crypto1_crack.c.orig patching file libnfc_crypto1_crack.c Hunk #1 succeeded at 730 with fuzz 2 (offset 17 lines). Done.

LiamLau1 avatar Aug 03 '18 12:08 LiamLau1

I also got the same error while trying to compile

molotovah avatar Sep 21 '18 11:09 molotovah