DCIT / perl-CryptX

https://metacpan.org/pod/CryptX
Other
34 stars 23 forks source link

build error. ( fatal error: xlocale.h: No such file or directory ) #88

Closed davewood closed 1 year ago

davewood commented 1 year ago

im trying to build the newest package via cpanm (through carton install)

cpanm (Menlo) 1.9019 on perl 5.032001 built for x86_64-linux
Work directory is /home/david/.cpanm/work/1681807169.359898
You have make /usr/bin/make
You have /usr/bin/curl: curl 7.88.1 (x86_64-pc-linux-gnu) libcurl/7.88.1 OpenSSL/3.0.8 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3
You have /usr/bin/tar: tar (GNU tar) 1.34
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
--> Working on /home/david/dev/zid/Registry-NICAT/
Entering /home/david/dev/zid/Registry-NICAT
Configuring /home/david/dev/zid/Registry-NICAT
-> OK
Checking if you have CryptX 0 ... No
Checking if you have Crypt::JWT 0 ... No
==> Found dependencies: CryptX, Crypt::JWT
Searching CryptX (0) on cpanmetadb ...
--> Working on CryptX
Fetching http://cpan.metacpan.org/authors/id/M/MI/MIK/CryptX-0.077.tar.gz
-> OK
Unpacking CryptX-0.077.tar.gz
Copying CryptX-0.077.tar.gz to /home/david/dev/zid/Registry-NICAT/local/cache/authors/id/M/MI/MIK/CryptX-0.077.tar.gz
Entering CryptX-0.077
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.44)
Configuring CryptX-0.077
Running Makefile.PL
Checking if your kit is complete...
Looks good
...
cc -c  -DLTM_DESC -Isrc/ltc/headers -Isrc/ltm -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2   -DVERSION=\"0.077\" -DXS_VERSION=\"0.077\" -fPIC "-I/home/david/perl5/perlbrew/perls/perl-5.32.1/lib/5.32.1/x86_64-linux/CORE"   CryptX.c
In file included from CryptX.xs:3:
/home/david/perl5/perlbrew/perls/perl-5.32.1/lib/5.32.1/x86_64-linux/CORE/perl.h:861:13: fatal error: xlocale.h: No such file or directory
  861 | #   include <xlocale.h>
      |             ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:448: CryptX.o] Error 1
cat /etc/debian_version 
12.0
perl -v

This is perl 5, version 36, subversion 0 (v5.36.0) built for x86_64-linux-gnu-thread-multi
karel-m commented 1 year ago

I do not think this issue is related to CryptX module as the the missing header file is included in /home/david/perl5/perlbrew/perls/perl-5.32.1/lib/5.32.1/x86_64-linux/CORE/perl.h.

It might be related to the configure options used when your perl interpreter was build.

davewood commented 1 year ago

Your assessment is correct, rebuilding perl fixes the missing xlocale.h issue