Subject: | Crypt::DES fails to build with Xcode 12 |
Date: | Fri, 18 Sep 2020 21:53:25 +0000 |
To: | "bug-Crypt-DES [...] rt.cpan.org" <bug-Crypt-DES [...] rt.cpan.org> |
From: | David Stevenson <dstevenson [...] uplandsoftware.com> |
Apple clang in Xcode 12 (now beta) sets "-Werror=implicit-function-declaration" by default,
so it causes an error compiling the C that is generated from DES.xs
cc -c -fno-common -DPERL_DARWIN -mmacosx-version-min=10.15 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"2.07\" -DXS_VERSION=\"2.07\" "-I/Users/davids/.plenv/versions/5.32.0/lib/perl5/5.32.0/darwin-2level/CORE" DES.c
DES.xs:39:3: error: implicit declaration of function 'perl_des_expand_key' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
perl_des_expand_key((i8 *)key, ks);
^
With previous releases, and other compilers, it was “just” a warning.
I’m happy to provide a PR to fix it if anyone is maintaining this module.
Regards
David