timmerk / nfc-tools

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

Error compiling #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. root@ubuntu:~# wget http://nfc-tools.googlecode.com/files/mfoc-0.10.2.tar.gz 
&& tar -xvzf mfoc-0.10.2.tar.gz
--2012-08-15 23:08:24--  
http://nfc-tools.googlecode.com/files/mfoc-0.10.2.tar.gz
Resolving nfc-tools.googlecode.com... 74.125.130.82, 2001:4860:800a::52
Connecting to nfc-tools.googlecode.com|74.125.130.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 112864 (110K) [application/x-gzip]
Saving to: `mfoc-0.10.2.tar.gz'

100%[===========================================================================
========================================>] 112,864     67.2K/s   in 1.6s    

2012-08-15 23:08:26 (67.2 KB/s) - `mfoc-0.10.2.tar.gz' saved [112864/112864]

mfoc-0.10.2/
mfoc-0.10.2/configure
mfoc-0.10.2/NEWS
mfoc-0.10.2/AUTHORS
mfoc-0.10.2/configure.ac
mfoc-0.10.2/Makefile.am
mfoc-0.10.2/aclocal.m4
mfoc-0.10.2/src/
mfoc-0.10.2/src/crypto1.c
mfoc-0.10.2/src/nfc-utils.c
mfoc-0.10.2/src/crapto1.h
mfoc-0.10.2/src/Makefile.am
mfoc-0.10.2/src/nfc-utils.h
mfoc-0.10.2/src/Makefile.in
mfoc-0.10.2/src/mfoc.c
mfoc-0.10.2/src/mifare.c
mfoc-0.10.2/src/crapto1.c
mfoc-0.10.2/src/mifare.h
mfoc-0.10.2/src/mfoc.h
mfoc-0.10.2/Makefile.in
mfoc-0.10.2/missing
mfoc-0.10.2/INSTALL
mfoc-0.10.2/README
mfoc-0.10.2/COPYING
mfoc-0.10.2/TODO
mfoc-0.10.2/depcomp
mfoc-0.10.2/config.h.in
mfoc-0.10.2/install-sh
mfoc-0.10.2/ChangeLog

What is the expected output? What do you see instead?

