DEBUG: Changing to port directory: /Users/rschmidt/macports/dports/comms/libnfc DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Requested variant darwin is not provided by port libnfc. DEBUG: Requested variant i386 is not provided by port libnfc. DEBUG: Requested variant macosx is not provided by port libnfc. DEBUG: Changing to port directory: /Users/rschmidt/macports/dports/comms/libnfc DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Requested variant darwin is not provided by port libnfc. DEBUG: Requested variant i386 is not provided by port libnfc. DEBUG: Requested variant macosx is not provided by port libnfc. DEBUG: Found port in file:///Users/rschmidt/macports/dports/devel/libusb DEBUG: Changing to port directory: /Users/rschmidt/macports/dports/devel/libusb DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Requested variant darwin is not provided by port libusb. DEBUG: Requested variant i386 is not provided by port libusb. DEBUG: Requested variant macosx is not provided by port libusb. DEBUG: Searching for dependency: libusb DEBUG: Found Dependency: receipt exists for libusb DEBUG: Found port in file:///Users/rschmidt/macports/dports/devel/libusb-compat DEBUG: Changing to port directory: /Users/rschmidt/macports/dports/devel/libusb-compat DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Requested variant darwin is not provided by port libusb-compat. DEBUG: Requested variant i386 is not provided by port libusb-compat. DEBUG: Requested variant macosx is not provided by port libusb-compat. DEBUG: Searching for dependency: libusb-compat DEBUG: Found Dependency: receipt exists for libusb-compat DEBUG: Executing org.macports.main (libnfc) ---> Fetching libnfc DEBUG: Executing org.macports.fetch (libnfc) ---> Verifying checksum(s) for libnfc DEBUG: Executing org.macports.checksum (libnfc) ---> Checksumming libnfc-1.2.1.tar.gz DEBUG: Correct (md5) checksum for libnfc-1.2.1.tar.gz DEBUG: Correct (sha1) checksum for libnfc-1.2.1.tar.gz DEBUG: Correct (rmd160) checksum for libnfc-1.2.1.tar.gz ---> Extracting libnfc DEBUG: Executing org.macports.extract (libnfc) ---> Extracting libnfc-1.2.1.tar.gz DEBUG: setting option extract.args to /mp/var/macports/distfiles/libnfc/libnfc-1.2.1.tar.gz DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4' DEBUG: Assembled command: 'cd "/mp/var/macports/build/_Users_rschmidt_macports_dports_comms_libnfc/work" && gzip -dc /mp/var/macports/distfiles/libnfc/libnfc-1.2.1.tar.gz | /usr/bin/gnutar --no-same-owner -xf -' DEBUG: Executing org.macports.patch (libnfc) ---> Configuring libnfc DEBUG: Using compiler 'Mac OS X gcc 4.0' DEBUG: Executing org.macports.configure (libnfc) DEBUG: Environment: CFLAGS='-O2' CPPFLAGS='-I/mp/include' CXXFLAGS='-O2' MACOSX_DEPLOYMENT_TARGET='10.4' CPP='/usr/bin/cpp-4.0' CXX='/usr/bin/g++-4.0' F90FLAGS='-O2' LDFLAGS='-L/mp/lib' FCFLAGS='-O2' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c' OBJCFLAGS='-O2' FFLAGS='-O2' CC='/usr/bin/gcc-4.0' DEBUG: Assembled command: 'cd "/mp/var/macports/build/_Users_rschmidt_macports_dports_comms_libnfc/work/libnfc-1.2.1" && ./configure --prefix=/mp' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /mp/bin/gmkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... /usr/bin/gcc-4.0 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc-4.0 accepts -g... yes checking for /usr/bin/gcc-4.0 option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of /usr/bin/gcc-4.0... gcc3 checking whether make sets $(MAKE)... (cached) yes checking build system type... i386-apple-darwin8.11.1 checking host system type... i386-apple-darwin8.11.1 checking for a sed that does not truncate output... /mp/bin/gsed checking for grep that handles long lines and -e... /mp/bin/grep checking for egrep... /mp/bin/grep -E checking for fgrep... /mp/bin/grep -F checking for ld used by /usr/bin/gcc-4.0... /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld checking if the linker (/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p checking the name lister (/usr/bin/nm -p) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... no checking for /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld option to reload object files... -r checking for objdump... no checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -p output from /usr/bin/gcc-4.0 object... ok checking for dsymutil... dsymutil checking for nmedit... nmedit checking for lipo... lipo checking for otool... otool checking for otool64... otool64 checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking how to run the C preprocessor... /usr/bin/cpp-4.0 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 dlfcn.h... yes checking for objdir... .libs checking if /usr/bin/gcc-4.0 supports -fno-rtti -fno-exceptions... no checking for /usr/bin/gcc-4.0 option to produce PIC... -fno-common -DPIC checking if /usr/bin/gcc-4.0 PIC flag -fno-common -DPIC works... yes checking if /usr/bin/gcc-4.0 static flag -static works... no checking if /usr/bin/gcc-4.0 supports -c -o file.o... yes checking if /usr/bin/gcc-4.0 supports -c -o file.o... (cached) yes checking whether the /usr/bin/gcc-4.0 linker (/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin8.11.1 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for ranlib... (cached) ranlib checking for pkg-config... /mp/bin/pkg-config checking for ANSI C header files... (cached) yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for stdint.h... (cached) yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdbool.h... (cached) yes checking usb.h usability... yes checking usb.h presence... yes checking for usb.h... yes checking for size_t... yes checking for uint8_t... yes checking for uint16_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for int32_t... yes checking for pcsc-lite support... yes checking for debug flag... no checking pkg-config is at least version 0.9.0... yes checking for LIBUSB... yes configure: WARNING: Using darwin PCSC Framework configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating libnfc.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands ---> Building libnfc DEBUG: Executing org.macports.build (libnfc) DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4' DEBUG: Assembled command: 'cd "/mp/var/macports/build/_Users_rschmidt_macports_dports_comms_libnfc/work/libnfc-1.2.1" && nice -n 10 make all' make all-recursive Making all in src /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-bitutils.lo -MD -MP -MF .deps/libnfc_la-bitutils.Tpo -c -o libnfc_la-bitutils.lo `test -f 'bitutils.c' || echo './'`bitutils.c libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-bitutils.lo -MD -MP -MF .deps/libnfc_la-bitutils.Tpo -c bitutils.c -fno-common -DPIC -o .libs/libnfc_la-bitutils.o libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-bitutils.lo -MD -MP -MF .deps/libnfc_la-bitutils.Tpo -c bitutils.c -o libnfc_la-bitutils.o >/dev/null 2>&1 mv -f .deps/libnfc_la-bitutils.Tpo .deps/libnfc_la-bitutils.Plo /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-libnfc.lo -MD -MP -MF .deps/libnfc_la-libnfc.Tpo -c -o libnfc_la-libnfc.lo `test -f 'libnfc.c' || echo './'`libnfc.c libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-libnfc.lo -MD -MP -MF .deps/libnfc_la-libnfc.Tpo -c libnfc.c -fno-common -DPIC -o .libs/libnfc_la-libnfc.o libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-libnfc.lo -MD -MP -MF .deps/libnfc_la-libnfc.Tpo -c libnfc.c -o libnfc_la-libnfc.o >/dev/null 2>&1 mv -f .deps/libnfc_la-libnfc.Tpo .deps/libnfc_la-libnfc.Plo /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-rs232.lo -MD -MP -MF .deps/libnfc_la-rs232.Tpo -c -o libnfc_la-rs232.lo `test -f 'rs232.c' || echo './'`rs232.c libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-rs232.lo -MD -MP -MF .deps/libnfc_la-rs232.Tpo -c rs232.c -fno-common -DPIC -o .libs/libnfc_la-rs232.o libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-rs232.lo -MD -MP -MF .deps/libnfc_la-rs232.Tpo -c rs232.c -o libnfc_la-rs232.o >/dev/null 2>&1 mv -f .deps/libnfc_la-rs232.Tpo .deps/libnfc_la-rs232.Plo /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_arygon.lo -MD -MP -MF .deps/libnfc_la-dev_arygon.Tpo -c -o libnfc_la-dev_arygon.lo `test -f 'dev_arygon.c' || echo './'`dev_arygon.c libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_arygon.lo -MD -MP -MF .deps/libnfc_la-dev_arygon.Tpo -c dev_arygon.c -fno-common -DPIC -o .libs/libnfc_la-dev_arygon.o libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_arygon.lo -MD -MP -MF .deps/libnfc_la-dev_arygon.Tpo -c dev_arygon.c -o libnfc_la-dev_arygon.o >/dev/null 2>&1 mv -f .deps/libnfc_la-dev_arygon.Tpo .deps/libnfc_la-dev_arygon.Plo /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_pn531.lo -MD -MP -MF .deps/libnfc_la-dev_pn531.Tpo -c -o libnfc_la-dev_pn531.lo `test -f 'dev_pn531.c' || echo './'`dev_pn531.c libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_pn531.lo -MD -MP -MF .deps/libnfc_la-dev_pn531.Tpo -c dev_pn531.c -fno-common -DPIC -o .libs/libnfc_la-dev_pn531.o libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_pn531.lo -MD -MP -MF .deps/libnfc_la-dev_pn531.Tpo -c dev_pn531.c -o libnfc_la-dev_pn531.o >/dev/null 2>&1 mv -f .deps/libnfc_la-dev_pn531.Tpo .deps/libnfc_la-dev_pn531.Plo /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_pn533.lo -MD -MP -MF .deps/libnfc_la-dev_pn533.Tpo -c -o libnfc_la-dev_pn533.lo `test -f 'dev_pn533.c' || echo './'`dev_pn533.c libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_pn533.lo -MD -MP -MF .deps/libnfc_la-dev_pn533.Tpo -c dev_pn533.c -fno-common -DPIC -o .libs/libnfc_la-dev_pn533.o libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_pn533.lo -MD -MP -MF .deps/libnfc_la-dev_pn533.Tpo -c dev_pn533.c -o libnfc_la-dev_pn533.o >/dev/null 2>&1 mv -f .deps/libnfc_la-dev_pn533.Tpo .deps/libnfc_la-dev_pn533.Plo /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_acr122.lo -MD -MP -MF .deps/libnfc_la-dev_acr122.Tpo -c -o libnfc_la-dev_acr122.lo `test -f 'dev_acr122.c' || echo './'`dev_acr122.c libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_acr122.lo -MD -MP -MF .deps/libnfc_la-dev_acr122.Tpo -c dev_acr122.c -fno-common -DPIC -o .libs/libnfc_la-dev_acr122.o dev_acr122.c: In function 'dev_acr122_transceive': dev_acr122.c:198: error: 'SCARD_PROTOCOL_UNSET' undeclared (first use in this function) dev_acr122.c:198: error: (Each undeclared identifier is reported only once dev_acr122.c:198: error: for each function it appears in.) dev_acr122.c:200: warning: passing argument 2 of 'SCardControl' makes pointer from integer without a cast dev_acr122.c:200: warning: passing argument 3 of 'SCardControl' makes integer from pointer without a cast dev_acr122.c:200: warning: passing argument 4 of 'SCardControl' makes pointer from integer without a cast dev_acr122.c:200: warning: passing argument 5 of 'SCardControl' from incompatible pointer type dev_acr122.c:200: error: too many arguments to function 'SCardControl' dev_acr122.c: In function 'dev_acr122_firmware': dev_acr122.c:245: error: 'SCARD_PROTOCOL_UNSET' undeclared (first use in this function) dev_acr122.c:247: warning: passing argument 2 of 'SCardControl' makes pointer from integer without a cast dev_acr122.c:247: warning: passing argument 3 of 'SCardControl' makes integer from pointer without a cast dev_acr122.c:247: warning: passing argument 4 of 'SCardControl' makes pointer from integer without a cast dev_acr122.c:247: warning: passing argument 5 of 'SCardControl' from incompatible pointer type dev_acr122.c:247: error: too many arguments to function 'SCardControl' dev_acr122.c: In function 'dev_acr122_led_red': dev_acr122.c:267: error: 'SCARD_PROTOCOL_UNSET' undeclared (first use in this function) dev_acr122.c:269: warning: passing argument 2 of 'SCardControl' makes pointer from integer without a cast dev_acr122.c:269: warning: passing argument 3 of 'SCardControl' makes integer from pointer without a cast dev_acr122.c:269: warning: passing argument 4 of 'SCardControl' makes pointer from integer without a cast dev_acr122.c:269: warning: passing argument 5 of 'SCardControl' from incompatible pointer type dev_acr122.c:269: error: too many arguments to function 'SCardControl' make[2]: *** [libnfc_la-dev_acr122.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Target org.macports.build returned: shell command " cd "/mp/var/macports/build/_Users_rschmidt_macports_dports_comms_libnfc/work/libnfc-1.2.1" && nice -n 10 make all " returned error 2 Command output: libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_pn533.lo -MD -MP -MF .deps/libnfc_la-dev_pn533.Tpo -c dev_pn533.c -o libnfc_la-dev_pn533.o >/dev/null 2>&1 mv -f .deps/libnfc_la-dev_pn533.Tpo .deps/libnfc_la-dev_pn533.Plo /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_acr122.lo -MD -MP -MF .deps/libnfc_la-dev_acr122.Tpo -c -o libnfc_la-dev_acr122.lo `test -f 'dev_acr122.c' || echo './'`dev_acr122.c libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/mp/include -I/mp/include -I/System/Library/Frameworks/PCSC.framework/Headers -DHAVE_PCSC_LITE -O2 -std=c99 -MT libnfc_la-dev_acr122.lo -MD -MP -MF .deps/libnfc_la-dev_acr122.Tpo -c dev_acr122.c -fno-common -DPIC -o .libs/libnfc_la-dev_acr122.o dev_acr122.c: In function 'dev_acr122_transceive': dev_acr122.c:198: error: 'SCARD_PROTOCOL_UNSET' undeclared (first use in this function) dev_acr122.c:198: error: (Each undeclared identifier is reported only once dev_acr122.c:198: error: for each function it appears in.) dev_acr122.c:200: warning: passing argument 2 of 'SCardControl' makes pointer from integer without a cast dev_acr122.c:200: warning: passing argument 3 of 'SCardControl' makes integer from pointer without a cast dev_acr122.c:200: warning: passing argument 4 of 'SCardControl' makes pointer from integer without a cast dev_acr122.c:200: warning: passing argument 5 of 'SCardControl' from incompatible pointer type dev_acr122.c:200: error: too many arguments to function 'SCardControl' dev_acr122.c: In function 'dev_acr122_firmware': dev_acr122.c:245: error: 'SCARD_PROTOCOL_UNSET' undeclared (first use in this function) dev_acr122.c:247: warning: passing argument 2 of 'SCardControl' makes pointer from integer without a cast dev_acr122.c:247: warning: passing argument 3 of 'SCardControl' makes integer from pointer without a cast dev_acr122.c:247: warning: passing argument 4 of 'SCardControl' makes pointer from integer without a cast dev_acr122.c:247: warning: passing argument 5 of 'SCardControl' from incompatible pointer type dev_acr122.c:247: error: too many arguments to function 'SCardControl' dev_acr122.c: In function 'dev_acr122_led_red': dev_acr122.c:267: error: 'SCARD_PROTOCOL_UNSET' undeclared (first use in this function) dev_acr122.c:269: warning: passing argument 2 of 'SCardControl' makes pointer from integer without a cast dev_acr122.c:269: warning: passing argument 3 of 'SCardControl' makes integer from pointer without a cast dev_acr122.c:269: warning: passing argument 4 of 'SCardControl' makes pointer from integer without a cast dev_acr122.c:269: warning: passing argument 5 of 'SCardControl' from incompatible pointer type dev_acr122.c:269: error: too many arguments to function 'SCardControl' make[2]: *** [libnfc_la-dev_acr122.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Warning: the following items did not execute (for libnfc): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: Status 1 encountered during processing.