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 "Jason E. Stewart" <ja...@openinformatics.com> on 2001/06/19 23:39:22 UTC
Re: [Bug 2239] New: - Error building Xerces.C
Short answer: this is a swig incompatibility.
I don't know how this is happening. Did you rebuild Xerces.C and
Xerces.pm using your copy of swig? What was the output of 'perl
Makefile.PL'?
jas.
bugzilla@apache.org writes:
> + bash-2.02$ make
> + gcc -c -I. -IHandler -I/usr/local/home/aravind/xerces-c1_4_0-SolCC/include -
> + D_REENTRANT -DDEBIAN -DHAS_BOOL -DSWIG_1_1 -O -DVERSION=\"1.4.1\" -
> + DXS_VERSION=\"1.4.1\" -fPIC -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE
> + Xerces.C
> + Xerces.C:59: `swig_type_info' was not declared in this scope
> + Xerces.C:59: parse error before `)'
> + Xerces.C:60: ANSI C++ forbids declaration `SWIGRUNTIME' with no type
> + Xerces.C: In function `int SWIGRUNTIME(...)':
> + Xerces.C:60: type specifier omitted for parameter
> + Xerces.C:60: parse error before `*'
> + Xerces.C:61: ANSI C++ forbids declaration `SWIG_TypeCheck' with no type
> + Xerces.C: In function `int SWIG_TypeCheck(...)':
> + Xerces.C:61: confused by earlier errors, bailing out
> + *** Error code 1
> + make: Fatal error: Command failed for target `Xerces.o'
> + bash-2.02$
> + bash-2.02$ swig -version
> +
> + SWIG Version 1.1 (Build 883)
> + Copyright (c) 1995-98
> + University of Utah and the Regents of the University of California
> +
> + Compiled with c++
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
RE: [Bug 2239] New: - Error building Xerces.C
Posted by Aravind Vijayakirthi <ar...@tgix.com>.
Hi Jason,
I got myself a newer version of gcc:
~/XML-Xerces-1.5.0> gcc -v
Reading specs from
/opt/TWWfsw/gcc29/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
gcc version 2.95.2 19991024 (release)
~/XML-Xerces-1.5.0>
I got the 1.5 version of xerces-p. I also happen to have xecesc 1.5 (which I
didn't build, but the binaries work fine)
I can build xercesp but I can't run any of the tests. The full test output
is attached, but all the errors have the form:
t/DOMCount..........Can't load 'blib/arch/auto/XML/Xerces/Xerces.so' for
module
XML::Xerces: ld.so.1: /bin/perl: fatal: relocation error: file
blib/arch/auto/XM
L/Xerces/Xerces.so: symbol __tf12XMLException: referenced symbol not found
at /u
sr/local/lib/perl5/5.6.1/sun4-solaris/DynaLoader.pm line 206.
at blib/lib/XML/Xerces.pm line 7
Compilation failed in require at t/DOMCount.t line 14.
BEGIN failed--compilation aborted at t/DOMCount.t line 14.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
Thanks for any help. (perl was built with gcc 2.8, my previous version of
gcc; I don't know if that matters)
aravind
>-----Original Message-----
>From: Jason E. Stewart [mailto:jason@openinformatics.com]
>Sent: Tuesday, July 03, 2001 12:15 PM
>To: Aravind Vijayakirthi
>Cc: xerces-p-dev@xml.apache.org
>Subject: Re: [Bug 2239] New: - Error building Xerces.C
>
>
>Hi Aravind,
>
>If you download and build the Xerces.pm-1.5.0 release, this should
>help. SWIG is now completely optional for users.
>
>jas.
>
>"Aravind Vijayakirthi" <ar...@tgix.com> writes:
>
>> >-----Original Message-----
>> >From: jasons@amadeus.openinformatics.com
>> >[mailto:jasons@amadeus.openinformatics.com]On Behalf Of Jason E. Stewart
>> >Sent: Tuesday, June 19, 2001 5:39 PM
>> >To: aravind@tgix.com
>> >Cc: xerces-p-dev@xml.apache.org
>> >Subject: Re: [Bug 2239] New: - Error building Xerces.C
>> >
>> >
>> >Short answer: this is a swig incompatibility.
>> >
>> >I don't know how this is happening. Did you rebuild Xerces.C and
>> >Xerces.pm using your copy of swig?
>>
>> I downloaded swig from http://www.swig.org/download.html and compiled it.
>>
>> > What was the output of 'perl Makefile.PL'?
>>
>> bash-2.02$ perl Makefile.PL
>> Using XERCES_LIB = /usr/local/home/aravind/xerces-c1_4_0-SolCC/lib
>> Using XERCES_INCLUDE =
>/usr/local/home/aravind/xerces-c1_4_0-SolCC/include
>> Using SWIG version: SWIG_1_1
>> Using Xerces-C version: 1.4
>> Writing Makefile for XML::Xerces::DOMParse
>> Writing Makefile for Handler
>> Writing Makefile for XML::Xerces
>> bash-2.02$
>>
>>
>> aravind
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
>
>
Re: [Bug 2239] New: - Error building Xerces.C
Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
Hi Aravind,
If you download and build the Xerces.pm-1.5.0 release, this should
help. SWIG is now completely optional for users.
jas.
"Aravind Vijayakirthi" <ar...@tgix.com> writes:
> >-----Original Message-----
> >From: jasons@amadeus.openinformatics.com
> >[mailto:jasons@amadeus.openinformatics.com]On Behalf Of Jason E. Stewart
> >Sent: Tuesday, June 19, 2001 5:39 PM
> >To: aravind@tgix.com
> >Cc: xerces-p-dev@xml.apache.org
> >Subject: Re: [Bug 2239] New: - Error building Xerces.C
> >
> >
> >Short answer: this is a swig incompatibility.
> >
> >I don't know how this is happening. Did you rebuild Xerces.C and
> >Xerces.pm using your copy of swig?
>
> I downloaded swig from http://www.swig.org/download.html and compiled it.
>
> > What was the output of 'perl Makefile.PL'?
>
> bash-2.02$ perl Makefile.PL
> Using XERCES_LIB = /usr/local/home/aravind/xerces-c1_4_0-SolCC/lib
> Using XERCES_INCLUDE = /usr/local/home/aravind/xerces-c1_4_0-SolCC/include
> Using SWIG version: SWIG_1_1
> Using Xerces-C version: 1.4
> Writing Makefile for XML::Xerces::DOMParse
> Writing Makefile for Handler
> Writing Makefile for XML::Xerces
> bash-2.02$
>
>
> aravind
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
RE: [Bug 2239] New: - Error building Xerces.C
Posted by Aravind Vijayakirthi <ar...@tgix.com>.
>-----Original Message-----
>From: jasons@amadeus.openinformatics.com
>[mailto:jasons@amadeus.openinformatics.com]On Behalf Of Jason E. Stewart
>Sent: Tuesday, June 19, 2001 5:39 PM
>To: aravind@tgix.com
>Cc: xerces-p-dev@xml.apache.org
>Subject: Re: [Bug 2239] New: - Error building Xerces.C
>
>
>Short answer: this is a swig incompatibility.
>
>I don't know how this is happening. Did you rebuild Xerces.C and
>Xerces.pm using your copy of swig?
I downloaded swig from http://www.swig.org/download.html and compiled it.
> What was the output of 'perl Makefile.PL'?
bash-2.02$ perl Makefile.PL
Using XERCES_LIB = /usr/local/home/aravind/xerces-c1_4_0-SolCC/lib
Using XERCES_INCLUDE = /usr/local/home/aravind/xerces-c1_4_0-SolCC/include
Using SWIG version: SWIG_1_1
Using Xerces-C version: 1.4
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for Handler
Writing Makefile for XML::Xerces
bash-2.02$
aravind
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org