in reply to Separating source files in YAML::XS

Following your instructions I get:

./perl_libyaml.h:16:10: fatal error: yaml.h: No such file or directory #include <yaml.h> ^~~~~~~~ compilation terminated.

Which I get past by adding "INC" => "-I../LibYAML/include/", to the Makefile.PL. The tests then fail with things like:

# Failed test 'require YAML::XS;Can't load '/home/marto/code/yaml-li +byaml-pm/YAML-LibYAML-0.77/blib/arch/auto/YAML/XS/LibYAML/LibYAML.so' + for module YAML::XS::LibYAML: /home/marto/code/yaml-libyaml-pm/YAML- +LibYAML-0.77/blib/arch/auto/YAML/XS/LibYAML/LibYAML.so: undefined sym +bol: yaml_sequence_start_event_initialize at /usr/lib/i386-linux-gnu/ +perl/5.26/DynaLoader.pm line 187

I'll do some more digging in the morning.

Replies are listed 'Best First'.
Re^2: Separating source files in YAML::XS
by tinita (Parson) on Apr 28, 2019 at 09:26 UTC
    Oh right, I think I don't get the first error because I have the libyaml package installed, so it's finding the yaml.h from that one instead.

    Tux is actually also working on this...