Comments (11)
@tcprst have you ever encountered this?
from homebrew-proxmark3.
I have not seen this, It appears to be an Intel Mac. The C compiler must be returning something strange for ULONG_MAX
. I have an Intel Mac I can try this on later, but it's on a newer version now than in the reported issue. @chrismcband are you still seeing this issue?
from homebrew-proxmark3.
@tcprst yes I still have this issue, from latest install attempt:
==> Downloading https://github.com/RfidResearchGroup/proxmark3/archive/v4.14434.tar.gz
==> Downloading from https://codeload.github.com/RfidResearchGroup/proxmark3/tar.gz/v4.14434
# # # -#O=-
==> Installing proxmark3 from rfidresearchgroup/proxmark3
==> make clean
==> make all BREW_PREFIX=/usr/local PLATFORM=PM3RDV4
Last 15 lines from /Users/chris/Library/Logs/Homebrew/proxmark3/02.make:
Lua SWIG: wrapper found
compiler version: Apple clang version 12.0.5 (clang-1205.0.22.11)
===================================================================
[-] CC src/mifare/aiddesfire.c
[-] CC src/aidsearch.c
[-] CC src/cmdanalyse.c
[-] CC src/cmdcrc.c
In file included from src/cmdcrc.c:25:
In file included from ./deps/reveng/reveng.h:30:
./deps/reveng/config.h:95:2: error: Cannot determine automatically REVENG PRESETS Macros for your platform, you need to set them manually
#error Cannot determine automatically REVENG PRESETS Macros for your platform, you need to set them manually
^
1 error generated.
make[1]: *** [obj/cmdcrc.o] Error 1
make: *** [client/all] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/rfidresearchgroup/homebrew-proxmark3/issues
from homebrew-proxmark3.
can you make a exe where you print the ULONG_MAX on your system?
from homebrew-proxmark3.
@iceman1001 not too sure if I did this right, but looked it up online. Heres the program:
#include <limits.h>
#include <stdio.h>
int main() {
unsigned long my_long = ULONG_MAX;
int my_int = (int) my_long;
printf("%lu\n", my_long);
printf("%i\n", my_int);
}
Which outputs:
18446744073709551615
-1
from homebrew-proxmark3.
Looks like a 64b system 0xFFFFFFFF FFFFFFFF...
from homebrew-proxmark3.
could you compile the following and show output ?
#include <limits.h>
#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)
#pragma message "ULONG_MAX: " STR(ULONG_MAX)
#pragma message "UINT64_MAX: " STR(UINT64_MAX)
int main() { return 0; }
ftr on a 64b it gives equality of ULONG_MAX and UINT64_MAX as such:
main.c:6:9: note: ‘#pragma message: ULONG_MAX: (0x7fffffffffffffffL * 2UL + 1UL)’
main.c:7:9: note: ‘#pragma message: UINT64_MAX: (18446744073709551615UL)’
from homebrew-proxmark3.
@doegox not sure this is right, using g++ ulongmax.c -o ulongmax
:
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
ulongmax.c:5:9: warning: ULONG_MAX: ULONG_MAX [-W#pragma-messages]
#pragma message "ULONG_MAX: " STR(ULONG_MAX)
^
ulongmax.c:6:9: warning: UINT64_MAX: UINT64_MAX [-W#pragma-messages]
#pragma message "UINT64_MAX: " STR(UINT64_MAX)
^
2 warnings generated.
gcc ulongmax.c -o ulongmax
get same without the 1st warning:
ulongmax.c:5:9: warning: ULONG_MAX: ULONG_MAX [-W#pragma-messages]
#pragma message "ULONG_MAX: " STR(ULONG_MAX)
^
ulongmax.c:6:9: warning: UINT64_MAX: UINT64_MAX [-W#pragma-messages]
#pragma message "UINT64_MAX: " STR(UINT64_MAX)
^
2 warnings generated.
And running the executable, no output.
Should I be compiling with something else?
from homebrew-proxmark3.
That's weird. Yes gcc
is fine, which is actually aliased to clang
on MacOSX, a plain lie... :)
Anyway, it sounds like the macros are not defined, that's the strange part...
On my linux it's defined in /usr/include/limits.h and /usr/include/newlib/limits.h
Could you check on your system where ULONG_MAX could be defined ?
from homebrew-proxmark3.
@doegox Thanks, you pointed me in the right direction. Looking around for a limits.h I found this file located in my /usr/local/includes/limits.h, this file mentioned some things like gearman. I must have installed this years ago (vaguely remember compiling a PHP install from source a long time ago and adding some pecl extensions).
Anyway I ran brew doctor
and saw I had a lot of unexpected header files and went about removing all the files it mentioned. After brew doctor
said I was ready to brew I tried installing proxmark3 and this time it worked.
It was a unique case with my machine, sorry and thanks for your help. I'll close this issue.
from homebrew-proxmark3.
No problem, this can happen
from homebrew-proxmark3.
Related Issues (20)
- Firmware path in README appears to be incorrect HOT 5
- Install phase misses platform define HOT 2
- BigBuf.h:42:1: error: target attribute is not supported on this machine HOT 2
- Brew install --with-blueshark not work HOT 1
- brew fails to compile current version firmware HOT 2
- fatal error: 'QApplication' file not found HOT 7
- No rule to make target fpga_lf.bit', needed by fpga_version_info.c' HOT 1
- Tried to install with " --HEAD --with-blueshark proxmark3" options fails HOT 2
- icopy-x , Capabilities structure version sent by Proxmark3 is not the same as the one used by the client! HOT 2
- Probably use fully-qualified formula name to avoid name collision?
- --with-generic and --HEAD fails to install. HOT 2
- ICopy X support HOT 1
- rosetta error during installation HOT 1
- Unable to install latest on Mac OSX v4.18218 HOT 14
- Unable to install on Apple Silicon Mac HOT 7
- Consistent Error:ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) HOT 2
- Release v4.18340 is not reachable HOT 1
- Impossible to upgrade from version 4.18218 to 4.18341 (macOS Sonoma 14.4 - 23E214) HOT 5
- Unable to update on Intel Mac (14.4.1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-proxmark3.