Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^9: XS.c: loadable library and perl binaries are mismatched (got handshake key 0xc100000, needed 0xc180000)

by bliako (Monsignor)
on Aug 04, 2020 at 15:49 UTC ( [id://11120283]=note: print w/replies, xml ) Need Help??


in reply to Re^8: XS.c: loadable library and perl binaries are mismatched (got handshake key 0xc100000, needed 0xc180000)
in thread XS.c: loadable library and perl binaries are mismatched (got handshake key 0xc100000, needed 0xc180000)

Sorry, it's not an error, it is just that he now runs perl 5.30 via perlbrew and compiles it with that (Re^6: XS.c: loadable library and perl binaries are mismatched (got handshake key 0xc100000, needed 0xc180000)). So yes, perhaps starting fresh from the beginning to see a) how it is compiled using the new settings (for example to confirm if correct binaries and library paths are used), b) where it fails if it does, c) strace output filtering out noise to see the fullpath of the library failing the handshake.

Replies are listed 'Best First'.
Re^10: XS.c: loadable library and perl binaries are mismatched (got handshake key 0xc100000, needed 0xc180000)
by rgren925 (Beadle) on Aug 04, 2020 at 23:35 UTC

    I will delete the perl and start over again after ensuring there are no environment variables that pertain to perl things (anything else I should consider there?)

    BTW, the messed up XS.c I posted the other day was due to a posting length limitation on this site. The site truncated the lion's share of the module and my closing code tag as well. FWIW, I edited that post to enter as much as I could without truncation. Sadly, the "preview" tool gives no indication of the truncation, so it all looked pretty rosy to me when I submitted it. Lesson learned

    Also, I just want you all to know how much I appreciate the time you are taking to help me out and, hopefully, others will be able to learn from this

    Rick

    One more thing... I'll be out for the remainder of the week and will pick this back up Monday

      BTW, the messed up XS.c I posted the other day was due to a posting length limitation on this site

      Bummer ... and the file is also too big for the public scratchpad, too. (I guess it's the same limit.)
      I'll msg you my email address, and you can send the file over if you like. (I still wouldn't mind seeing what, if any, difference exists.)

      Cheers,
      Rob

      One more thing to check perhaps is to create a fresh new user which also uses perlbrew and see if that makes a difference, i.e. if it's something in your current user settings / leftover libraries. Linux tip: if you manage to find a place to deposit large files with the output, then you can use the command script outfile.txt to capture all output including what you type at the ecommand line. When you are done, type exit and publish "outfile.txt" to say googledocs

      the messed up XS.c I posted the other day was due to a posting length limitation on this site.

      I'm about to post a discussion regarding the misleading preview of large posts. Thanks for bringing this to my attention.

      If you really need to post such large sections then your 2 main options are either to use an off-site location (like a pastebin or a Gitlab snippet or your own site, even) and link to that or else the old favourite of gzip and uuencode.

      (massive temporary code section removed) and the discussion is now here.

      I removed perlbrew and made certain I had no offensive environment variables before reinstalling it.

      After reinstallation, I loaded up cpanm and tried first an XS module I have historically had no issues with (JSON::XS); then List::MoreUtils...

      gcp4al16:rg8239$ which cpanm ~/perl5/perlbrew/bin/cpanm gcp4al16:rg8239$ cpanm JSON::XS --> Working on JSON::XS Fetching http://www.cpan.org/authors/id/M/ML/MLEHMANN/JSON-XS-4.02.tar +.gz ... OK ==> Found dependencies: Canary::Stability --> Working on Canary::Stability Fetching http://www.cpan.org/authors/id/M/ML/MLEHMANN/Canary-Stability +-2013.tar.gz ... OK Configuring Canary-Stability-2013 ... OK Building and testing Canary-Stability-2013 ... OK Successfully installed Canary-Stability-2013 Configuring JSON-XS-4.02 ... OK ==> Found dependencies: common::sense, Types::Serialiser --> Working on common::sense Fetching http://www.cpan.org/authors/id/M/ML/MLEHMANN/common-sense-3.7 +5.tar.gz ... OK Configuring common-sense-3.75 ... OK Building and testing common-sense-3.75 ... OK Successfully installed common-sense-3.75 --> Working on Types::Serialiser Fetching http://www.cpan.org/authors/id/M/ML/MLEHMANN/Types-Serialiser +-1.0.tar.gz ... OK Configuring Types-Serialiser-1.0 ... OK Building and testing Types-Serialiser-1.0 ... OK Successfully installed Types-Serialiser-1.0 Building and testing JSON-XS-4.02 ... OK Successfully installed JSON-XS-4.02 4 distributions installed
      gcp4al16:rg8239$ cpanm List::MoreUtils --> Working on List::MoreUtils Fetching http://www.cpan.org/authors/id/R/RE/REHSACK/List-MoreUtils-0. +428.tar.gz ... OK Configuring List-MoreUtils-0.428 ... OK ==> Found dependencies: List::MoreUtils::XS, Test::LeakTrace, Exporter +::Tiny --> Working on List::MoreUtils::XS Fetching http://www.cpan.org/authors/id/R/RE/REHSACK/List-MoreUtils-XS +-0.428.tar.gz ... OK Configuring List-MoreUtils-XS-0.428 ... OK Building and testing List-MoreUtils-XS-0.428 ... FAIL ! Installing List::MoreUtils::XS failed. See /home/rg8239/.cpanm/work/ +1597187453.8905/build.log for details. Retry with --force to f orce install it. --> Working on Test::LeakTrace Fetching http://www.cpan.org/authors/id/L/LE/LEEJO/Test-LeakTrace-0.16 +.tar.gz ... OK Configuring Test-LeakTrace-0.16 ... OK Building and testing Test-LeakTrace-0.16 ... OK Successfully installed Test-LeakTrace-0.16 --> Working on Exporter::Tiny Fetching http://www.cpan.org/authors/id/T/TO/TOBYINK/Exporter-Tiny-1.0 +02002.tar.gz ... OK Configuring Exporter-Tiny-1.002002 ... OK Building and testing Exporter-Tiny-1.002002 ... OK Successfully installed Exporter-Tiny-1.002002 ! Installing the dependencies failed: Module 'List::MoreUtils::XS' is +not installed ! Bailing out the installation for List-MoreUtils-0.428. 2 distributions installed

      Obviously, still no luck

        Building and testing List-MoreUtils-XS-0.428 ... FAIL ! Installing List::MoreUtils::XS failed. See /home/rg8239/.cpanm/work/ +1597187453.8905/build.log for details.


        I assume the build.log confirms that this is still the handshake error.
        (It'd be awful to keep scratching our heads over this only to subsequently find that the error had changed to something else ;-)

        Cheers,
        Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-28 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found