Subject: | make test fails with undefined symbols under Darwin 6.0 |
I'm having a devil of a time installing XML::Parser 2.3.1 (and expat 1.95.4) with Perl 5.8.0 on Darwin 6.0/Mac OS X.
Expat seems to make and install fine; no errors or warnings at any rate. XML::Parser warns me in 'perl Makefile.PL' that "Note (probably harmless): No library found for -lexpat" before building the two makefiles. It doesn't sound harmless, but there you go.
make runs without complaint, and make test fails like this:
[malarkey: XML-Parser-2.31] make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/astress.........dyld: /usr/bin/perl Undefined symbols:
_XML_DefaultCurrent
_XML_ErrorString
_XML_ExternalEntityParserCreate
_XML_GetBase
_XML_GetBuffer
_XML_GetCurrentByteCount
_XML_GetCurrentByteIndex
_XML_GetCurrentColumnNumber
_XML_GetCurrentLineNumber
_XML_GetErrorCode
_XML_GetInputContext
_XML_GetSpecifiedAttributeCount
_XML_Parse
_XML_ParseBuffer
_XML_ParserCreate_MM
_XML_ParserFree
_XML_SetAttlistDeclHandler
_XML_SetBase
_XML_SetCdataSectionHandler
_XML_SetCharacterDataHandler
_XML_SetCommentHandler
_XML_SetDefaultHandler
_XML_SetDefaultHandlerExpand
_XML_SetElementDeclHandler
_XML_SetElementHandler
_XML_SetEndCdataSectionHandler
_XML_SetEndDoctypeDeclHandler
_XML_SetEntityDeclHandler
_XML_SetExternalEntityRefHandler
_XML_SetNamespaceDeclHandler
_XML_SetNotationDeclHandler
_XML_SetParamEntityParsing
_XML_SetProcessingInstructionHandler
_XML_SetStartCdataSectionHandler
_XML_SetStartDoctypeDeclHandler
_XML_SetUnknownEncodingHandler
_XML_SetUnparsedEntityDeclHandler
_XML_SetUserData
t/astress.........dubious
Test returned status 0 (wstat 5, 0x5)
t/cdata...........dyld: /usr/bin/perl Undefined symbols:
_XML_DefaultCurrent
_XML_ErrorString
_XML_ExternalEntityParserCreate
_XML_GetBase
_XML_GetBuffer
_XML_GetCurrentByteCount
_XML_GetCurrentByteIndex
_XML_GetCurrentColumnNumber
_XML_GetCurrentLineNumber
_XML_GetErrorCode
_XML_GetInputContext
_XML_GetSpecifiedAttributeCount
_XML_Parse
_XML_ParseBuffer
_XML_ParserCreate_MM
_XML_ParserFree
_XML_SetAttlistDeclHandler
_XML_SetBase
_XML_SetCdataSectionHandler
_XML_SetCharacterDataHandler
_XML_SetCommentHandler
_XML_SetDefaultHandler
_XML_SetDefaultHandlerExpand
_XML_SetElementDeclHandler
_XML_SetElementHandler
_XML_SetEndCdataSectionHandler
_XML_SetEndDoctypeDeclHandler
_XML_SetEntityDeclHandler
_XML_SetExternalEntityRefHandler
_XML_SetNamespaceDeclHandler
_XML_SetNotationDeclHandler
_XML_SetParamEntityParsing
_XML_SetProcessingInstructionHandler
_XML_SetStartCdataSectionHandler
_XML_SetStartDoctypeDeclHandler
_XML_SetUnknownEncodingHandler
_XML_SetUnparsedEntityDeclHandler
_XML_SetUserData
t/cdata...........dubious
Test returned status 0 (wstat 5, 0x5)
and so on and so on, throughout the tests. Here's the end:
t/stream..........dubious
Test returned status 0 (wstat 5, 0x5)
FAILED--13 test scripts could be run, alas--no output ever seen
make: *** [test_dynamic] Error 2
Suggestions appreciated.