Proxmark / proxmark3

Proxmark 3
http://www.proxmark.org/
GNU General Public License v2.0
3.14k stars 905 forks source link

Compilation problem #882

Closed lorenzo-dev1 closed 4 years ago

lorenzo-dev1 commented 4 years ago

Hi, I'm trying to compile the source code on ubuntu 16.04, I followed all the steps into the wiki but the makefile fails with this error. iso15693.c: In function 'SetTag15693Uid': iso15693.c:1695:2: error: missing braces around initializer [-Werror=missing-braces] uint8_t cmd[4][9] = {0x00}; ^ iso15693.c:1695:2: error: (near initialization for 'cmd[0]') [-Werror=missing-braces] cc1: all warnings being treated as errors The executable in proxmark3/client seems to work though. Any idea of why?

pwpiwi commented 4 years ago

Which compiler version do you use? Please run arm-none-eabi-gcc --version

lorenzo-dev1 commented 4 years ago

This is the output: arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease) Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

pwpiwi commented 4 years ago

Hmmm, prerelease anno 2015. I suggest that you upgrade to a newer version.

lorenzo-dev1 commented 4 years ago

I tried to update it but I couldn't do it, it still gave me errors, but I managed to install correctly the Iceman fork. Thanks for the help anyway, really appreciated

lorenzo-dev1 commented 4 years ago

I tried also with this fix and It solves my problem! Thanks!