Closed c0decave closed 3 years ago
Please provide the info visible at the beginning of the compilation with compiler version, thanks.
~/proxmark3 $ git tag
v4.9237
cleanup and make client
~/proxmark3 $ make clean && make client
===================================================================
Platform name: Proxmark3 RDV4
PLATFORM: PM3RDV4
PLATFORM_SIZE: 512
Platform extras: No extra selected
Included options: SMARTCARD FLASH -DRDV4 LF HITAG EM4x50 EM4x70 ISO15693 LEGICRF ISO14443b ISO14443a ICLASS FELICA NFCBARCODE HFSNIFF HFPLOT
Standalone mode: HF_MSDSAL
===================================================================
[*] MAKE client/clean
[*] MAKE bootrom/clean
[*] MAKE fpga_compress/clean
[*] MAKE armsrc/clean
[*] MAKE recovery/clean
[*] MAKE mfkey/clean
[*] MAKE nonce2key/clean
[*] MAKE mf_nonce_brute/clean
===================================================================
Platform name: Proxmark3 RDV4
PLATFORM: PM3RDV4
PLATFORM_SIZE: 512
Platform extras: No extra selected
Included options: SMARTCARD FLASH -DRDV4 LF HITAG EM4x50 EM4x70 ISO15693 LEGICRF ISO14443b ISO14443a ICLASS FELICA NFCBARCODE HFSNIFF HFPLOT
Standalone mode: HF_MSDSAL
===================================================================
[*] MAKE client/all
clang
clang --version
clang version 12.0.0
Target: aarch64-unknown-linux-android24
Thread model: posix
InstalledDir: /data/data/com.termux/files/usr/bin
Thank you, I could reproduce on host with clang 12
should be fixed. please confirm. thanks again for your bugreport.
Describe the bug Compiling the proxmark3 repository ends with an error message:
To Reproduce Steps to reproduce the behavior:
Expected behavior Compiling through without error
Phone:
Additional context My workaround:
In src/cmdlf.c around line 267. I guess that the version of clang or cc in termux is older and simply does not like the former construction although it is defined const properbly the variable LF_CMDREAD_EXTRA_SYMBOLS is troubleing it. As LF_CMDREAD... is defined as 4, i simply replaced the payload_header_size with the result of 12 + (3*4).
Now proxmark compiles fine and is useable on my phone.