You are viewing a plain text version of this content. The canonical link for it is here.
Posted to p-dev@xerces.apache.org by Cor Bosman <co...@xs4all.nl> on 2001/10/29 15:14:11 UTC
compiling xerces-p
Hi all, im trying to get xerces-p working on RedHat 7.2 to no avail..
I compiled Xerces-C 1.5.2 from source.
XERCESCROOT=/usr/src/xerces-c-src1_5_2
Im using 1.5.7.
When I try to make this I get:
[root@adsl-linux XML-Xerces-1.5.7]# perl Makefile.PL
Using XERCES_LIB = /usr/src/xerces-c-src1_5_2/lib
Using XERCES_INCLUDE = /usr/src/xerces-c-src1_5_2/include
Checking to see if libxerces is in your library path...Checking if your kit is complete...
Looks good
Processing hints file hints/linux.pl
Warning: Guessing NAME [XML-Xerces] from current directory name.
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for Handler
Success!!
Using Xerces-C version: 1.5.2
Checking if your kit is complete...
Looks good
Processing hints file hints/linux.pl
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for XML::Xerces
Then I try and make this..
[root@adsl-linux XML-Xerces-1.5.7]# make
cp Xerces.pm blib/lib/XML/Xerces.pm
cp DOMParse/DOMParse.pm blib/lib/XML/Xerces/DOMParse.pm
make -C Handler static
make[1]: Entering directory `/usr/src/XML-Xerces-1.5.7/Handler'
gcc -c -I. -IHandler -I/usr/src/xerces-c-src1_5_2/include -fno-strict-aliasing -O2 -march=i386 -mcpu=i686 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE PerlContentCallbackHandler.cpp
gcc -c -I. -IHandler -I/usr/src/xerces-c-src1_5_2/include -fno-strict-aliasing -O2 -march=i386 -mcpu=i686 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE PerlDocumentCallbackHandler.cpp
gcc -c -I. -IHandler -I/usr/src/xerces-c-src1_5_2/include -fno-strict-aliasing -O2 -march=i386 -mcpu=i686 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE PerlErrorCallbackHandler.cpp
gcc -c -I. -IHandler -I/usr/src/xerces-c-src1_5_2/include -fno-strict-aliasing -O2 -march=i386 -mcpu=i686 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE PerlExceptionHandler.cpp
rm -rf ../blib/arch/auto/Handler/Handler.a
/usr/bin/ar cr ../blib/arch/auto/Handler/Handler.a PerlContentCallbackHandler.o PerlDocumentCallbackHandler.o PerlErrorCallbackHandler.o PerlExceptionHandler.o && : ../blib/arch/auto/Handler/Handler.a
chmod 755 ../blib/arch/auto/Handler/Handler.a
make[1]: Leaving directory `/usr/src/XML-Xerces-1.5.7/Handler'
make[1]: Entering directory `/usr/src/XML-Xerces-1.5.7/DOMParse'
Skip ../blib/lib/XML/Xerces/DOMParse.pm (unchanged)
Manifying ../blib/man3/XML::Xerces::DOMParse.3pm
make[1]: Leaving directory `/usr/src/XML-Xerces-1.5.7/DOMParse'
gcc -c -I. -IHandler -I/usr/src/xerces-c-src1_5_2/include -D_REENTRANT -DDEBIAN -O2 -march=i386 -mcpu=i686 -DVERSION=\"1.5.7\" -DXS_VERSION=\"1.5.7\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE Xerces.C
Xerces.C: In function `void _wrap_XMLPlatformUtils_registerLazyData (CV
*)':
Xerces.C:1413: no method `XMLPlatformUtils::registerLazyData'
Xerces.C: In function `void _wrap_XMLPlatformUtils_cleanupLazyData (CV
*)':
Xerces.C:1438: no method `XMLPlatformUtils::cleanupLazyData'
make: *** [Xerces.o] Error 1
What am I forgetting?
Regards,
Cor Bosman
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
Re: compiling xerces-p
Posted by Cor Bosman <co...@xs4all.net>.
Yeah, unfortunately the only working source of xerces-c with regards to
xerces-p got deleted from the apache website :) Guess they read this
list too and figured "WHat?? Someone can actually use this, lets fix that!" :)
Luckily I had it before it got deleted.
Cor
On Thu, Nov 01, 2001 at 08:24:51PM -0500, Thomas K Harris wrote:
>
> > Unfortunately, the CVS code added a few methods and removed a few
> > methods from the public API. This means that you need the following
> > Xerces-C version to work with XML-Xerces-1.5.7:
> >
> > http://xml.apache.org/dist/xerces-c/nightly/2001-10-05/
> >
> > This has been tested and works without a hitch.
>
> 2001-10-05 seems to be missing from the web page. I used the next closest
> one, 2001-10-22, and it fixed the problem that Cor and I were having with
> the missing API stuff in the 1.5.2 release, but I'm also getting:
>
> Xerces.C: In function `struct swig_type_info * SWIG_TypeCheck(SV *,
> swig_type_info *)':
> Xerces.C:175: passing `const char *' as argument 2 of
> `Perl_sv_derived_from(SV *, char *)' discards qualifiers
>
> I didn't see any references to this problem in the mailing list, but maybe I
> missed it.
>
> Thanks in advance,
> -Thomas Harris
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
Re: compiling xerces-p
Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Thomas K Harris" <Th...@cs.cmu.edu> writes:
> > Unfortunately, the CVS code added a few methods and removed a few
> > methods from the public API. This means that you need the following
> > Xerces-C version to work with XML-Xerces-1.5.7:
> >
> > http://xml.apache.org/dist/xerces-c/nightly/2001-10-05/
> >
> > This has been tested and works without a hitch.
>
> 2001-10-05 seems to be missing from the web page. I used the next closest
> one, 2001-10-22, and it fixed the problem that Cor and I were having with
> the missing API stuff in the 1.5.2 release, but I'm also getting:
>
> Xerces.C: In function `struct swig_type_info * SWIG_TypeCheck(SV *,
> swig_type_info *)':
> Xerces.C:175: passing `const char *' as argument 2 of
> `Perl_sv_derived_from(SV *, char *)' discards qualifiers
>
> I didn't see any references to this problem in the mailing list, but maybe I
> missed it.
Yup, look here:
http://marc.theaimsgroup.com/?l=xerces-p-dev&m=100277140125970&w=2
Just add a (char*) cast on that line and it fixes it.
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
RE: compiling xerces-p
Posted by Thomas K Harris <Th...@cs.cmu.edu>.
> Unfortunately, the CVS code added a few methods and removed a few
> methods from the public API. This means that you need the following
> Xerces-C version to work with XML-Xerces-1.5.7:
>
> http://xml.apache.org/dist/xerces-c/nightly/2001-10-05/
>
> This has been tested and works without a hitch.
2001-10-05 seems to be missing from the web page. I used the next closest
one, 2001-10-22, and it fixed the problem that Cor and I were having with
the missing API stuff in the 1.5.2 release, but I'm also getting:
Xerces.C: In function `struct swig_type_info * SWIG_TypeCheck(SV *,
swig_type_info *)':
Xerces.C:175: passing `const char *' as argument 2 of
`Perl_sv_derived_from(SV *, char *)' discards qualifiers
I didn't see any references to this problem in the mailing list, but maybe I
missed it.
Thanks in advance,
-Thomas Harris
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
Re: compiling xerces-p
Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Cor Bosman" <co...@xs4all.net> writes:
> Ok, but Im getting all kinds of problems with 1.5.1 also..
>
> Let me show you: (again redhat 7.2, perl 5.6.1)
Sorry, Cor, I realize now that you're not on the xerces-p list. I
wrote about this problem last week.
The IBM team frequently changes the public API. I think this sucks. In
any case, I have needed to compile XML::Xerces off the Xerces-C CVS
code since August because of import memory fixes that were made then.
Unfortunately, the CVS code added a few methods and removed a few
methods from the public API. This means that you need the following
Xerces-C version to work with XML-Xerces-1.5.7:
http://xml.apache.org/dist/xerces-c/nightly/2001-10-05/
This has been tested and works without a hitch.
I'll be releasing XML-Xerces-1.5.?? later this week, and I will ensure
that it compiles against Xerces-1.5.2
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
Re: compiling xerces-p
Posted by Cor Bosman <co...@xs4all.net>.
Ok, but Im getting all kinds of problems with 1.5.1 also..
Let me show you: (again redhat 7.2, perl 5.6.1)
XERCESCROOT=/usr/local/xerces-c1_5_1-linux (got the binary version)
[root@adsl-linux XML-Xerces-1.5.7]# perl Makefile.PL
Using XERCES_LIB = /usr/local/xerces-c1_5_1-linux/lib
Using XERCES_INCLUDE = /usr/local/xerces-c1_5_1-linux/include
Checking to see if libxerces is in your library path...Checking if your kit is complete...
Looks good
Processing hints file hints/linux.pl
Warning: Guessing NAME [XML-Xerces] from current directory name.
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for Handler
Success!!
Using Xerces-C version: 1.5.1
Checking if your kit is complete...
Looks good
Processing hints file hints/linux.pl
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for XML::Xerces
And now a make
[root@adsl-linux XML-Xerces-1.5.7]# make
cp Xerces.pm blib/lib/XML/Xerces.pm
cp DOMParse/DOMParse.pm blib/lib/XML/Xerces/DOMParse.pm
make -C Handler static
make[1]: Entering directory `/usr/src/XML-Xerces-1.5.7/Handler'
gcc -c -I. -IHandler -I/usr/local/xerces-c1_5_1-linux/include -fno-strict-aliasing -O2 -march=i386 -mcpu=i686 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE PerlContentCallbackHandler.cpp
gcc -c -I. -IHandler -I/usr/local/xerces-c1_5_1-linux/include -fno-strict-aliasing -O2 -march=i386 -mcpu=i686 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE PerlDocumentCallbackHandler.cpp
gcc -c -I. -IHandler -I/usr/local/xerces-c1_5_1-linux/include -fno-strict-aliasing -O2 -march=i386 -mcpu=i686 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE PerlErrorCallbackHandler.cpp
gcc -c -I. -IHandler -I/usr/local/xerces-c1_5_1-linux/include -fno-strict-aliasing -O2 -march=i386 -mcpu=i686 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE PerlExceptionHandler.cpp
In file included from PerlExceptionHandler.cpp:4:
/usr/local/xerces-c1_5_1-linux/include/util/PlatformUtils.hpp:590:6: warning: no newline at end of file
/usr/local/xerces-c1_5_1-linux/include/util/PlatformUtils.hpp:590:6: warning: no newline at end of file
rm -rf ../blib/arch/auto/Handler/Handler.a
/usr/bin/ar cr ../blib/arch/auto/Handler/Handler.a PerlContentCallbackHandler.o PerlDocumentCallbackHandler.o PerlErrorCallbackHandler.o PerlExceptionHandler.o && : ../blib/arch/auto/Handler/Handler.a
chmod 755 ../blib/arch/auto/Handler/Handler.a
make[1]: Leaving directory `/usr/src/XML-Xerces-1.5.7/Handler'
make[1]: Entering directory `/usr/src/XML-Xerces-1.5.7/DOMParse'
Skip ../blib/lib/XML/Xerces/DOMParse.pm (unchanged)
Manifying ../blib/man3/XML::Xerces::DOMParse.3pm
make[1]: Leaving directory `/usr/src/XML-Xerces-1.5.7/DOMParse'
gcc -c -I. -IHandler -I/usr/local/xerces-c1_5_1-linux/include -D_REENTRANT -DDEBIAN -O2 -march=i386 -mcpu=i686 -DVERSION=\"1.5.7\" -DXS_VERSION=\"1.5.7\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE Xerces.C
In file included from /usr/local/xerces-c1_5_1-linux/include/internal/XMLScanner.hpp:172,
from /usr/local/xerces-c1_5_1-linux/include/internal/VecAttributesImpl.hpp:86,
from /usr/local/xerces-c1_5_1-linux/include/parsers/SAX2XMLReaderImpl.hpp:118,
from /usr/local/xerces-c1_5_1-linux/include/sax2/XMLReaderFactory.hpp:76,
from Xerces.C:495:
/usr/local/xerces-c1_5_1-linux/include/framework/XMLPScanToken.hpp:152:6: warning: no newline at end of file
/usr/local/xerces-c1_5_1-linux/include/framework/XMLPScanToken.hpp:152:6: warning: no newline at end of file
In file included from Xerces.C:496:
/usr/local/xerces-c1_5_1-linux/include/util/PlatformUtils.hpp:590:6: warning: no newline at end of file
/usr/local/xerces-c1_5_1-linux/include/util/PlatformUtils.hpp:590:6: warning: no newline at end of file
In file included from Xerces.C:498:
/usr/local/xerces-c1_5_1-linux/include/util/XMLUri.hpp:449:6: warning: no newline at end of file
/usr/local/xerces-c1_5_1-linux/include/util/XMLUri.hpp:449:6: warning: no newline at end of file
In file included from Xerces.C:511:
/usr/local/xerces-c1_5_1-linux/include/framework/StdInInputSource.hpp:150:6: warning: no newline at end of file
/usr/local/xerces-c1_5_1-linux/include/framework/StdInInputSource.hpp:150:6: warning: no newline at end of file
In file included from /usr/local/xerces-c1_5_1-linux/include/framework/URLInputSource.hpp:100,
from Xerces.C:512:
/usr/local/xerces-c1_5_1-linux/include/util/XMLURL.hpp:247:6: warning: no newline at end of file
/usr/local/xerces-c1_5_1-linux/include/util/XMLURL.hpp:247:6: warning: no newline at end of file
Xerces.C: In function `void _wrap_SAXParser_getScanner (CV *)':
Xerces.C:32140: no matching function for call to `SAXParser::getScanner
()'
Xerces.C: In function `void
_wrap_SAXParser_getValidationSchemaFullChecking (CV *)':
Xerces.C:32274: no matching function for call to
`SAXParser::getValidationSchemaFullChecking ()'
Xerces.C: In function `void
_wrap_SAXParser_setValidationSchemaFullChecking (CV *)':
Xerces.C:32536: no matching function for call to
`SAXParser::setValidationSchemaFullChecking (bool &)'
Xerces.C: In function `void _wrap_DOMParser_getScanner (CV *)':
Xerces.C:33419: no matching function for call to `DOMParser::getScanner
()'
Xerces.C: In function `void
_wrap_DOMParser_getValidationSchemaFullChecking (CV *)':
Xerces.C:33553: no matching function for call to
`DOMParser::getValidationSchemaFullChecking ()'
Xerces.C: In function `void
_wrap_DOMParser_setValidationSchemaFullChecking (CV *)':
Xerces.C:34177: no matching function for call to
`DOMParser::setValidationSchemaFullChecking (bool &)'
Xerces.C: In function `void
_wrap_IDOMParser_getValidationSchemaFullChecking (CV *)':
Xerces.C:34915: no matching function for call to
`IDOMParser::getValidationSchemaFullChecking ()'
Xerces.C: In function `void
_wrap_IDOMParser_setValidationSchemaFullChecking (CV *)':
Xerces.C:35506: no matching function for call to
`IDOMParser::setValidationSchemaFullChecking (bool &)'
Xerces.C: In function `void _wrap_perl5_Xerces_var_init (CV *)':
Xerces.C:36520: `FACET_List_Null_baseValidator' is not a member of type
`XMLExcepts'
Xerces.C:36521: `FACET_Union_Null_memberTypeValidators' is not a member
of type `XMLExcepts'
Xerces.C:36522: `FACET_Union_Null_baseValidator' is not a member of
type `XMLExcepts'
Xerces.C:36523: `FACET_Union_invalid_baseValidatorType' is not a member
of type `XMLExcepts'
Xerces.C:36539: `VALUE_Invalid_NCName' is not a member of type
`XMLExcepts'
Xerces.C:36540: `VALUE_ID_Not_Unique' is not a member of type
`XMLExcepts'
Xerces.C:36541: `VALUE_ENTITY_Invalid' is not a member of type
`XMLExcepts'
Xerces.C:36542: `VALUE_QName_Invalid' is not a member of type
`XMLExcepts'
Xerces.C:36543: `VALUE_NOTATION_Invalid' is not a member of type
`XMLExcepts'
Xerces.C:36544: `VALUE_no_match_memberType' is not a member of type
`XMLExcepts'
Xerces.C:36545: `VALUE_URI_Malformed' is not a member of type
`XMLExcepts'
Xerces.C:36551: `XMLNUM_URI_Component_Empty' is not a member of type
`XMLExcepts'
Xerces.C:36552: `XMLNUM_URI_Component_for_GenURI_Only' is not a member
of type `XMLExcepts'
Xerces.C:36553: `XMLNUM_URI_Component_Invalid_EscapeSequence' is not a
member of type `XMLExcepts'
Xerces.C:36554: `XMLNUM_URI_Component_Invalid_Char' is not a member of
type `XMLExcepts'
Xerces.C:36555: `XMLNUM_URI_Component_Set_Null' is not a member of type
`XMLExcepts'
Xerces.C:36556: `XMLNUM_URI_Component_Not_Conformant' is not a member
of type `XMLExcepts'
Xerces.C:36557: `XMLNUM_URI_No_Scheme' is not a member of type
`XMLExcepts'
Xerces.C:36558: `XMLNUM_URI_NullHost' is not a member of type
`XMLExcepts'
Xerces.C:36559: `XMLNUM_URI_NullPath' is not a member of type
`XMLExcepts'
Xerces.C:36560: `XMLNUM_URI_Component_inPath' is not a member of type
`XMLExcepts'
Xerces.C:36561: `XMLNUM_URI_PortNo_Invalid' is not a member of type
`XMLExcepts'
Xerces.C:36562: `XMLNUM_DBL_FLT_maxNeg' is not a member of type
`XMLExcepts'
Xerces.C:36563: `XMLNUM_DBL_FLT_maxPos' is not a member of type
`XMLExcepts'
Xerces.C:36564: `XMLNUM_DBL_FLT_minNegPos' is not a member of type
`XMLExcepts'
Xerces.C:36565: `XMLNUM_DBL_FLT_InvalidType' is not a member of type
`XMLExcepts'
Xerces.C:36583: `DV_InvalidOperation' is not a member of type
`XMLExcepts'
make: *** [Xerces.o] Error 1
What am I forgetting here?
Cor
On Mon, Oct 29, 2001 at 08:18:56AM -0700, Jason E. Stewart wrote:
> "Cor Bosman" <co...@xs4all.nl> writes:
>
> > Hi all, im trying to get xerces-p working on RedHat 7.2 to no avail..
> >
> > I compiled Xerces-C 1.5.2 from source.
> > XERCESCROOT=/usr/src/xerces-c-src1_5_2
>
> > Xerces.C: In function `void _wrap_XMLPlatformUtils_registerLazyData (CV
> > *)':
> > Xerces.C:1413: no method `XMLPlatformUtils::registerLazyData'
> > Xerces.C: In function `void _wrap_XMLPlatformUtils_cleanupLazyData (CV
> > *)':
> > Xerces.C:1438: no method `XMLPlatformUtils::cleanupLazyData'
> > make: *** [Xerces.o] Error 1
>
> Aaaaarrrrgggghhhh!!!
>
> The IBM Xerces-C team in Toronto deleted a bunch of stuff from the
> XMLPlatformUtils class interface the day of the release. Great.
>
> This means that you won't be able to compile against 1.5.2 until I
> release XML::Xerces-1.5.2-0 (or whatever version number we decide on).
>
> Sorry,
> jas.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
Re: compiling xerces-p
Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Cor Bosman" <co...@xs4all.nl> writes:
> Hi all, im trying to get xerces-p working on RedHat 7.2 to no avail..
>
> I compiled Xerces-C 1.5.2 from source.
> XERCESCROOT=/usr/src/xerces-c-src1_5_2
> Xerces.C: In function `void _wrap_XMLPlatformUtils_registerLazyData (CV
> *)':
> Xerces.C:1413: no method `XMLPlatformUtils::registerLazyData'
> Xerces.C: In function `void _wrap_XMLPlatformUtils_cleanupLazyData (CV
> *)':
> Xerces.C:1438: no method `XMLPlatformUtils::cleanupLazyData'
> make: *** [Xerces.o] Error 1
Aaaaarrrrgggghhhh!!!
The IBM Xerces-C team in Toronto deleted a bunch of stuff from the
XMLPlatformUtils class interface the day of the release. Great.
This means that you won't be able to compile against 1.5.2 until I
release XML::Xerces-1.5.2-0 (or whatever version number we decide on).
Sorry,
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org