iceman1001 / homebrew-proxmark3

Homebrew tap containing only Proxmark3 software/firmware, for now
MIT License
10 stars 5 forks source link

Compiling failed on OS X #2

Closed zhovner closed 7 years ago

zhovner commented 7 years ago

Relase builds successfully.

==> Installing proxmark3 from iceman1001/proxmark3
==> Installing dependencies for iceman1001/proxmark3/proxmark3: libusb
==> Installing iceman1001/proxmark3/proxmark3 dependency: libusb
==> Downloading https://homebrew.bintray.com/bottles/libusb-1.0.21.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libusb-1.0.21.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/libusb/1.0.21: 29 files, 510.5K
==> Installing iceman1001/proxmark3/proxmark3 
==> Downloading https://github.com/iceman1001/proxmark3/archive/v1.6.7.tar.gz
==> Downloading from https://codeload.github.com/iceman1001/proxmark3/tar.gz/v1.6.7
######################################################################## 100.0%
==> make all clean
==> make
==> Install success!  Only proxmark3-flasher (modern firmware) is available.
==> The latest bootloader and firmware binaries are ready and waiting in the current homebrew Cellar within share/firmware.
🍺  /usr/local/Cellar/proxmark3/1.6.7: 11 files, 1M, built in 1 minute 15 seconds​

But compiling from repo failed

brew install --HEAD proxmark3
==> Installing proxmark3 from iceman1001/proxmark3
==> Cloning https://github.com/iceman1001/proxmark3.git
Updating /Users/a/Library/Caches/Homebrew/proxmark3--git
==> Checking out branch master
==> make all clean
Last 15 lines from /Users/a/Library/Logs/Homebrew/proxmark3/01.make:
arm-none-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -Wunused -std=c99 -DWITH_ISO14443a_StandAlone -DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH_LEGICRF -DWITH_HITAG -DWITH_CRC -DON_DEVICE -DWITH_HFSNOOP -fno-strict-aliasing -ffunction-sections -fdata-sections -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED -I../zlib -I. -DHAS_512_FLASH -Os -mthumb-interwork -o obj/fpgaloader.o fpgaloader.c 
arm-none-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -Wunused -std=c99 -DWITH_ISO14443a_StandAlone -DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH_LEGICRF -DWITH_HITAG -DWITH_CRC -DON_DEVICE -DWITH_HFSNOOP -fno-strict-aliasing -ffunction-sections -fdata-sections -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED -I../zlib -I. -DHAS_512_FLASH -Os -mthumb-interwork -o obj/legicrf.o legicrf.c 
arm-none-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -Wunused -std=c99 -DWITH_ISO14443a_StandAlone -DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH_LEGICRF -DWITH_HITAG -DWITH_CRC -DON_DEVICE -DWITH_HFSNOOP -fno-strict-aliasing -ffunction-sections -fdata-sections -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED -I../zlib -I. -DHAS_512_FLASH -Os -mthumb-interwork -o obj/epa.o epa.c 
arm-none-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -Wunused -std=c99 -DWITH_ISO14443a_StandAlone -DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH_LEGICRF -DWITH_HITAG -DWITH_CRC -DON_DEVICE -DWITH_HFSNOOP -fno-strict-aliasing -ffunction-sections -fdata-sections -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED -I../zlib -I. -DHAS_512_FLASH -Os -mthumb-interwork -o obj/iso14443a.o iso14443a.c 
arm-none-eabi-gcc -c -I../include -I../common -Wall -Werror -pedantic -Wunused -std=c99 -DWITH_ISO14443a_StandAlone -DWITH_LF -DWITH_ISO15693 -DWITH_ISO14443a -DWITH_ISO14443b -DWITH_ICLASS -DWITH_LEGICRF -DWITH_HITAG -DWITH_CRC -DON_DEVICE -DWITH_HFSNOOP -fno-strict-aliasing -ffunction-sections -fdata-sections -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED -I../zlib -I. -DHAS_512_FLASH -Os -mthumb-interwork -o obj/mifareutil.o mifareutil.c 
mifareutil.c: In function 'mifare_ultra_auth':
mifareutil.c:280:2: error: implicit declaration of function 'tdes_2key_dec' [-Werror=implicit-function-declaration]
  tdes_2key_dec(random_b, enc_random_b, sizeof(random_b), key, IV );
  ^
mifareutil.c:300:2: error: implicit declaration of function 'tdes_2key_enc' [-Werror=implicit-function-declaration]
  tdes_2key_enc(rnd_ab, rnd_ab, sizeof(rnd_ab), key, enc_random_b);
  ^
cc1: all warnings being treated as errors
make[1]: *** [obj/mifareutil.o] Error 1
make: *** [armsrc/all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/iceman1001/homebrew-proxmark3/issues
iceman1001 commented 7 years ago

This is because of me commiting some bad header changes today, its not a homebrew issue. I guess I get it sorted today