marcus905 / libnfc

Automatically exported from code.google.com/p/libnfc
GNU Lesser General Public License v3.0
0 stars 0 forks source link

acr122_pcsc compilation failed on Mac OSX 10.8.4 #254

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure --with-drivers=acr122_pcsc
2. make

What is the expected output? What do you see instead?
make  all-recursive
Making all in libnfc
Making all in chips
make[3]: Nothing to be done for `all'.
Making all in buses
  CCLD   libnfcbuses.la
ar: no archive members specified
usage:  ar -d [-TLsv] archive file ...
    ar -m [-TLsv] archive file ...
    ar -m [-abiTLsv] position archive file ...
    ar -p [-TLsv] archive [file ...]
    ar -q [-cTLsv] archive file ...
    ar -r [-cuTLsv] archive file ...
    ar -r [-abciuTLsv] position archive file ...
    ar -t [-TLsv] archive [file ...]
    ar -x [-ouTLsv] archive [file ...]
make[3]: *** [libnfcbuses.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

What version of the product are you using? On what operating system?
libnfc 1.7.0-rc7 and Mac OSX 10.8 and brew

Please provide any additional information below.
The compilation with default options works :
./configure
make

Original issue reported on code.google.com by marc.bu...@gmail.com on 1 Jul 2013 at 12:00

GoogleCodeExporter commented 9 years ago

Original comment by yob...@gmail.com on 1 Jul 2013 at 8:03

GoogleCodeExporter commented 9 years ago
I can reproduce the bug.

I guess it is because with this configuration the libnfcbuses.la contains 
nothing.

Selected drivers:
   acr122_pcsc...... yes
   acr122_usb....... no
   acr122s.......... no
   arygon........... no
   pn53x_usb........ no
   pn532_uart....... no
   pn532_spi.......  no
   pn532_i2c........ no

Maybe libnfcbuses.la should contain at least a dummy function?

Proposed patch attached.

Original comment by ludovic....@gmail.com on 1 Jul 2013 at 6:54

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Fixed by Ludovic in rc89532fa192caa6be83e6c6a2ea155aa7daa79a0

Original comment by romu...@libnfc.org on 3 Sep 2013 at 2:17