libopenkey
libopenkey copied to clipboard
Compilation fails due to a deprecated declaration
After running
autoreconf -vis
./configure --prefix=/usr/local
make
I got lots of errors like
../include/openkey.h:44:1: error: 'MifareTag' is deprecated [-Werror=deprecated-declarations]
extern int openkey_producer_card_create(openkey_context_t ctx, MifareTag tag, const char *card_name);
^
../include/openkey.h:45:1: error: 'MifareTag' is deprecated [-Werror=deprecated-declarations]
extern int openkey_producer_card_recreate(openkey_context_t ctx, MifareTag tag, const char *card_name, const char *old_id);
^
I had to add CFLAGS=-Wno-deprecated-declarations to configure to get libopenkey compiled:
autoreconf -vis
./configure --prefix=/usr/local CFLAGS=-Wno-deprecated-declarations
make