[Expat-discuss] Re: troubles with expat sol 8/gcc/xml-parser
Josh Martin
Josh.Martin@abq.sc.philips.com
Thu Aug 1 15:09:18 2002
Did you run 'make test' before or after you did 'make install'? A well behaved
packed is supposed to be testable _before_ you install it, but it might be
having problems with an uninstalled shared/dynamic library. Try testing after
installing, and let us know if it still doesn't work. Also, make sure that the
directory holding the expat libarary is listed in your SHLIB_PATH or
LD_LIBRARY_PATH environment variable. I can't remember which one Solaris uses,
but I believe it's LD_LIBRARY_PATH, although I use both because I'm paranoid.
BTW, using the --prefix=foo methods don't specifically let you build a package
that can be moved around, they just let you change the default location that the
package will be installed to.
PS I apologize for continuing to break convention, especially since it causes
problems when mixing the methods, but I much prefer it when I, and others, post
to the top of a message, rather than the bottom.
- Josh Martin
> i have installed perl version 5.8
> i have installed expat version 1.95.4
> i am trying to install XML-Parser-2.31 a perl module.
>
> the parser package allows you to test the distribution with a make test.
when
> i run the make test the error messages that i get are, (please excuse the ^M):
>
>
>
> +++++++++++++++++++++++++++++++++++++++++++
> make test^M^M
> PERL_DL_NONLAZY=1 /server/utils/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t^M
> t/astress.........Can't load
>
'/gaia/bartlett/d1/scripts/nis/src/XML-Parser-2.31/blib/arch/auto/XML/Parser/Exp
at/Expat.so'
> for module XML
> ::Parser::Expat: ld.so.1: /server/utils/bin/perl: fatal: relocation error:
file
> /gaia/bartlett/d1/scripts/nis/src/XML-Parser-2.31/blib/a
> rch/auto/XML/Parser/Expat/Expat.so: symbol XML_GetErrorCode: referenced symbol
> not found at /server/utils/lib/perl5/5.8.0/sun4-solaris/D
> ynaLoader.pm line 229.^M
> at /gaia/bartlett/d1/scripts/nis/src/XML-Parser-2.31/blib/lib/XML/Parser.pm
> line 15^M
> Compilation failed in require at
> /gaia/bartlett/d1/scripts/nis/src/XML-Parser-2.31/blib/lib/XML/Parser.pm line
> 15.^M
> BEGIN failed--compilation aborted at
> /gaia/bartlett/d1/scripts/nis/src/XML-Parser-2.31/blib/lib/XML/Parser.pm line
> 19.^M
> Compilation failed in require at t/astress.t line 11.^M
> BEGIN failed--compilation aborted at t/astress.t line 11.^M
> ^M
> ^Mt/astress.........NOK 1^M
> ^Mt/astress.........dubious^M
> Test returned status 255 (wstat 65280, 0xff00)^M
> DIED. FAILED tests 1-25^M
> Failed 25/25 tests, 0.00% okay^M
>
> Failed Test Stat Wstat Total Fail Failed List of Failed^M
>
-------------------------------------------------------------------------------^
M
>
> t/astress.t 255 65280 25 25 100.00% 1-25^M
> t/cdata.t 255 65280 2 2 100.00% 1-2^M
> t/decl.t 255 65280 30 30 100.00% 1-30^M
> t/defaulted.t 255 65280 4 4 100.00% 1-4^M
> t/encoding.t 255 65280 4 4 100.00% 1-4^M
> t/external_ent.t 255 65280 5 5 100.00% 1-5^M
> t/file.t 255 65280 2 2 100.00% 1-2^M
> t/finish.t 255 65280 3 3 100.00% 1-3^M
> t/namespaces.t 255 65280 16 16 100.00% 1-16^M
> t/parament.t 255 65280 12 12 100.00% 1-12^M
> t/partial.t 255 65280 3 3 100.00% 1-3^M
> t/skip.t 255 65280 4 4 100.00% 1-4^M
> t/stream.t 255 65280 3 3 100.00% 1-3^M
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++
>
> actually there are a lot of errors, you can see by the totals at the bottom of
> the section above. all of the errors start with the same complaint about
> expat.
>
> Greg Stein wrote:
>
> > [ copying to the discussion mailing list ]
> >
> > I think it would be most helpful to see how Perl is complaining. What is the
> > error message? I'm not a Perl guy, but there are people on this list that
> > might be able to help track the issue down from there.
> >
> > Also helpful would be a listing of what Expat files were actually installed,
> > and where.
> >
> > Expat has testing tools, but they're really used for testing Expat itself,
> > rather than "did it install properly?" And those tools are going to say
> > "everything is fine" (otherwise, we wouldn't have released :-)
> >
> > Cheers,
> > -g
> >
> > On Thu, Aug 01, 2002 at 09:20:57AM -0700, chris watson wrote:
> > > o'reilly came out with a book called perl for sys admins.
> > > in the book they describe how to build an xml document that
> > > contains user meta data. one of the tools required to build
> > > tools that manage this xml document is expat.
> > >
> > > i am trying to build all of these tools in such a way that
> > > the tool directory can be picked up and moved to a different
> > > location and everything in the tool directory still works.
> > > this means that i am building all of the tools from source
> > > code and using the --prefix flag with the configure script.
> > >
> > > the tools that i have that are attempting to use expat are
> > > perl and the perl module xml::parser. seems that i cannot
> > > get xml::parser to run properly....that is, it complains
> > > about expat.
> > >
> > > so...i was wondering if you could lend a hand, or your
> > > eyeballs, and maybe tell me what i am doing wrong.
> > >
> > > is there a utiltity that comes with the expat distribution
> > > that i can use to check and make sure that my installation
> > > of expat is working properly?
> > >
> > > thanks
> > >
> > > cw
> >
> > --
> > Greg Stein, http://www.lyra.org/
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/expat-discuss