On 16/09/10 22:47, Hanspeter Niederstrasser wrote:
>
> On 9/16/10 4:16 PM, Alexander Hansen wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 9/16/10 3:47 PM, Jonas Groß wrote:
>>> But actually i wanted to run my touchatag reader with libnfc. But
>>> installing it failed with:
>>>
>>> configure: WARNING: Using darwin PCSC Framework
>>> In file included from ../drivers/pn53x_usb.h:24,
>>>                    from ../drivers.h:35,
>>>                    from arygon.c:32:
>>> /sw/include/usb.h:266: error: parse error before 'u_int32_t'
>>> /sw/include/usb.h:266: warning: no semicolon at end of struct or union
>>> /sw/include/usb.h:269: error: parse error before '}' token
>>> make[4]: *** [libnfcdrivers_la-arygon.lo] Error 1
>>> make[3]: *** [all-recursive] Error 1
>>> make[2]: *** [all-recursive] Error 1
>>> make[1]: *** [all-recursive] Error 1
>>> make: *** [all] Error 2
>>>
>>
>> Fink's libnfc works for me (10.6/i386).  I show more lines of output

Does it really work, or just build? I am asking, because this package 
does not only not build on 10.4 (I get the same error as Jonas, and if I 
work around this, it crashes a little later), but it is has some weird 
dependencies:

The package description has
BuildDepends: fink (>= 0.28), pcsc-lite-shlibs (>= 1.6.4)

This should probably be
BuildDepends: fink (>= 0.28), pcsc-lite (>= 1.6.4)
Depends: pcsc-lite-shlibs (>= 1.6.4)

The package pcsc-lite-shlibs is weird, too: It installs the compile-time 
symlink %p/lib/libpcsclite.dylib. Since this is illegal, it declares it 
as private shlib, so that the validator does not complain...

As it stands, you can build libnfc without pcsc-lite being installed, 
and whether it is installed or not, libnfc links with the system PCSC 
framework instead of Fink's libpcsclite. And that framework is rather 
different between 10.4 and 10.5. On 10.4, some macros are missing that 
libnfc uses, for example SCARD_PROTOCOL_UNSET.

>> between the end of configuration and compiling
>> libnfcdrivers_la-arygon.lo than what you have above:
>>
>> ...
>> 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 debug flag... no
>> checking for serial autoprobe flag... no
>> checking for pcsc-lite support... yes
>> checking for libusb support... yes
>> checking for documentation request... no
>> checking pkg-config is at least version 0.9.0... yes
>> checking for LIBUSB... yes
>> configure: WARNING: Using darwin PCSC Framework

This line shows that Fink's pcsc-lite is not used.

>> configure: creating ./config.status
>> config.status: creating Makefile
>> config.status: creating src/include/Makefile
>> config.status: creating src/include/nfc/Makefile
>> config.status: creating src/lib/chips/Makefile
>> config.status: creating src/lib/buses/Makefile
>> config.status: creating src/lib/drivers/Makefile
>> config.status: creating src/lib/Makefile
>> config.status: creating src/examples/Makefile
>> config.status: creating src/Makefile
>> config.status: creating cmake_modules/Makefile
>> config.status: creating libnfc.pc
>> config.status: creating Doxyfile
>> config.status: creating config.h
>> config.status: executing depfiles commands
>> config.status: executing libtool commands
>> make
>> make  all-recursive
>> Making all in src
>> Making all in lib
>> Making all in chips
>>     CC     libnfcchips_la-pn53x.lo
>>     CCLD   libnfcchips.la
>
> Also builds OK on 10.5/i386 _AFTER_ I installed pkgconfig, libusb, and
> libusb-shlibs (libusb1 did not help).

-- 
Martin



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to