root@ubuntu:~# cd mfoc-0.10.2/
root@ubuntu:~/mfoc-0.10.2# autoreconf -vis
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --no-force
autoreconf: Leaving directory `.'
root@ubuntu:~/mfoc-0.10.2# ./configure 
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 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... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBNFC... yes
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 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
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
root@ubuntu:~/mfoc-0.10.2# make
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash 
/home/drakorg/mfoc-0.10.2/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]: Entering directory `/home/drakorg/mfoc-0.10.2'
Making all in src
make[2]: Entering directory `/home/drakorg/mfoc-0.10.2/src'
  CC     crapto1.o
  CC     crypto1.o
  CC     mfoc.o
In file included from mfoc.c:48:
mifare.h:57: error: expected specifier-qualifier-list before ‘byte_t’
mifare.h:62: error: expected specifier-qualifier-list before ‘byte_t’
mifare.h:66: error: expected specifier-qualifier-list before ‘byte_t’
mifare.h:78: error: expected ‘)’ before ‘*’ token
mifare.h:85: error: expected specifier-qualifier-list before ‘byte_t’
mifare.h:93: error: expected specifier-qualifier-list before ‘byte_t’
mifare.h:97: error: expected specifier-qualifier-list before ‘byte_t’
mifare.h:114: error: expected specifier-qualifier-list before ‘byte_t’
mifare.h:124: error: expected specifier-qualifier-list before ‘byte_t’
In file included from mfoc.c:49:
nfc-utils.h:82: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘oddparity’
nfc-utils.h:83: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
nfc-utils.h:85: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
nfc-utils.h:86: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
nfc-utils.h:87: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
nfc-utils.h:89: error: expected ‘;’, ‘,’ or ‘)’ before ‘nai’
nfc-utils.h:90: error: expected ‘;’, ‘,’ or ‘)’ before ‘nbi’
nfc-utils.h:91: error: expected ‘;’, ‘,’ or ‘)’ before ‘nfi’
nfc-utils.h:92: error: expected ‘;’, ‘,’ or ‘)’ before ‘nji’
nfc-utils.h:93: error: expected ‘;’, ‘,’ or ‘)’ before ‘ndi’
nfc-utils.h:95: error: expected ‘;’, ‘,’ or ‘)’ before ‘nt’
nfc-utils.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘*’ token
In file included from mfoc.c:50:
mfoc.h:27: error: expected specifier-qualifier-list before ‘byte_t’
mfoc.h:39: error: expected specifier-qualifier-list before ‘byte_t’
mfoc.h:43: error: expected specifier-qualifier-list before ‘nfc_target_t’
mfoc.h:63: error: expected specifier-qualifier-list before ‘nfc_device_t’
mfoc.h:74: error: expected ‘)’ before ‘*’ token
mfoc.h:75: error: expected ‘)’ before ‘*’ token
mfoc.h:82: error: expected declaration specifiers or ‘...’ before 
‘byte_t’
mfoc.h:85: error: expected declaration specifiers or ‘...’ before 
‘byte_t’
mfoc.h:86: error: expected ‘)’ before ‘*’ token
mfoc.c: In function ‘main’:
mfoc.c:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘nm’
mfoc.c:53: error: ‘nm’ undeclared (first use in this function)
mfoc.c:53: error: (Each undeclared identifier is reported only once
mfoc.c:53: error: for each function it appears in.)
mfoc.c:53: error: expected expression before ‘{’ token
mfoc.c:73: error: ‘byte_t’ undeclared (first use in this function)
mfoc.c:73: error: ‘defKey’ undeclared (first use in this function)
mfoc.c:76: error: expected ‘;’ before ‘defaultKeys’
mfoc.c:96: error: extra brace group at end of initializer
mfoc.c:96: error: (near initialization for ‘d’)
mfoc.c:96: warning: excess elements in struct initializer
mfoc.c:96: warning: (near initialization for ‘d’)
mfoc.c:137: error: too many arguments to function ‘num_to_bytes’
mfoc.c:138: error: ‘defaultKeys’ undeclared (first use in this function)
mfoc.c:168: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:169: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:173: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:173: error: ‘NDO_ACTIVATE_FIELD’ undeclared (first use in this 
function)
mfoc.c:174: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:178: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:178: error: ‘NDO_INFINITE_SELECT’ undeclared (first use in this 
function)
mfoc.c:179: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:183: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:183: error: ‘NDO_HANDLE_CRC’ undeclared (first use in this function)
mfoc.c:184: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:187: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:187: error: ‘NDO_HANDLE_PARITY’ undeclared (first use in this 
function)
mfoc.c:188: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:198: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:198: error: ‘mftag’ has no member named ‘nt’
mfoc.c:199: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:204: error: ‘mftag’ has no member named ‘nt’
mfoc.c:210: error: ‘mftag’ has no member named ‘nt’
mfoc.c:214: error: ‘mftag’ has no member named ‘b4K’
mfoc.c:214: error: ‘mftag’ has no member named ‘nt’
mfoc.c:215: error: ‘mftag’ has no member named ‘uid’
mfoc.c:215: error: ‘mftag’ has no member named ‘nt’
mfoc.c:217: error: ‘mftag’ has no member named ‘num_blocks’
mfoc.c:217: error: ‘mftag’ has no member named ‘b4K’
mfoc.c:218: error: ‘mftag’ has no member named ‘num_sectors’
mfoc.c:218: error: ‘mftag’ has no member named ‘b4K’
mfoc.c:220: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:220: error: ‘mftag’ has no member named ‘num_sectors’
mfoc.c:221: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:244: error: ‘mftag’ has no member named ‘num_sectors’
mfoc.c:245: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:245: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:248: error: ‘mftag’ has no member named ‘nt’
mfoc.c:252: error: ‘mifare_param_auth’ has no member named ‘abtUid’
mfoc.c:252: error: ‘mftag’ has no member named ‘nt’
mfoc.c:252: error: ‘mifare_param_auth’ has no member named ‘abtUid’
mfoc.c:257: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:257: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:258: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:262: error: ‘mftag’ has no member named ‘num_blocks’
mfoc.c:264: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:266: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:272: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:272: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:272: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:273: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:276: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:278: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:283: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:285: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:285: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:285: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:286: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:289: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:289: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:295: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:300: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:307: error: ‘mftag’ has no member named ‘num_sectors’
mfoc.c:308: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:309: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:321: error: ‘mftag’ has no member named ‘num_sectors’
mfoc.c:322: error: ‘mifare_param_auth’ has no member named ‘abtUid’
mfoc.c:322: error: ‘mftag’ has no member named ‘nt’
mfoc.c:322: error: ‘mifare_param_auth’ has no member named ‘abtUid’
mfoc.c:323: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:323: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:328: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:328: error: too many arguments to function ‘num_to_bytes’
mfoc.c:330: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:330: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:337: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:337: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:337: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:338: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:340: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:340: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:340: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:341: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:345: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:346: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:360: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:368: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:369: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:383: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:383: error: too many arguments to function ‘num_to_bytes’
mfoc.c:385: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:385: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:393: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:395: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:395: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:395: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:396: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:399: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:399: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:399: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:400: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:403: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:404: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:413: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:413: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:416: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:416: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:426: error: ‘mftag’ has no member named ‘num_sectors’
mfoc.c:427: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:427: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:435: error: ‘mftag’ has no member named ‘num_sectors’
mfoc.c:438: error: ‘mftag’ has no member named ‘num_blocks’
mfoc.c:443: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:443: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:443: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:444: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:446: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:449: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:450: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:451: error: ‘mifare_param_data’ has no member named ‘abtData’
mfoc.c:452: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:453: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:453: error: ‘mftag’ has no member named ‘nt’
mfoc.c:458: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:460: error: ‘mifare_param_auth’ has no member named ‘abtKey’
mfoc.c:460: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:460: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:461: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:463: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:466: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:467: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:468: error: ‘mifare_param_data’ has no member named ‘abtData’
mfoc.c:469: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:470: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:470: error: ‘mftag’ has no member named ‘nt’
mfoc.c:473: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:482: error: ‘mifare_classic_block_trailer’ has no member named 
‘abtKeyA’
mfoc.c:482: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:483: error: ‘mifare_classic_block_trailer’ has no member named 
‘abtKeyB’
mfoc.c:483: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:484: error: ‘mifare_classic_block_trailer’ has no member named 
‘abtAccessBits’
mfoc.c:484: error: ‘mifare_param_data’ has no member named ‘abtData’
mfoc.c:485: error: ‘mifare_classic_block_data’ has no member named 
‘abtData’
mfoc.c:485: error: ‘mifare_param_data’ has no member named ‘abtData’
mfoc.c:486: error: ‘mifare_param_auth’ has no member named ‘abtUid’
mfoc.c:486: error: ‘mftag’ has no member named ‘nt’
mfoc.c:498: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:502: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:503: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:506: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:509: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c: In function ‘mf_init’:
mfoc.c:535: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:536: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c: At top level:
mfoc.c:542: error: expected ‘)’ before ‘*’ token
mfoc.c:573: error: expected ‘)’ before ‘*’ token
mfoc.c: In function ‘find_exploit_sector’:
mfoc.c:597: error: ‘mftag’ has no member named ‘num_sectors’
mfoc.c:598: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:598: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:607: error: ‘mftag’ has no member named ‘num_sectors’
mfoc.c:608: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:608: error: ‘mftag’ has no member named ‘sectors’
mfoc.c: In function ‘mf_anticollision’:
mfoc.c:618: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘nm’
mfoc.c:618: error: ‘nm’ undeclared (first use in this function)
mfoc.c:618: error: expected expression before ‘{’ token
mfoc.c:622: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:622: error: ‘mftag’ has no member named ‘nt’
mfoc.c:623: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c: In function ‘mf_enhanced_auth’:
mfoc.c:639: error: ‘byte_t’ undeclared (first use in this function)
mfoc.c:639: error: expected ‘;’ before ‘Nr’
mfoc.c:640: error: expected ‘;’ before ‘Auth’
mfoc.c:641: error: expected ‘;’ before ‘AuthEnc’
mfoc.c:642: error: expected ‘;’ before ‘AuthEncPar’
mfoc.c:644: error: expected ‘;’ before ‘ArEnc’
mfoc.c:645: error: expected ‘;’ before ‘ArEncPar’
mfoc.c:647: error: expected ‘;’ before ‘Rx’
mfoc.c:648: error: expected ‘;’ before ‘RxPar’
mfoc.c:656: error: ‘Auth’ undeclared (first use in this function)
mfoc.c:656: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:662: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:662: error: ‘NDO_HANDLE_CRC’ undeclared (first use in this function)
mfoc.c:663: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:669: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:669: error: ‘NDO_EASY_FRAMING’ undeclared (first use in this 
function)
mfoc.c:670: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:674: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:674: error: ‘Rx’ undeclared (first use in this function)
mfoc.c:674: warning: passing argument 5 of ‘nfc_initiator_transceive_bytes’ 
makes integer from pointer without a cast
/usr/local/include/nfc/nfc.h:86: note: expected ‘size_t’ but argument is of 
type ‘size_t *’
mfoc.c:674: error: too few arguments to function 
‘nfc_initiator_transceive_bytes’
mfoc.c:679: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:680: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:689: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:690: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:692: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:696: error: ‘mftag’ has no member named ‘uid’
mfoc.c:701: error: ‘ArEnc’ undeclared (first use in this function)
mfoc.c:701: error: ‘Nr’ undeclared (first use in this function)
mfoc.c:702: error: ‘ArEncPar’ undeclared (first use in this function)
mfoc.c:716: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:716: error: ‘NDO_HANDLE_PARITY’ undeclared (first use in this 
function)
mfoc.c:717: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:724: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:724: error: ‘RxPar’ undeclared (first use in this function)
mfoc.c:724: warning: passing argument 6 of ‘nfc_initiator_transceive_bits’ 
from incompatible pointer type
/usr/local/include/nfc/nfc.h:87: note: expected ‘uint8_t *’ but argument is 
of type ‘size_t *’
mfoc.c:724: error: too many arguments to function 
‘nfc_initiator_transceive_bits’
mfoc.c:747: error: ‘AuthEnc’ undeclared (first use in this function)
mfoc.c:749: error: ‘AuthEncPar’ undeclared (first use in this function)
mfoc.c:753: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:753: warning: passing argument 6 of ‘nfc_initiator_transceive_bits’ 
from incompatible pointer type
/usr/local/include/nfc/nfc.h:87: note: expected ‘uint8_t *’ but argument is 
of type ‘size_t *’
mfoc.c:753: error: too many arguments to function 
‘nfc_initiator_transceive_bits’
mfoc.c:759: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:760: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:762: error: ‘mftag’ has no member named ‘sectors’
mfoc.c:764: error: ‘mftag’ has no member named ‘uid’
mfoc.c:781: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:782: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:782: warning: passing argument 6 of ‘nfc_initiator_transceive_bits’ 
from incompatible pointer type
/usr/local/include/nfc/nfc.h:87: note: expected ‘uint8_t *’ but argument is 
of type ‘size_t *’
mfoc.c:782: error: too many arguments to function 
‘nfc_initiator_transceive_bits’
mfoc.c:811: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:811: warning: passing argument 6 of ‘nfc_initiator_transceive_bits’ 
from incompatible pointer type
/usr/local/include/nfc/nfc.h:87: note: expected ‘uint8_t *’ but argument is 
of type ‘size_t *’
mfoc.c:811: error: too many arguments to function 
‘nfc_initiator_transceive_bits’
mfoc.c:817: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:818: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:822: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:823: error: ‘mfreader’ has no member named ‘pdi’
mfoc.c:832: error: ‘denonce’ has no member named ‘parity’
mfoc.c:845: error: ‘denonce’ has no member named ‘parity’
mfoc.c:845: error: too many arguments to function ‘valid_nonce’
mfoc.c:847: error: ‘mftag’ has no member named ‘uid’
mfoc.c:852: error: ‘mftag’ has no member named ‘uid’
mfoc.c: At top level:
mfoc.c:937: error: expected declaration specifiers or ‘...’ before 
‘byte_t’
mfoc.c: In function ‘valid_nonce’:
mfoc.c:938: error: subscripted value is neither array nor pointer
mfoc.c:939: error: subscripted value is neither array nor pointer
mfoc.c:940: error: subscripted value is neither array nor pointer
mfoc.c: At top level:
mfoc.c:943: error: expected declaration specifiers or ‘...’ before 
‘byte_t’
mfoc.c: In function ‘num_to_bytes’:
mfoc.c:945: error: ‘dest’ undeclared (first use in this function)
mfoc.c:945: error: ‘byte_t’ undeclared (first use in this function)
mfoc.c:945: error: expected ‘;’ before ‘n’
mfoc.c: At top level:
mfoc.c:950: error: expected ‘)’ before ‘*’ token
make[2]: *** [mfoc.o] Error 1
make[2]: Leaving directory `/home/drakorg/mfoc-0.10.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/drakorg/mfoc-0.10.2'
make: *** [all] Error 2
root@ubuntu:~/mfoc-0.10.2# 

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

Please provide any additional information below.
ubuntu, with libnfc-1.4.2

Original issue reported on code.google.com by drak...@gmail.com on 16 Aug 2012 at 6:24

GoogleCodeExporter commented 9 years ago
Apparently a libnfc other than 1.4.2 was also installed on test environment. 
I'm sorry for the false alarm, it compiles as it should now.

Original comment by drak...@gmail.com on 16 Aug 2012 at 5:43

GoogleCodeExporter commented 9 years ago

Original comment by romu...@libnfc.org on 1 Oct 2012 at 6:06