nfc-tools / mfoc

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

Make error #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make

What version of the product are you using? On what operating system?

Distributor ID: Ubuntu
Description:    Ubuntu 12.10
Release:        12.10
Codename:       quantal

libnfc-1.7.0-rc7

Please provide any additional information below.

# make
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /tools/mfoc-0.10.5/missing 
--run autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: ingresso nella directory "/tools/mfoc-0.10.5"
Making all in src
make[2]: ingresso nella directory "/tools/mfoc-0.10.5/src"
  CC     mfoc.o
  CC     mifare.o
  CC     nfc-utils.o
nfc-utils.c: In function âprint_nfc_targetâ:
nfc-utils.c:121:3: error: incompatible type for argument 2 of âstr_nfc_targetâ
In file included from nfc-utils.c:35:0:
/usr/local/include/nfc/nfc.h:146:18: note: expected âconst struct nfc_target 
*â but argument is of type ânfc_targetâ
make[2]: *** [nfc-utils.o] Errore 1
make[2]: uscita dalla directory "/tools/mfoc-0.10.5/src"
make[1]: *** [all-recursive] Errore 1
make[1]: uscita dalla directory "/tools/mfoc-0.10.5"
make: *** [all] Errore 2

Original issue reported on code.google.com by alfonso....@gmail.com on 13 May 2013 at 1:03

GoogleCodeExporter commented 9 years ago
I have the same.

root@bt:~/mfoc-0.10.5# make
make  all-recursive
make[1]: Entering directory `/root/mfoc-0.10.5'
Making all in src
make[2]: Entering directory `/root/mfoc-0.10.5/src'
  CC     nfc-utils.o
nfc-utils.c: In function ‘print_nfc_target’:
nfc-utils.c:121: error: incompatible type for argument 2 of ‘str_nfc_target’
/usr/local/include/nfc/nfc.h:146: note: expected ‘const struct nfc_target 
*’ but argument is of type ‘nfc_target’
make[2]: *** [nfc-utils.o] Error 1
make[2]: Leaving directory `/root/mfoc-0.10.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mfoc-0.10.5'
make: *** [all] Error 2

Using Backtrack 5 R3, with libnfc-1.7.0-rc7. 

Original comment by Kyle...@gmail.com on 3 Jun 2013 at 11:46

GoogleCodeExporter commented 9 years ago
Almost the same error when trying 0.10.4. 

root@bt:/mfoc-0.10.4# make
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /mfoc-0.10.4/missing --run 
autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/mfoc-0.10.4'
Making all in src
make[2]: Entering directory `/mfoc-0.10.4/src'
  CC     crapto1.o
In file included from crapto1.c:20:
crapto1.h: In function ‘parity’:
crapto1.h:65: warning: implicit declaration of function ‘asm’
crapto1.h:71: error: expected ‘)’ before ‘:’ token
make[2]: *** [crapto1.o] Error 1
make[2]: Leaving directory `/mfoc-0.10.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mfoc-0.10.4'
make: *** [all] Error 2

Original comment by Kyle...@gmail.com on 3 Jun 2013 at 11:52

GoogleCodeExporter commented 9 years ago
This is fixed using 0.10.6 against libnfc 1.7.0-RC7

Original comment by romu...@libnfc.org on 6 Jun 2013 at 2:40

GoogleCodeExporter commented 9 years ago
Thank you for the quick fix romu

Original comment by Kyle...@gmail.com on 7 Jun 2013 at 8:53