mvdzwaan / mfcuk

Automatically exported from code.google.com/p/mfcuk
GNU General Public License v2.0
0 stars 0 forks source link

Error compiling nfc-utils.c #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At revision 57:

Steps followed:

1. svn checkout http://mfcuk.googlecode.com/svn/trunk/ mfcuk-read-only
2. cd mfcuk-read-only
3. autoreconf -vis
4. automake
5. autoconf
6. PKG_CONFIG_PATH=../libnfc-read-only/ ./configure
7. make

When compiling on a eee pc 1000 h running Mac OS X Snow Leopard 10.6.3 with all 
the required libs (including libnfc 1.5.1) installed I get this error:

make  all-recursive
Making all in src
  CC     crapto1.o
  CC     crypto1.o
  CC     mifare.o
  CC     nfc-utils.o
nfc-utils.c: In function ‘parse_args’:
nfc-utils.c:654: error: ‘nfc_device_desc_t’ has no member named ‘pcPort’
nfc-utils.c:655: error: ‘nfc_device_desc_t’ has no member named ‘pcPort’
nfc-utils.c:655: error: ‘nfc_device_desc_t’ has no member named ‘pcPort’
nfc-utils.c:655: error: ‘nfc_device_desc_t’ has no member named ‘pcPort’
nfc-utils.c:655: error: ‘nfc_device_desc_t’ has no member named ‘pcPort’
nfc-utils.c: In function ‘print_nfc_target’:
nfc-utils.c:698: warning: enumeration value ‘NMT_ISO14443BI’ not handled in 
switch
nfc-utils.c:698: warning: enumeration value ‘NMT_ISO14443B2SR’ not handled 
in switch
nfc-utils.c:698: warning: enumeration value ‘NMT_ISO14443B2CT’ not handled 
in switch
make[2]: *** [nfc-utils.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Original issue reported on code.google.com by m...@dimme.net on 16 Oct 2011 at 8:06

GoogleCodeExporter commented 9 years ago
Solved it:

Replace line 654 and 655 with:

strcpy (pndd->acPort, strtok (NULL, ":"));

Original comment by m...@dimme.net on 16 Oct 2011 at 8:11

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r59.

Original comment by romu...@libnfc.org on 17 Oct 2011 at 1:32