Grian/Storable-AMF — pull request #1 by areggiori (2014-11-20 10:53:20+00:00)
Title: Patch for Apple OSX

Hi Anatoliy

Here is a small patch to get Storable::AMF to work on Apple OSX. I tested it on 10.9.5 (Mavericks) with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn).

The problem seems the \_\_inline\_\_ macro which needs to be empty to work and avoid errors like:

> t/01-parse_amf0.t ........... Can't load '/Users/reggiori/tmp/Storable-AMF/blib/arch/auto/Storable/AMF/AMF.bundle' for module Storable::AMF: dlopen(/Users/reggiori/tmp/Storable-AMF/blib/arch/auto/Storable/AMF/AMF.bundle, 2): Symbol not found: _amf3_parse_array
> Referenced from: /Users/reggiori/tmp/Storable-AMF/blib/arch/auto/Storable/AMF/AMF.bundle
> Expected in: flat namespace
> in /Users/reggiori/tmp/Storable-AMF/blib/arch/auto/Storable/AMF/AMF.bundle at /System/Library/Perl/5.16/darwin-thread-multi-2level/DynaLoader.pm line 194.
> at /Users/reggiori/tmp/Storable-AMF/blib/lib/Storable/AMF0.pm line 71.
> Compilation failed in require at t/01-parse_amf0.t line 5.

Thanks

Best regards

Alberto