Subject: | Crypt::GCrypt 1.26 incompatibility with libgcrypt 1.6.1 |
Date: | Mon, 14 Jul 2014 04:56:55 -0500 |
To: | bug-Crypt-GCrypt [...] rt.cpan.org |
From: | Ryan Schmidt <ryandesign [...] macports.org> |
Hello, I'm a developer with the MacPorts package management system, trying to update our libgcrypt package from 1.5.3 to 1.6.1. After doing so, Crypt::GCrypt 1.26 fails to build, as shown at the end of this email.
The perl version is:
$ perl5.16 -v
This is perl 5, version 16, subversion 3 (v5.16.3) built for darwin-thread-multi-2level
Copyright 1987-2012, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
The OS X version is:
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.9.4
BuildVersion: 13E28
The errors in the log are:
/opt/local/bin/perl5.16 /opt/local/lib/perl5/5.16.3/ExtUtils/xsubpp -typemap /opt/local/lib/perl5/5.16.3/ExtUtils/typemap -typemap typemap GCrypt.xs > GCrypt.xsc && mv GCrypt.xsc GCrypt.c
/usr/bin/clang -c -I/opt/local/include -funsigned-char -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fno-common -DPERL_DARWIN -I/opt/local/include -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fno-strict-aliasing -fstack-protector -I/opt/local/include -arch x86_64 -arch i386 -O3 -DVERSION=\"1.26\" -DXS_VERSION=\"1.26\" "-I/opt/local/lib/perl5/5.16.3/darwin-thread-multi-2level/CORE" GCrypt.c
In file included from GCrypt.xs:17:
./ppport.h:227:11: warning: 'PERL_UNUSED_DECL' macro redefined
# define PERL_UNUSED_DECL
^
/opt/local/lib/perl5/5.16.3/darwin-thread-multi-2level/CORE/perl.h:328:13: note: previous definition is here
# define PERL_UNUSED_DECL __attribute__unused__
^
GCrypt.xs:59:5: error: unknown type name 'gcry_ac_handle_t'; did you mean 'gcry_mac_hd_t'?
gcry_ac_handle_t h_ac;
^~~~~~~~~~~~~~~~
gcry_mac_hd_t
/opt/local/include/gcrypt.h:1304:33: note: 'gcry_mac_hd_t' declared here
typedef struct gcry_mac_handle *gcry_mac_hd_t;
^
GCrypt.xs:61:5: error: unknown type name 'gcry_ac_key_t'; did you mean 'gcry_mac_hd_t'?
gcry_ac_key_t key_ac;
^~~~~~~~~~~~~
gcry_mac_hd_t
/opt/local/include/gcrypt.h:1304:33: note: 'gcry_mac_hd_t' declared here
typedef struct gcry_mac_handle *gcry_mac_hd_t;
^
GCrypt.xs:121:5: warning: 'gcry_thread_cbs' is deprecated [-Wdeprecated-declarations]
GCRY_THREAD_OPTION_PTHREAD_IMPL;
^
/opt/local/include/gcrypt.h:227:17: note: expanded from macro 'GCRY_THREAD_OPTION_PTHREAD_IMPL'
static struct gcry_thread_cbs gcry_threads_pthread = { \
^
/opt/local/include/gcrypt.h:213:8: note: 'gcry_thread_cbs' declared here
struct gcry_thread_cbs
^
GCrypt.xs:206:9: error: unknown type name 'gcry_ac_id_t'; did you mean 'gcry_mac_hd_t'?
gcry_ac_id_t ac_algo;
^~~~~~~~~~~~
gcry_mac_hd_t
/opt/local/include/gcrypt.h:1304:33: note: 'gcry_mac_hd_t' declared here
typedef struct gcry_mac_handle *gcry_mac_hd_t;
^
GCrypt.xs:337:27: warning: implicit declaration of function 'gcry_ac_name_to_id' is invalid in C99 [-Wimplicit-function-declaration]
RETVAL->err = gcry_ac_name_to_id(algo_s, &ac_algo);
^
GCrypt.xs:342:27: warning: implicit declaration of function 'gcry_ac_open' is invalid in C99 [-Wimplicit-function-declaration]
RETVAL->err = gcry_ac_open(&RETVAL->h_ac, ac_algo, ac_flags);
^
GCrypt.xs:541:9: error: use of undeclared identifier 'gcry_ac_data_t'
gcry_ac_data_t outdata;
^
GCrypt.xs:597:9: error: use of undeclared identifier 'gcry_ac_key_type_t'
gcry_ac_key_type_t keytype;
^
GCrypt.xs:598:9: error: use of undeclared identifier 'gcry_ac_data_t'
gcry_ac_data_t keydata;
^
GCrypt.xs:623:13: error: use of undeclared identifier 'keytype'
keytype = -1;
^
GCrypt.xs:625:44: error: use of undeclared identifier 'keytype'
if (strcmp(s, "private") == 0) keytype = GCRY_AC_KEY_SECRET;
^
GCrypt.xs:625:54: error: use of undeclared identifier 'GCRY_AC_KEY_SECRET'
if (strcmp(s, "private") == 0) keytype = GCRY_AC_KEY_SECRET;
^
GCrypt.xs:626:43: error: use of undeclared identifier 'keytype'
if (strcmp(s, "public") == 0) keytype = GCRY_AC_KEY_PUBLIC;
^
GCrypt.xs:626:53: error: use of undeclared identifier 'GCRY_AC_KEY_PUBLIC'
if (strcmp(s, "public") == 0) keytype = GCRY_AC_KEY_PUBLIC;
^
GCrypt.xs:627:17: error: use of undeclared identifier 'keytype'
if (keytype == -1)
^
GCrypt.xs:633:24: warning: implicit declaration of function 'gcry_ac_data_new' is invalid in C99 [-Wimplicit-function-declaration]
gcr->err = gcry_ac_data_new(&keydata);
^
GCrypt.xs:633:42: error: use of undeclared identifier 'keydata'
gcr->err = gcry_ac_data_new(&keydata);
^
GCrypt.xs:634:24: warning: implicit declaration of function 'gcry_ac_data_set' is invalid in C99 [-Wimplicit-function-declaration]
gcr->err = gcry_ac_data_set(keydata, GCRY_AC_FLAG_COPY, "s", mpi);
^
GCrypt.xs:634:41: error: use of undeclared identifier 'keydata'
gcr->err = gcry_ac_data_set(keydata, GCRY_AC_FLAG_COPY, "s", mpi);
^
GCrypt.xs:635:24: warning: implicit declaration of function 'gcry_ac_key_init' is invalid in C99 [-Wimplicit-function-declaration]
gcr->err = gcry_ac_key_init(&gcr->key_ac, gcr->h_ac, keytype, keydata);
^
GCrypt.xs:635:66: error: use of undeclared identifier 'keytype'
gcr->err = gcry_ac_key_init(&gcr->key_ac, gcr->h_ac, keytype, keydata);
^
GCrypt.xs:799:42: warning: implicit declaration of function 'gcry_ac_close' is invalid in C99 [-Wimplicit-function-declaration]
if (gcr->type == CG_TYPE_ASYMM) gcry_ac_close(gcr->h_ac);
^
8 warnings and 15 errors generated.
make: *** [GCrypt.o] Error 1