G'day All and Happy New Year,
Background:
I'm running Cygwin on Win10; Perl (5.32.0) is running on Cygwin using Perlbrew.
I've just run a full update of Cygwin: no problems running;
required some minor tweaks (e.g. copying a file from 'vim81' to 'vim82') but everything seems to be generally fine.
The previous version of Cygwin was 3.0.7; the new version just installed is 3.1.6.
I was looking at some Perl modules I had installed, thinking to maybe update them to take advantage of newer library versions;
this is where I hit the problem with XML::LibXML.
I currently have:
$ perl -E 'use XML::LibXML; say $XML::LibXML::VERSION'
2.0205
The latest version is 2.0206, so I attempted to update:
cpan[1]> install XML::LibXML
Reading '/home/ken/.cpan/Metadata'
Database was generated on Fri, 01 Jan 2021 04:29:02 GMT
Running install for module 'XML::LibXML'
Fetching with LWP:
http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0206.tar.gz
Fetching with LWP:
http://www.cpan.org/authors/id/S/SH/SHLOMIF/CHECKSUMS
Checksum for /home/ken/.cpan/sources/authors/id/S/SH/SHLOMIF/XML-LibXM
+L-2.0206.tar.gz ok
Scanning cache /home/ken/.cpan/build for sizes
......................................................................
+......DONE
Configuring S/SH/SHLOMIF/XML-LibXML-2.0206.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for XML::LibXML
Writing MYMETA.yml and MYMETA.json
SHLOMIF/XML-LibXML-2.0206.tar.gz
/home/ken/perl5/perlbrew/perls/perl-5.32.0/bin/perl Makefile.PL -- O
+K
Running make for S/SH/SHLOMIF/XML-LibXML-2.0206.tar.gz
cp lib/XML/LibXML/DocumentFragment.pod blib/lib/XML/LibXML/DocumentFra
+gment.pod
... almost a screenful of successful 'cp' comands, then:
cp lib/XML/LibXML/Dtd.pod blib/lib/XML/LibXML/Dtd.pod
Running Mkbootstrap for LibXML ()
chmod 644 "LibXML.bs"
"/home/ken/perl5/perlbrew/perls/perl-5.32.0/bin/perl.exe" -MExtUtils::
+Command::MM -e 'cp_nonempty' -- LibXML.bs blib/arch/auto/XML/LibXML/L
+ibXML.bs 644
gcc -c -I/usr/include/libxml2 -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI_
+_ -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-
+strong -D_FORTIFY_SOURCE=2 -DUSEIMPORTLIB -O3 -DVERSION=\"2.0206\"
+-DXS_VERSION=\"2.0206\" "-I/home/ken/perl5/perlbrew/perls/perl-5.32.
+0/lib/5.32.0/cygwin-thread-multi/CORE" -DHAVE_UTF8 Av_CharPtrPtr.c
In file included from Av_CharPtrPtr.c:7:
/home/ken/perl5/perlbrew/perls/perl-5.32.0/lib/5.32.0/cygwin-thread-mu
+lti/CORE/perl.h:861:13: fatal error: xlocale.h: No such file or direc
+tory
861 | # include <xlocale.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:438: Av_CharPtrPtr.o] Error 1
SHLOMIF/XML-LibXML-2.0206.tar.gz
/usr/bin/make -- NOT OK
Failed during this command:
SHLOMIF/XML-LibXML-2.0206.tar.gz : make NO
I checked and have a plethora of xlocale.h in various places (see spoiler):
I'm looking for some advice on how to handle this:
-
Reinstall Perl 5.32.0 — as far as I can tell, that's the latest stable release and what I have currently.
-
Copy one of the many xlocale.hs I already have to somewhere (?).
-
Install a new copy of xlocale.h from somewhere (?) to somewhere (?).
-
Do something completely different.
Other Perl programs seem to working fine, including Tk under Cygwin-X.
Ask if you'd like additional information.
Any help appreciated.