Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by bulk88 (Priest)
on Aug 03, 2020 at 20:29 UTC ( [id://11120267]=note: print w/replies, xml ) Need Help??


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

I wrote that binary mismatch code. Since its 0xFFFF0000 region that is the problem I know the size of the interp struct is not the same between the XS lib and perl interp binary.. The high digits come from, config.h and -D flags passed to gcc. Sometimes various makefile.pl are dumb and do $CCFLAGS = '-DMY_ENHANCED_MODE'; instead of $CCFLAGS = $CCFLAGS.' -DMY_ENHANCED_MODE'; and that error happens if you do long double, or 64 bit stat or 64 bit time or 64 bit who knows what OS API struct special build flag to Configure and that non-default -D is lost between Makefile.PL and command line args to GCC.
  • Comment on Re: XS.c: loadable library and perl binaries are mismatched (got handshake key 0xc100000, needed 0xc180000)

Replies are listed 'Best First'.
Re^2: XS.c: loadable library and perl binaries are mismatched (got handshake key 0xc100000, needed 0xc180000)
by bulk88 (Priest) on Aug 03, 2020 at 22:24 UTC
    doing a "make myxs.i" and inside ur custom build "make sv.i" then C source code formatter, strip #line directives, then a diff between the two .i files, will reveal will C members are different. Then you can reverse which #ifdef in intrpvar.h is different between an external XS lib and perl core interp.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 18:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found