photomattmills / proxmark3

Automatically exported from code.google.com/p/proxmark3
0 stars 0 forks source link

Compilation issues under Mac OS X/Linux #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Trying to compile the current version (r486) on a Mac system. 
2. Trying to compile with arm-eabi-gcc >=4.6

What is the expected output? What do you see instead?
Expected output is a successful compilation.

Instead, on Mac:

util.c:45:19: error: conio.h: No such file or directory
util.c: In function ‘ukbhit’:
util.c:47: warning: implicit declaration of function ‘kbhit’
make[1]: *** [obj/util.o] Error 1
make: *** [client/all] Error 2

Also, on Mac or Linux with arm-eabi-gcc >= 4.6:

appmain.c: In function 'MeasureAntennaTuning':
appmain.c:189:9: error: variable 'ptr' set but not used 
[-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make[1]: *** [obj/appmain.o] Error 1
make: *** [armsrc/all] Error 2

What version of the product are you using? On what operating system?
r486 on Mac OS X 10.6.6 and Ubuntu 11.04

Please provide any additional information below.

"ukbhit" error can be solved by adding "__APPLE__" to the first #ifdef in 
/client/util.c 

"variable ptr" error can be solved by compiling using arm-eabi-gcc version 4.5 
(r31).

However, on Mac OS X, even after these changes and a successful build, 
execution of any command within ./proxmark3 results in a segmentation fault. 

Original issue reported on code.google.com by borjabur...@gmail.com on 15 Jul 2011 at 1:29

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
What errors are you experiencing on Linux?

r486 on Linux seems to be working fine on my end (Ubuntu 11.04).

Original comment by borjabur...@gmail.com on 19 Jul 2011 at 4:47

GoogleCodeExporter commented 8 years ago
A (dirty) workaround can be just to simply remove -Werror from 
common/Makefile.common, it then compiles - if anyone needs that ;)

Original comment by luk...@backstep.net on 2 Oct 2011 at 8:47

GoogleCodeExporter commented 8 years ago
I have the same problem. Removing -Werror worked for me too

Original comment by thegreys...@gmail.com on 18 May 2012 at 9:23

GoogleCodeExporter commented 8 years ago
Mac OS X ukbhit error was fixed in r493.

Original comment by dn3...@gmail.com on 18 Jun 2012 at 2:54

GoogleCodeExporter commented 8 years ago

Original comment by verdult on 8 Mar 2013 at 8:44