Proxmark / homebrew-proxmark3

Homebrew Tap for OS X users
MIT License
57 stars 19 forks source link

Install issue #7

Closed ghost closed 7 years ago

ghost commented 7 years ago

Steps carried out:

brew tap proxmark/proxmark3

brew install proxmark3

result:

Last 15 lines from /Users/Lewis/Library/Logs/Homebrew/proxmark3/02.make:
                 from /usr/local/Cellar/arm-none-eabi-gcc/20160926/arm-none-eabi/include/stdio.h:61,
                 from ../include/hitagS.h:13,
                 from apps.h:19,
                 from start.c:13:
/usr/local/Cellar/arm-none-eabi-gcc/20160926/arm-none-eabi/include/sys/_stdint.h:48:20: error: conflicting types for 'uint32_t'
 typedef __uint32_t uint32_t ;
                    ^
In file included from ../include/usb_cmd.h:21:0,
                 from ../include/proxmark3.h:17,
                 from start.c:12:
./stdint.h:21:24: note: previous declaration of 'uint32_t' was here
 typedef unsigned int   uint32_t;
                        ^
make[1]: *** [obj/start.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/proxmark/homebrew-proxmark3/issues

Second attempt:

brew install --HEAD proxmark3

result:

Last 15 lines from /Users/Lewis/Library/Logs/Homebrew/proxmark3/02.make:
gcc -o lua   lua.o liblua.a -lm -lreadline 
gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_MACOSX    -c -o luac.o luac.c
gcc -o luac   luac.o liblua.a -lm -lreadline 
gcc -std=c99 -D_ISOC99_SOURCE -I. -I../include -I../common -I../tools -I../zlib -I/opt/local/include -I../liblua -Wall  -g -O4 -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED  -c -o obj/proxmark3.o proxmark3.c
gcc -std=c99 -D_ISOC99_SOURCE -I. -I../include -I../common -I../tools -I../zlib -I/opt/local/include -I../liblua -Wall  -g -O4 -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED  -c -o obj/uart.o uart.c
gcc -std=c99 -D_ISOC99_SOURCE -I. -I../include -I../common -I../tools -I../zlib -I/opt/local/include -I../liblua -Wall  -g -O4 -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED  -c -o obj/util.o util.c
util.c:44:27: error: use of undeclared identifier 'CMIN'
  Ntty.c_cc[VMIN]       = CMIN;    /* minimum time to wait      */
                          ^
util.c:45:27: error: use of undeclared identifier 'CTIME'
  Ntty.c_cc[VTIME]      = CTIME;   /* minimum characters to wait for */
                          ^
2 errors generated.
make[1]: *** [obj/util.o] Error 1
make: *** [client/all] Error 2

Latest version of OSX is installed and a fresh install of Hombrew was also installed.

Any ideas?

iceman1001 commented 7 years ago

Seems to be missing an include for time related code on the OSX platform.

Just curious, but does my fork also have your problem?

brew tap iceman1001/proxmark3 brew install --HEAD proxmark3

cflauac commented 7 years ago

Issue #5 is as same as this one, but iceman's fork works fine without any issue.

iceman1001 commented 7 years ago

Then this one is for @pwpiwi due to his recent changes in the timing functions.

pwpiwi commented 7 years ago

Its not really linked to the timer change. Please replace CMIN by 1 and CTIME by 0 and try again.

pwpiwi commented 7 years ago

Same issue reported in Proxmark/proxmark3