On Aug 2, 2006, at 11:55 , Michael Glaesemann wrote:

On Aug 1, 2006, at 23:04 , Sherm Pendley wrote:

Try moving /opt aside before building & testing the module. Before you do, use otool to see which of these XML::LibXML::XPathContext is linked against - it may also be that one (or more) of its prerequisites (XML::LibXML for instance) is also linked the one in /opt.

I've been trying to figure out where the XML::LibXML::XPathContext object files are located, but can't find it. (Am I correct in thinking that's what I should be looking for?) I'm looking in / Library/Perl/5.8.6. And looking at the otool man page, it looks like I want to use otool -L when I finally find it, correct?

I think I've found it. I was looking for a .so or .o file, but it looks like it's a .bundle.

$ otool -L /Volumes/wilde/Library/Perl/5.8.6/darwin-thread- multi-2level/auto/XML/LibXML/XPathContext/XPathContext.bundle /Volumes/wilde/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/XML/ LibXML/XPathContext/XPathContext.bundle: /opt/local/lib/libxml2.2.dylib (compatibility version 9.0.0, current version 9.23.0) /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.6) /opt/local/lib/libiconv.2.dylib (compatibility version 6.0.0, current version 6.0.0)

And here's what XML::LibXML is linked against.

$ otool -L /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/XML/ LibXML/LibXML.bundle /Library/Perl/5.8.6/darwin-thread-multi-2level/auto/XML/LibXML/ LibXML.bundle: /usr/lib/libxml2.2.dylib (compatibility version 9.0.0, current version 9.16.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.5) /usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current version 5.0.0)

So that confirms what you suspected. I moved the previous XPathContext.pm and /opt out of the way, hopped into CPAN and installed XML::LibXML::XPathContext again. Installed without a problem, passing all the tests.

Is there a way to specify which libs the modules should be linking against, something like changing ones path? I don't see the /opt in the perl -V output (in particular in the Linker and Libraries section), so I'm wondering why it's picking up the libraries in /opt anyway.

Thanks again, Sherm!

Michael Glaesemann
grzm seespotcode net



Reply via email to