Problem with warning: gcrypt.h '...' is deprecated messages

borneoa borneo.antonio at gmail.com
Mon Sep 5 08:26:05 CEST 2011


Hi Werner,


Werner Koch wrote:
> 
> On Wed, 13 Jul 2011 18:29, steve at stephen-fisher.com said:
> 
>> /usr/local/include/gcrypt.h:1656: warning: 'gcry_ac_id_t' is deprecated
>>
>> The release announcement for 1.5.0 says that using gcry_ac_ functions 
>> will produce compile time warnings.  We are not using those functions, 
> 
> That is a bug in some versions of gcc.
> 
I have checked several version of gcc, but till now I cannot find a version
that does not complain.
Could you please provide me, as reference, the version of gcc you are using?



>> with gcrypt.h included has the same problem.  Defining " 
>> _GCRYPT_IN_LIBGCRYPT" to "1" in Wireshark sources before the gcrypt.h 
>> inclusion works around this problem in my local sources.
> 
> Please don't do this.
> 
Agree!
But if I define only GCRYPT_NO_DEPRECATED, I still get 6 warnings.

Below my test. Same result with many gcc from 4.4.5 to 4.6.0:
    $ echo '#include "libgcrypt-1.5.0/src/gcrypt.h"' > check-gcrypt.c
    $ gcc -c check-gcrypt.c
get 83 warnings
    $ gcc -D GCRYPT_NO_DEPRECATED -c check-gcrypt.c
    In file included from check-gcrypt.c:2:
    libgcrypt-1.5.0/src/gcrypt.h:1336: warning: ‘gcry_ac_io_mode_t’ is
deprecated
    libgcrypt-1.5.0/src/gcrypt.h:1337: warning: ‘gcry_ac_io_type_t’ is
deprecated
    libgcrypt-1.5.0/src/gcrypt.h:1344: warning: ‘gcry_ac_data_read_cb_t’ is
deprecated
    libgcrypt-1.5.0/src/gcrypt.h:1358: warning: ‘gcry_ac_data_write_cb_t’ is
deprecated
    libgcrypt-1.5.0/src/gcrypt.h:1393: warning: ‘gcry_md_algo_t’ is
deprecated
    libgcrypt-1.5.0/src/gcrypt.h:1401: warning: ‘gcry_md_algo_t’ is
deprecated

Best Regards,
Antonio Borneo

-- 
View this message in context: http://old.nabble.com/Problem-with-warning%3A-gcrypt.h-%27...%27-is-deprecated-messages-tp32055337p32398900.html
Sent from the GnuPG - Libgcrypt - Dev mailing list archive at Nabble.com.




More information about the Gcrypt-devel mailing list