ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Compiling XML::LibXML on SCO
by dhogan other posts by this author
Jul 11 2001 8:17AM messages near this date
view in the new Beta List Site
RE: PerlSax to parse/search large (~350 MB) file | Re: Compiling XML::LibXML on SCO
I seem to have gotten everything to work but when I do a "make test" i
get a Dynaloader error

Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for module XML::LibXML:
dynamic linker: /bin/perl: relocation error: symbol not found: warn at
/usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm line 206.

I compiled libxml and libxstl and XML::LibXML0.97 with both gcc and the
native sco compiler however bith ways requires using the SCO linker.

However I have been able to create shared objects and load them with
Dynaloader like LWP and Libnet and DBI. Also when doing "make check" on
libxml everything tests fine which from looking at the test suite means
that it is loading the libxml2 shared objects. So this seems as though
it might be a problem with XML::LibXML. I know that even thinking about
working with SCO is a nightmare but if anyone has any suggestions that
would really be great.

One other thing. When compiling libxml it gives this warning.

*** Warning: inter-library dependencies are not known to be supported.
*** All declared inter-library dependencies are being dropped.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

I thought that might be usful.



The following is a copy of the seesion using the native compiler.


bash-2.03# perl Makefile.PL
running xml2-config... ok
checking for main() in -lxml2... yes
If you are building XML::LibXML from CVS, you may wish to run

  $ make docs

before doing anything else. This will re-build the documentation
from the XML file in examples/libxml.xml. This is *not* necessary
if you are building from a CPAN distribution.
Checking if your kit is complete...
Looks good
Writing Makefile for XML::LibXML
bash-2.03# make
cp lib/XML/LibXML/Comment.pod blib/lib/XML/LibXML/Comment.pod
cp lib/XML/LibXML/Namespace.pod blib/lib/XML/LibXML/Namespace.pod
cp LibXML.pm blib/lib/XML/LibXML.pm
cp lib/XML/LibXML/CDATASection.pod blib/lib/XML/LibXML/CDATASection.pod
cp lib/XML/LibXML/Document.pod blib/lib/XML/LibXML/Document.pod
cp lib/XML/LibXML/Attr.pod blib/lib/XML/LibXML/Attr.pod
cp lib/XML/LibXML/Text.pod blib/lib/XML/LibXML/Text.pod
cp lib/XML/LibXML/Dtd.pod blib/lib/XML/LibXML/Dtd.pod
cp lib/XML/LibXML/DocumentFragment.pod
blib/lib/XML/LibXML/DocumentFragment.pod
cp lib/XML/LibXML/Node.pod blib/lib/XML/LibXML/Node.pod
cp lib/XML/LibXML/Element.pod blib/lib/XML/LibXML/Element.pod
/bin/perl -I/usr/local/lib/perl5/5.6.1/i386-sco
-I/usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/5.6.1/ExtUtils/xsubpp
-typemap /usr/local/lib/perl5/5.6.1/ExtUtils/typemap -typemap typemap
LibXML.xs >  LibXML.xsc && mv LibXML.xsc LibXML.c
cc -c -I/usr/local/include/libxml -I/usr/local/include -U M_XENIX -D
PERL_SCO -D PERL_SCO5 -w0 -belf -I/usr/local/include -O0
-DVERSION=\"0.97\" -DXS_VERSION=\"0.97\" -Kpic
-I/usr/local/lib/perl5/5.6.1/i386-sco/CORE  LibXML.c
cc -c -I/usr/local/include/libxml -I/usr/local/include -U M_XENIX -D
PERL_SCO -D PERL_SCO5 -w0 -belf -I/usr/local/include -O0
-DVERSION=\"0.97\" -DXS_VERSION=\"0.97\" -Kpic
-I/usr/local/lib/perl5/5.6.1/i386-sco/CORE  dom.c
cc -c -I/usr/local/include/libxml -I/usr/local/include -U M_XENIX -D
PERL_SCO -D PERL_SCO5 -w0 -belf -I/usr/local/include -O0
-DVERSION=\"0.97\" -DXS_VERSION=\"0.97\" -Kpic
-I/usr/local/lib/perl5/5.6.1/i386-sco/CORE  xpath.c
Running Mkbootstrap for XML::LibXML ()
chmod 644 LibXML.bs
rm -f blib/arch/auto/XML/LibXML/LibXML.so
LD_RUN_PATH="/usr/local/lib:/lib:/usr/lib" ld  -G -L/usr/local/lib
LibXML.o dom.o xpath.o  -o blib/arch/auto/XML/LibXML/LibXML.so
-L/usr/local/lib -lxml2 -L/lib -lm -lsocket -lz
chmod 755 blib/arch/auto/XML/LibXML/LibXML.so
cp LibXML.bs blib/arch/auto/XML/LibXML/LibXML.bs
chmod 644 blib/arch/auto/XML/LibXML/LibXML.bs
bash-2.03# make tse4
bash-2.03#
bash-2.03# make test
PERL_DL_NONLAZY=1 /bin/perl -Iblib/arch -Iblib/lib
-I/usr/local/lib/perl5/5.6.1/i386-sco -I/usr/local/lib/perl5/5.6.1 -e
'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;'
t/*.t
t/01basic...........Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/01basic.t line 4
Compilation failed in require at t/01basic.t line 4.
BEGIN failed--compilation aborted at t/01basic.t line 4.
t/01basic...........dubious
 Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-4
 Failed 4/4 tests, 0.00% okay
t/02parsestring.....Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/02parsestring.t line 5
Compilation failed in require at t/02parsestring.t line 5.
BEGIN failed--compilation aborted at t/02parsestring.t line 5.
t/02parsestring.....dubious
 Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-4
 Failed 4/4 tests, 0.00% okay
t/03parsefile.......Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/03parsefile.t line 3
Compilation failed in require at t/03parsefile.t line 3.
BEGIN failed--compilation aborted at t/03parsefile.t line 3.
t/03parsefile.......dubious
 Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-5
 Failed 5/5 tests, 0.00% okay
t/04parsefh.........Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/04parsefh.t line 3
Compilation failed in require at t/04parsefh.t line 3.
BEGIN failed--compilation aborted at t/04parsefh.t line 3.
t/04parsefh.........dubious
 Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-6
 Failed 6/6 tests, 0.00% okay
t/05dombasic........Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/05dombasic.t line 7
Compilation failed in require at t/05dombasic.t line 7.
BEGIN failed--compilation aborted at t/05dombasic.t line 7.
t/05dombasic........dubious
 Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-19
 Failed 19/19 tests, 0.00% okay
t/06nodetypes.......Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/06nodetypes.t line 8
Compilation failed in require at t/06nodetypes.t line 8.
BEGIN failed--compilation aborted at t/06nodetypes.t line 8.
t/06nodetypes.......dubious
 Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-60
 Failed 60/60 tests, 0.00% okay
t/07nodelist........Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/07nodelist.t line 7
Compilation failed in require at t/07nodelist.t line 7.
BEGIN failed--compilation aborted at t/07nodelist.t line 7.
t/07nodelist........dubious
 Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-15
 Failed 15/15 tests, 0.00% okay
t/08findnodes.......Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/08findnodes.t line 4
Compilation failed in require at t/08findnodes.t line 4.
BEGIN failed--compilation aborted at t/08findnodes.t line 4.
t/08findnodes.......dubious
 Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-8
 Failed 8/8 tests, 0.00% okay
t/09append..........Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/09append.t line 4
Compilation failed in require at t/09append.t line 4.
BEGIN failed--compilation aborted at t/09append.t line 4.
t/09append..........dubious
 Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-11
 Failed 11/11 tests, 0.00% okay
t/10ns..............Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/10ns.t line 4
Compilation failed in require at t/10ns.t line 4.
BEGIN failed--compilation aborted at t/10ns.t line 4.
t/10ns..............dubious
 Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-21
 Failed 21/21 tests, 0.00% okay
t/11memory..........Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/11memory.t line 10
Compilation failed in require at t/11memory.t line 10.
BEGIN failed--compilation aborted at t/11memory.t line 10.
t/11memory..........dubious
 Test returned status 255 (wstat 65280, 0xff00)
t/12html............Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/12html.t line 3
Compilation failed in require at t/12html.t line 3.
BEGIN failed--compilation aborted at t/12html.t line 3.
t/12html............dubious
 Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-5
 Failed 5/5 tests, 0.00% okay
t/13dtd.............Can't load 'blib/arch/auto/XML/LibXML/LibXML.so' for
module XML::LibXML: dynamic linker: /bin/perl: relocation error: symbol
not found: warn at /usr/local/lib/perl5/5.6.1/i386-sco/DynaLoader.pm
line 206.
 at t/13dtd.t line 3
Compilation failed in require at t/13dtd.t line 3.
BEGIN failed--compilation aborted at t/13dtd.t line 3.
t/13dtd.............dubious
 Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-11
 Failed 11/11 tests, 0.00% okay
Failed Test       Status Wstat Total Fail  Failed  List of Failed
--------------------------------------------------------------------------------

t/01basic.t        255 65280     4    4 100.00%  1-4
t/02parsestring.t  255 65280     4    4 100.00%  1-4
t/03parsefile.t    255 65280     5    5 100.00%  1-5
t/04parsefh.t      255 65280     6    6 100.00%  1-6
t/05dombasic.t     255 65280    19   19 100.00%  1-19
t/06nodetypes.t    255 65280    60   60 100.00%  1-60
t/07nodelist.t     255 65280    15   15 100.00%  1-15
t/08findnodes.t    255 65280     8    8 100.00%  1-8
t/09append.t       255 65280    11   11 100.00%  1-11
t/10ns.t           255 65280    21   21 100.00%  1-21
t/11memory.t       255 65280    ??   ??       %  ??
t/12html.t         255 65280     5    5 100.00%  1-5
t/13dtd.t          255 65280    11   11 100.00%  1-11
Failed 13/13 test scripts, 0.00% okay. 169/169 subtests failed, 0.00%
okay.
make: *** [test_dynamic] Error 2
bash-2.03#


_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
http://listserv.ActiveState.com/mailman/listinfo/perl-xml
Thread:
dhogan
Matt Sergeant
dhogan
dhogan

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved