nfc-tools / mfoc

Mifare Classic Offline Cracker
GNU General Public License v2.0
1.22k stars 269 forks source link

Error happens during mfoc make #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. export libnfc_CFLAGS="-I /usr/local/lib/libnfc/include"
2. export libnfc_LIBS="-L /usr/local/lib/libnfc/lib"
3. ./configure --prefix=/usr/local/lib/mfoc
4. make

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

Libnfc: 1.7.1
mfoc: 0.10.7
Ubuntu: 14.04LTS

Please provide any additional information below.

tony@ubuntu:/usr/local/src/mfoc-0.10.7$ make
make  all-recursive
make[1]: Entering directory `/usr/local/src/mfoc-0.10.7'
Making all in src
make[2]: Entering directory `/usr/local/src/mfoc-0.10.7/src'
  CCLD   mfoc
mfoc.o: In function `mf_init':
/usr/local/src/mfoc-0.10.7/src/mfoc.c:584: undefined reference to `nfc_init'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:589: undefined reference to `nfc_open'
mfoc.o: In function `mf_configure':
/usr/local/src/mfoc-0.10.7/src/mfoc.c:598: undefined reference to 
`nfc_initiator_init'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:603: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:608: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:613: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:617: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:622: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:604: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:599: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:618: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:614: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:609: undefined reference to `nfc_perror'
mfoc.o: In function `mf_select_tag':
/usr/local/src/mfoc-0.10.7/src/mfoc.c:635: undefined reference to 
`nfc_initiator_select_passive_target'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:637: undefined reference to `nfc_close'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:638: undefined reference to `nfc_exit'
mfoc.o: In function `mf_anticollision':
/usr/local/src/mfoc-0.10.7/src/mfoc.c:681: undefined reference to 
`nfc_initiator_select_passive_target'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:682: undefined reference to `nfc_perror'
mfoc.o: In function `mf_enhanced_auth':
/usr/local/src/mfoc-0.10.7/src/mfoc.c:717: undefined reference to 
`iso14443a_crc_append'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:722: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:729: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:734: undefined reference to 
`nfc_initiator_transceive_bytes'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:739: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:776: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:785: undefined reference to 
`nfc_initiator_transceive_bits'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:864: undefined reference to 
`iso14443a_crc_append'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:872: undefined reference to 
`nfc_initiator_transceive_bits'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:878: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:883: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:814: undefined reference to 
`nfc_initiator_transceive_bits'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:842: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:843: undefined reference to 
`nfc_initiator_transceive_bits'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:777: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:740: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:730: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:723: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:884: undefined reference to `nfc_perror'
mfoc.o:/usr/local/src/mfoc-0.10.7/src/mfoc.c:879: more undefined references to 
`nfc_perror' follow
mfoc.o: In function `main':
/usr/local/src/mfoc-0.10.7/src/mfoc.c:178: undefined reference to 
`nfc_initiator_init'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:183: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:188: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:193: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:197: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:208: undefined reference to 
`nfc_initiator_select_passive_target'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:179: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:553: undefined reference to `nfc_close'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:554: undefined reference to `nfc_exit'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:184: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:189: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:194: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:198: undefined reference to `nfc_perror'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:513: undefined reference to `nfc_perror'
mfoc.o:/usr/local/src/mfoc-0.10.7/src/mfoc.c:209: more undefined references to 
`nfc_perror' follow
mfoc.o: In function `main':
/usr/local/src/mfoc-0.10.7/src/mfoc.c:545: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:546: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:549: undefined reference to `nfc_close'
/usr/local/src/mfoc-0.10.7/src/mfoc.c:550: undefined reference to `nfc_exit'
mifare.o: In function `nfc_initiator_mifare_cmd':
/usr/local/src/mfoc-0.10.7/src/mifare.c:123: undefined reference to 
`nfc_device_set_property_bool'
/usr/local/src/mfoc-0.10.7/src/mifare.c:127: undefined reference to 
`nfc_initiator_transceive_bytes'
nfc-utils.o: In function `print_nfc_target':
/usr/local/src/mfoc-0.10.7/src/nfc-utils.c:125: undefined reference to 
`str_nfc_target'
/usr/local/src/mfoc-0.10.7/src/nfc-utils.c:127: undefined reference to 
`nfc_free'
collect2: error: ld returned 1 exit status
make[2]: *** [mfoc] Error 1
make[2]: Leaving directory `/usr/local/src/mfoc-0.10.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mfoc-0.10.7'
make: *** [all] Error 2

Original issue reported on code.google.com by tony.3.4...@gmail.com on 13 Jan 2015 at 9:27

GoogleCodeExporter commented 9 years ago
Get it work !
Before make, vim src/Makefile, add "/usr/local/lib/libnfc/lib" behind the "LIBS 
="

Original comment by tony.3.4...@gmail.com on 18 Jan 2015 at 1:17