libopenkey icon indicating copy to clipboard operation
libopenkey copied to clipboard

Compilation fails due to a deprecated declaration

Open Taki-B opened this issue 8 years ago • 0 comments

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

Taki-B avatar Jun 12 '16 19:06 Taki-B