I
Iain
Hi,
I'm trying to build XML::LibXML in non-standard directories on Solaris
and I'm going insane in the process. I fail trying the non standard
directories and my normal perl directory, so I'm guessing this is a
fundamental issue that has me flummoxed.
I don't normally have issues keeping my XML::LibXML/LibXSLT APIs up to
date, but then that's usually on SuSE running straight-forward Gnu stuff.
I've tried both Gnu & Distributed make tools, here are the details of
the other tools I'm using.
* Forte Developer 7 C 5.4 2002/03/09
* GNU ld version 2.13
Supported emulations:
elf32_sparc
* Forte Developer 7 Distributed Make 7.2 2002/03/10
* GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
I have the latest zlib, libxml2, libxslt, libxml, libiconv compiled and
installed (used dmake for those) without issues; ran the checks and
everything ok there.
The dialog (from my attemp to install in site perl directory) follows.
Any help here would be immensely appreciated... cue unconsolable weeping...
Thanks,
Iain.
# perl Makefile.PL
enable native perl UTF8
running xml2-config...ok
looking for -lxml2... yes
Checking if your kit is complete...
Looks good
Writing Makefile for XML::LibXML
# make
cp lib/XML/LibXML/SAX.pm blib/lib/XML/LibXML/SAX.pm
cp lib/XML/LibXML/Number.pm blib/lib/XML/LibXML/Number.pm
cp lib/XML/LibXML/DOM.pod blib/lib/XML/LibXML/DOM.pod
cp lib/XML/LibXML/SAX/Builder.pm blib/lib/XML/LibXML/SAX/Builder.pm
cp lib/XML/LibXML/Literal.pm blib/lib/XML/LibXML/Literal.pm
cp lib/XML/LibXML/Node.pod blib/lib/XML/LibXML/Node.pod
cp lib/XML/LibXML/Parser.pod blib/lib/XML/LibXML/Parser.pod
cp LibXML.pm blib/lib/XML/LibXML.pm
cp lib/XML/LibXML/DocumentFragment.pod
blib/lib/XML/LibXML/DocumentFragment.pod
cp lib/XML/LibXML/SAX/Parser.pm blib/lib/XML/LibXML/SAX/Parser.pm
cp lib/XML/LibXML/Element.pod blib/lib/XML/LibXML/Element.pod
cp lib/XML/LibXML/Namespace.pod blib/lib/XML/LibXML/Namespace.pod
cp lib/XML/LibXML/Attr.pod blib/lib/XML/LibXML/Attr.pod
cp lib/XML/LibXML/SAX/Builder.pod blib/lib/XML/LibXML/SAX/Builder.pod
cp lib/XML/LibXML/Document.pod blib/lib/XML/LibXML/Document.pod
cp lib/XML/LibXML/SAX/Generator.pm blib/lib/XML/LibXML/SAX/Generator.pm
cp lib/XML/LibXML/CDATASection.pod blib/lib/XML/LibXML/CDATASection.pod
cp LibXML.pod blib/lib/XML/LibXML.pod
cp lib/XML/LibXML/Boolean.pm blib/lib/XML/LibXML/Boolean.pm
cp lib/XML/LibXML/SAX.pod blib/lib/XML/LibXML/SAX.pod
cp lib/XML/LibXML/Text.pod blib/lib/XML/LibXML/Text.pod
cp lib/XML/LibXML/PI.pod blib/lib/XML/LibXML/PI.pod
cp lib/XML/LibXML/NodeList.pm blib/lib/XML/LibXML/NodeList.pm
cp lib/XML/LibXML/Comment.pod blib/lib/XML/LibXML/Comment.pod
cp lib/XML/LibXML/Dtd.pod blib/lib/XML/LibXML/Dtd.pod
/opt/perl5.8.0/bin/perl /opt/perl5.8.0/lib/5.8.0/ExtUtils/xsubpp
-typemap /opt/perl5.8.0/lib/5.8.0/ExtUtils/typemap -typemap typemap
LibXML.xs > LibXML.xsc && mv LibXML.xsc LibXML.c
cc -c -I/WWW/ns-home/sandpit/svcs/local/include/libxml2
-I/WWW/ns-home/sandpit/svcs/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.56\" -DXS_VERSION=\"1.56\"
-KPIC "-I/opt/perl5.8.0/lib/5.8.0/sun4-solaris/CORE" -DHAVE_UTF8
-DHAVE_BLANK LibXML.c
"/WWW/ns-home/sandpit/svcs/local/include/libxml2/libxml/DOCBparser.h",
line 18: #warning: "The DOCBparser module has been deprecated in
libxml2-2.6.0"
"LibXML.xs", line 73: only one storage class allowed
"LibXML.xs", line 74: only one storage class allowed
"LibXML.xs", line 76: only one storage class allowed
"LibXML.xs", line 77: only one storage class allowed
"LibXML.xs", line 78: only one storage class allowed
"LibXML.xs", line 79: only one storage class allowed
"LibXML.xs", line 4319: warning: argument #1 is incompatible with prototype:
prototype: pointer to const unsigned char :
"/WWW/ns-home/sandpit/svcs/local/include/libxml2/libxml/parser.h", line 811
argument : pointer to char
"LibXML.xs", line 4377: warning: implicit function declaration:
xmlC14NDocDumpMemory
cc: acomp failed for LibXML.c
make: *** [LibXML.o] Error 2
I'm trying to build XML::LibXML in non-standard directories on Solaris
and I'm going insane in the process. I fail trying the non standard
directories and my normal perl directory, so I'm guessing this is a
fundamental issue that has me flummoxed.
I don't normally have issues keeping my XML::LibXML/LibXSLT APIs up to
date, but then that's usually on SuSE running straight-forward Gnu stuff.
I've tried both Gnu & Distributed make tools, here are the details of
the other tools I'm using.
* Forte Developer 7 C 5.4 2002/03/09
* GNU ld version 2.13
Supported emulations:
elf32_sparc
* Forte Developer 7 Distributed Make 7.2 2002/03/10
* GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
I have the latest zlib, libxml2, libxslt, libxml, libiconv compiled and
installed (used dmake for those) without issues; ran the checks and
everything ok there.
The dialog (from my attemp to install in site perl directory) follows.
Any help here would be immensely appreciated... cue unconsolable weeping...
Thanks,
Iain.
# perl Makefile.PL
enable native perl UTF8
running xml2-config...ok
looking for -lxml2... yes
Checking if your kit is complete...
Looks good
Writing Makefile for XML::LibXML
# make
cp lib/XML/LibXML/SAX.pm blib/lib/XML/LibXML/SAX.pm
cp lib/XML/LibXML/Number.pm blib/lib/XML/LibXML/Number.pm
cp lib/XML/LibXML/DOM.pod blib/lib/XML/LibXML/DOM.pod
cp lib/XML/LibXML/SAX/Builder.pm blib/lib/XML/LibXML/SAX/Builder.pm
cp lib/XML/LibXML/Literal.pm blib/lib/XML/LibXML/Literal.pm
cp lib/XML/LibXML/Node.pod blib/lib/XML/LibXML/Node.pod
cp lib/XML/LibXML/Parser.pod blib/lib/XML/LibXML/Parser.pod
cp LibXML.pm blib/lib/XML/LibXML.pm
cp lib/XML/LibXML/DocumentFragment.pod
blib/lib/XML/LibXML/DocumentFragment.pod
cp lib/XML/LibXML/SAX/Parser.pm blib/lib/XML/LibXML/SAX/Parser.pm
cp lib/XML/LibXML/Element.pod blib/lib/XML/LibXML/Element.pod
cp lib/XML/LibXML/Namespace.pod blib/lib/XML/LibXML/Namespace.pod
cp lib/XML/LibXML/Attr.pod blib/lib/XML/LibXML/Attr.pod
cp lib/XML/LibXML/SAX/Builder.pod blib/lib/XML/LibXML/SAX/Builder.pod
cp lib/XML/LibXML/Document.pod blib/lib/XML/LibXML/Document.pod
cp lib/XML/LibXML/SAX/Generator.pm blib/lib/XML/LibXML/SAX/Generator.pm
cp lib/XML/LibXML/CDATASection.pod blib/lib/XML/LibXML/CDATASection.pod
cp LibXML.pod blib/lib/XML/LibXML.pod
cp lib/XML/LibXML/Boolean.pm blib/lib/XML/LibXML/Boolean.pm
cp lib/XML/LibXML/SAX.pod blib/lib/XML/LibXML/SAX.pod
cp lib/XML/LibXML/Text.pod blib/lib/XML/LibXML/Text.pod
cp lib/XML/LibXML/PI.pod blib/lib/XML/LibXML/PI.pod
cp lib/XML/LibXML/NodeList.pm blib/lib/XML/LibXML/NodeList.pm
cp lib/XML/LibXML/Comment.pod blib/lib/XML/LibXML/Comment.pod
cp lib/XML/LibXML/Dtd.pod blib/lib/XML/LibXML/Dtd.pod
/opt/perl5.8.0/bin/perl /opt/perl5.8.0/lib/5.8.0/ExtUtils/xsubpp
-typemap /opt/perl5.8.0/lib/5.8.0/ExtUtils/typemap -typemap typemap
LibXML.xs > LibXML.xsc && mv LibXML.xsc LibXML.c
cc -c -I/WWW/ns-home/sandpit/svcs/local/include/libxml2
-I/WWW/ns-home/sandpit/svcs/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.56\" -DXS_VERSION=\"1.56\"
-KPIC "-I/opt/perl5.8.0/lib/5.8.0/sun4-solaris/CORE" -DHAVE_UTF8
-DHAVE_BLANK LibXML.c
"/WWW/ns-home/sandpit/svcs/local/include/libxml2/libxml/DOCBparser.h",
line 18: #warning: "The DOCBparser module has been deprecated in
libxml2-2.6.0"
"LibXML.xs", line 73: only one storage class allowed
"LibXML.xs", line 74: only one storage class allowed
"LibXML.xs", line 76: only one storage class allowed
"LibXML.xs", line 77: only one storage class allowed
"LibXML.xs", line 78: only one storage class allowed
"LibXML.xs", line 79: only one storage class allowed
"LibXML.xs", line 4319: warning: argument #1 is incompatible with prototype:
prototype: pointer to const unsigned char :
"/WWW/ns-home/sandpit/svcs/local/include/libxml2/libxml/parser.h", line 811
argument : pointer to char
"LibXML.xs", line 4377: warning: implicit function declaration:
xmlC14NDocDumpMemory
cc: acomp failed for LibXML.c
make: *** [LibXML.o] Error 2