timmerk / nfc-tools

Automatically exported from code.google.com/p/nfc-tools
0 stars 0 forks source link

Error while compiling mfoc #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. wget http://nfc-tools.googlecode.com/files/mfoc-0.10.2.tar.gz && tar -xvzf 
mfoc-0.10.2.tar.gz
2. autoreconf -vis
3. ./configure
4. make

What is the expected output? What do you see instead?
Exiting whithout any errors. After running make it returns the following code: 
root@bt:~/mfoc-0.10.2# make
make  all-recursive
make[1]: Entering directory `/root/mfoc-0.10.2'
Making all in src
make[2]: Entering directory `/root/mfoc-0.10.2/src'
  CC     mfoc.o
mfoc.c: In function ‘mf_enhanced_auth’:
mfoc.c:674: error: too few arguments to function 
‘nfc_initiator_transceive_bytes’
make[2]: *** [mfoc.o] Error 1
make[2]: Leaving directory `/root/mfoc-0.10.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mfoc-0.10.2'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
mfoc-0.10.2 libnfc-1.5.1

Please provide any additional information below.

Original issue reported on code.google.com by skapasto...@gmail.com on 12 Jul 2012 at 2:55

GoogleCodeExporter commented 9 years ago
Sorry I forgot to write that I'm using BackTrack 5 operating system.

Original comment by skapasto...@gmail.com on 12 Jul 2012 at 2:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Confirmed.

This is due to the API change of libnfc-1.5.1.

nfc_initiator_transceive_bytes function needs the last para timeout(just pass a 
NULL pointer, and other APIs also need a timeout para), and pcPort should be 
changed to acPort(type also changed from char* to char[64]).

After the modification above, mfoc can be compiled successfully.

Original comment by adam900...@gmail.com on 28 Jul 2012 at 11:53

GoogleCodeExporter commented 9 years ago
Also you can revert to libnfc-1.4.2 where mfoc can be compiled without any 
modification.(But I failed to exec the mfoc command)

Original comment by adam900...@gmail.com on 28 Jul 2012 at 11:56

GoogleCodeExporter commented 9 years ago
Hello!
somehow i can't make corrections of this file.
But i have totally same problem. Could you send me correct files for 
libnfc-1.4.2 and for libnfc-1.6 (or others).
PS: It seems to me that change char type is totally impossible ( i can't 
understand what how type should be changed.

Original comment by chind...@gmail.com on 22 Aug 2012 at 10:03

GoogleCodeExporter commented 9 years ago
is it possible to compile mfoc with libnfc 1.6.0-rc1? 
I would also like to receive corrected files.

Original comment by brillens...@gmail.com on 1 Jan 2013 at 4:30

GoogleCodeExporter commented 9 years ago
Please use the correct libnfc version.

Current match is MFOC 0.10.4 with libnfc 1.7.0

Original comment by romu...@libnfc.org on 20 Jan 2013 at 4:13