RfidResearchGroup / proxmark3

Iceman Fork - Proxmark3
http://www.icedev.se
GNU General Public License v3.0
3.89k stars 1.03k forks source link

Linker fails on mifarecmd.c #538

Closed Gator96100 closed 4 years ago

Gator96100 commented 4 years ago

Describe the bug Linker fails on mifarecmd.c, but only when PLATFORM=PM3OTHER is set. Happens on Linux and Windows using ProxSpace.

[=] LD obj/fullimage.stage1.elf
c:/users/julius/downloads/proxspace-64/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: obj/mifarecmd.o: in function `MifareChkKeys_file':
mifarecmd.c:(.text.MifareChkKeys_file+0x10): undefined reference to `rdv40_spiffs_lazy_mount'
c:/users/julius/downloads/proxspace-64/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: mifarecmd.c:(.text.MifareChkKeys_file+0x1c): undefined reference to `size_in_spiffs'
c:/users/julius/downloads/proxspace-64/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: mifarecmd.c:(.text.MifareChkKeys_file+0x44): undefined reference to `rdv40_spiffs_read_as_filetype'
c:/users/julius/downloads/proxspace-64/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: mifarecmd.c:(.text.MifareChkKeys_file+0x4c): undefined reference to `rdv40_spiffs_lazy_unmount'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:179: obj/fullimage.stage1.elf] Error 1
make: *** [Makefile:95: armsrc/all] Error 2

To Reproduce

  1. clone repository
  2. set PLATFORM=PM3OTHER
  3. make clean && make all

Expected behavior Compilation should succeed

Desktop:

iceman1001 commented 4 years ago

fix https://github.com/RfidResearchGroup/proxmark3/commit/688fb78235b59f18a18b12a3dda8d50b6dc16cf9