Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Update XML::LibXML - can't find "xlocale.h" [solution]

by kcott (Archbishop)
on Jan 02, 2021 at 07:57 UTC ( [id://11126120]=note: print w/replies, xml ) Need Help??


in reply to Update XML::LibXML - can't find "xlocale.h"

As mentioned in the workaround post, "I suspect an actual solution would be to rebuild Perl and reinstall all modules ...". Doing that with 5.32.0 would have been very disruptive to other tasks I'm currently working on; so I decided to install the latest development version, 5.33.5 (https://metacpan.org/pod/release/CORION/perl-5.33.5/pod/perl.pod) — it's got "CORION" plastered all over it, so it has to be good; right? :-)

Installation worked. I checked for I_XLOCALE in config.h; it was commented out:

ken@titan ~/perl5/perlbrew/perls/perl-5.33.5/lib/5.33.5/cygwin-thread- +multi/CORE $ grep 'I_XLOCALE' config.h /* I_XLOCALE: /*#define I_XLOCALE / **/

I've now installed lots of modules — many with XS components, including XML::LibXML — and there's been no recurrence of the earlier problem.

It would seem this is a solid solution; although, the workaround is still working, and possibly a much faster solution for anyone encountering the same problem with xlocale.h.

— Ken

Replies are listed 'Best First'.
Re^2: Update XML::LibXML - can't find "xlocale.h" [solution]
by syphilis (Archbishop) on Jan 02, 2021 at 11:22 UTC
    Installation worked. I checked for I_XLOCALE in config.h; it was commented out

    Did you build 5.33.5 in the same way as you had built 5.32.0 ?
    If so, then we can say that the bug has been fixed.
    Otherwise, the jury is still out.

    Cheers,
    Rob
      "Did you build 5.33.5 in the same way as you had built 5.32.0 ?"

      I built 5.33.5 using the basic instructions in Perlbrew:

      perlbrew install perl-5.33.5

      I built 5.32.0 over six months ago. I'm somewhat loathe to say I have perfect recollection; however, I'm almost 100% certain I built that in exactly the same way:

      perlbrew install perl-5.32.0

      I can say that I didn't use any options affecting compilation, such as -D (see "perlbrew: Options for install command" for a full list).

      I can also say that I didn't use any wildly different method, such as downloading a tarball and installing manually.

      All modules were installed in exactly the same way, for both versions, using the cpan utility. Just a very basic:

      $ cpan ... cpan[1]> install Some::Module ... cpan[2]> install Other::Module ...

      — Ken

        I'm almost 100% certain I built that in exactly the same way

        Hmmm ... apart from using its git utility on my Windows 7 box, I don't do much with Cygwin.
        However, a month or so back I built and installed perl-5.33.4 on Cygwin by configuring with:
        sh Configure -des -Dusedevel -Uversiononly -Dprefix=/home/sisyphus/per +l-5.33.4-d
        I've just now built and installed perl-5.32.0 by configuring with:
        sh Configure -des -Dprefix=/home/sisyphus/perl-5.32.0-d
        (The -Dusedevel -Uversiononly switches are specific to devel releases.)
        The config.h files produced by both builds do not define I_XLOCALE.

        So I'm still not sure how to account for the issue you faced.
        Not that it matters very much - the important thing being that it has apparently been fixed !!

        Cheers,
        Rob
Re^2: Update XML::LibXML - can't find "xlocale.h" [solution]
by stevieb (Canon) on Jan 02, 2021 at 08:04 UTC
    "it's got "CORION" plastered all over it, so it has to be good; right? :-)

    He's been helping people here for so very long now, perhaps he's gained the ability of reading Perlmonks questions in advance long before they're posted, so he can fix problems silently before they are run into, saving himself time from having to fix the problems *and* respond.

      Heh, no - a Perl development release is "just" working through the steps of the Release Manager's Guide. There is very little creative input there, just some judgement on how bad errors are (if any). Maybe someday, all these steps will be automated.

      Eventual bug fixes have likely been contributed by somebody other than me to Perl 5.33.x :)

        That was really just intended as a tongue-in-cheek comment. Nonetheless, it did work well. I've just finished installing dozens of modules — the total's probably in the hundreds with all the dependencies — and no unexpected problems.

        — Ken

        That's interesting, I didn't know that, thanks for clarifying.

        ...and I was just saying earlier on a different thread that I frequently learn new things about Perl even after two decades.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11126120]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-19 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found