nfc-tools / mfoc

Mifare Classic Offline Cracker
GNU General Public License v2.0
1.22k stars 269 forks source link

mfoc from git fail to compile #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.git clone https://code.google.com/p/mfoc
2.cd mfoc
3.make

What is the expected output? What do you see instead?
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 -j5 
make  all-recursive
make[1]: Entering directory 
`/var/tmp/portage/net-wireless/mfoc-9999/work/mfoc-9999'
Making all in src
make[2]: Entering directory 
`/var/tmp/portage/net-wireless/mfoc-9999/work/mfoc-9999/src'
  CC       crapto1.o
  CC       crypto1.o
  CC       mfoc.o
  CC       mifare.o
  CC       nfc-utils.o
nfc-utils.c: In function ‘print_nfc_target’:
nfc-utils.c:125:3: error: incompatible type for argument 2 of 
‘str_nfc_target’
In file included from nfc-utils.c:39:0:
/usr/local/include/nfc/nfc.h:139:18: note: expected ‘nfc_target’ but 
argument is of type ‘const struct nfc_target *’
nfc-utils.c:127:3: warning: implicit declaration of function ‘nfc_free’ 
[-Wimplicit-function-declaration]
make[2]: *** [nfc-utils.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory 
`/var/tmp/portage/net-wireless/mfoc-9999/work/mfoc-9999/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/var/tmp/portage/net-wireless/mfoc-9999/work/mfoc-9999'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
using the git version (today) on:
Linux localhost 3.11.6-gentoo #1 SMP Wed Oct 23 15:47:29 CEST 2013 x86_64 
Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz GenuineIntel GNU/Linux

Please provide any additional information below.
with libnfc: libnfc-1.7.0-40-g7e5257d

Original issue reported on code.google.com by hisoka2501 on 9 Nov 2013 at 12:18

GoogleCodeExporter commented 9 years ago
Hi,

It seems you have 2 different libnfc installed: the good one (1.7.0) and an old 
one (before nfc_free exists).
The good one is detected by configure, but the wrong one is used when 
nfc-utils.* include it.

You have to delete/clean the old one.

Bye

Original comment by romu...@libnfc.org on 6 Dec 2013 at 2:39

GoogleCodeExporter commented 9 years ago
Hi,

I have the same errors after running "make autoinstall" and "make clean" in the 
older versions of libnfc, mfoc and mfcuk.  I also deleted the older version 
folders for libnfc, mfoc and mfcuk from my computer but continue to get the 
errors shown above when I run "make" in the newer directories.  Please see 
attached file and the info below...

/root/acr122u
/root/ACS-Unified-PKG-Lnx-108-P
/root/build
/root/ccid-1.4.18
/root/libnfc
/root/libnfc-1.7.0-rc4
/root/libnfc-read-only
/root/mfcuk-0.3.8
/root/mfcuk-read-only
/root/mfoc-0.10.7
/root/pcsc-perl-1.4.13
/root/pcsc-tools-1.4.23

Original comment by linehan...@gmail.com on 20 Nov 2014 at 4:11

Attachments: