And after that, we come to the real problem, which manifests during make test (and which you can see is again to do with the linker):
$ make test "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- SimpleServ +er.bs blib/arch/auto/Net/Z3950/SimpleServer/SimpleServer.bs 644 PERL_DL_NONLAZY=1 "/usr/bin/perl" "-Iblib/lib" "-Iblib/arch" test.pl 1..4 Can't load 'blib/arch/auto/Net/Z3950/SimpleServer/SimpleServer.bundle' + for module Net::Z3950::SimpleServer: dlopen(blib/arch/auto/Net/Z3950 +/SimpleServer/SimpleServer.bundle, 0x0002): tried: 'blib/arch/auto/Ne +t/Z3950/SimpleServer/SimpleServer.bundle' (relative path not allowed +in hardened program) at /System/Library/Perl/5.30/darwin-thread-multi +-2level/DynaLoader.pm line 197. � at test.pl line 11. Compilation failed in require at test.pl line 11. BEGIN failed--compilation aborted at test.pl line 11. not ok 1 make: *** [test_dynamic] Error 2
That "relative path not allowed" actually prevents the tests from running, and my real question is, why is this a hardened program at all? My favoured solution would be to not have the program hardened while I'm working on it!

Anyway: I can force this to work my modifying the Makefile.PL to use an absolute path for the ARCHLIB:

sub MY::postamble { 'INST_ARCHLIB = `pwd`/blib/arch' }
which makes the -I argument absolute. Then the tests run OK (which proves that the "mostly harmless" warnings really were mostly harmless: the necessary libraries were loaded OK for the tests.)

But that "solution" is no good, not only because it's horribly inelegant and knows too much about what ExtUtils::MakeMaker is doing, but more significantly because it prevents make install from working.


In reply to Re^5: Warning (mostly harmless): No library found for -lxml2 by MikeTaylor
in thread Warning (mostly harmless): No library found for -lxml2 by MikeTaylor

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.