timmerk / nfc-tools

Automatically exported from code.google.com/p/nfc-tools
0 stars 0 forks source link

Fail to cross-compile libfreefare for ARM targets #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. autoreconf -vis
2. ./configure --host=x86 --target=arm-linux
3. make

The process fails during build of "examples/mifare-classic-format.c".

This is the current ouput:

>> make
make  all-recursive
make[1]: ingresso nella directory «.../nfc-tools/libfreefare»
Making all in libfreefare
make[2]: ingresso nella directory «.../nfc-tools/libfreefare/libfreefare»
  CC     freefare.lo
  CC     mifare_classic.lo
  CC     mifare_ultralight.lo
  CC     mad.lo
  CC     mifare_application.lo
  CC     tlv.lo
  CCLD   libfreefare.la
make[2]: uscita dalla directory «.../nfc-tools/libfreefare/libfreefare»
Making all in test
make[2]: ingresso nella directory «.../nfc-tools/libfreefare/test»
make[2]: Non c'è da fare nulla per «all»
make[2]: uscita dalla directory «.../nfc-tools/libfreefare/test»
Making all in examples
make[2]: ingresso nella directory «.../nfc-tools/libfreefare/examples»
  CC     mifare-classic-format.o
mifare-classic-format.c: In function ‘main’:
mifare-classic-format.c:144: warning: implicit declaration of function 
‘getopt’
mifare-classic-format.c:161: error: ‘optind’ undeclared (first use in this 
function)
mifare-classic-format.c:161: error: (Each undeclared identifier is reported 
only once
mifare-classic-format.c:161: error: for each function it appears in.)
mifare-classic-format.c:190: warning: ignoring return value of ‘fgets’, 
declared with attribute warn_unused_result
make[2]: *** [mifare-classic-format.o] Errore 1
make[2]: uscita dalla directory «.../nfc-tools/libfreefare/examples»
make[1]: *** [all-recursive] Errore 1
make[1]: uscita dalla directory «.../nfc-tools/libfreefare»
make: *** [all] Errore 2

Original issue reported on code.google.com by emanuele.bertoldi on 6 Jul 2010 at 3:21

GoogleCodeExporter commented 9 years ago
Hello,

That's not related to ARM nor cross-compiling, just a missing 
#include "config.h"

This is now fixed (r429)

Original comment by romu...@libnfc.org on 7 Jul 2010 at 7:26