PerlFFI / FFI-Platypus-Lang-CPP

Documentation and tools for using Platypus with the C++ programming language
Other
4 stars 1 forks source link

Does not work with FFI::Platypus::Lang::CPP::Demangle::XS + OS X 10.5 #16

Open plicease opened 2 years ago

plicease commented 2 years ago

Appears to works fine with a modern macOS, but if ::Demangle::XS is installed it gets this failure:

t/00_diag.t .............. ok   
t/01_use.t ............... ok   
t/02_types.t ............. ok   
t/ffi_platypus_attach.t .. 1/2 unable to find MyInteger::int_sum(int, int) at t/ffi_platypus_attach.t line 21.
# Looks like your test exited with 255 just after 1.
t/ffi_platypus_attach.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/2 subtests 
t/lang.t ................. ok   

This may be a bug in ::Demangle::XS, and it may not be fixable, in which case we should

  1. ::Demangle::XS should have a test to detect this failure
  2. we should not use ::Demangle::XS on this platform.

However this is also an old hardware OS combination, so we could also just provide an environment variable to optionally not use the XS, and just leave it at that.