This is a problem between the version of Xerces-C and
XML::Xerces. Read the README, or search the mailing list archives at:

  http://marc.theaimsgroup.com/?l=xerces-p-dev&r=1&w=2

Cheers,
jas.

"Jason E. Stewart" <[EMAIL PROTECTED]> writes:

> From: "Simon Rosenthal" <[EMAIL PROTECTED]>
> Subject: problem building XML::Xerces
> To: [EMAIL PROTECTED]
> Date: Mon, 2 Jun 2003 07:55:17 -0700 (PDT)
> 
> Hi:
> 
> I'm running into severe trouble trying to build XML::Xerces. I'm seeing
> compilation failures when compiling in the Handlers directory like the
> following.
> 
> ============
> make
> gcc -c  -I. -IHandler -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2
> -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro   -DVERSION=\"\"
> -DXS_VERSION=\"\" -fpic "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"  
> PerlContentCallbackHandler.cpp
> In file included from PerlContentCallbackHandler.cpp:2:
> PerlContentCallbackHandler.hpp:8: parse error before `,' token
> PerlContentCallbackHandler.hpp:14: parse error before `*' token
> PerlContentCallbackHandler.hpp:15: destructors must be member functions
> PerlContentCallbackHandler.hpp:23: parse error before `&' token
> PerlContentCallbackHandler.hpp:36: parse error before `*' token
> PerlContentCallbackHandler.hpp:41: parse error before `}' token
> PerlContentCallbackHandler.cpp:5: invalid use of undefined type `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.hpp:8: forward declaration of `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.cpp: In member function `SV*
> PerlContentCallbackHandler::set_callback_obj(SV*)':
> PerlContentCallbackHandler.cpp:7: `callbackObj' undeclared (first use this
> function)
> PerlContentCallbackHandler.cpp:7: (Each undeclared identifier is reported only
> once for each function it appears in.)
> PerlContentCallbackHandler.cpp: At global scope:
> PerlContentCallbackHandler.cpp:20: parse error before `&' token
> PerlContentCallbackHandler.cpp:21: invalid use of undefined type `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.hpp:8: forward declaration of `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.cpp: In member function `void
> PerlContentCallbackHandler::startElement(...)':
> PerlContentCallbackHandler.cpp:34: `XMLString' undeclared (first use this
> function)
> PerlContentCallbackHandler.cpp:34: parse error before `::' token
> PerlContentCallbackHandler.cpp:40: parse error before `::' token
> PerlContentCallbackHandler.cpp:46: parse error before `::' token
> PerlContentCallbackHandler.cpp:55: `attrs' undeclared (first use this function)
> PerlContentCallbackHandler.cpp: At global scope:
> PerlContentCallbackHandler.cpp:73: invalid use of undefined type `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.hpp:8: forward declaration of `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.cpp: In member function `void
> PerlContentCallbackHandler::endElement(const XMLCh*, const XMLCh*, const
> XMLCh*)':
> PerlContentCallbackHandler.cpp:86: parse error before `::' token
> PerlContentCallbackHandler.cpp:92: parse error before `::' token
> PerlContentCallbackHandler.cpp:98: parse error before `::' token
> PerlContentCallbackHandler.cpp: At global scope:
> PerlContentCallbackHandler.cpp:119: invalid use of undefined type `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.hpp:8: forward declaration of `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.cpp: In member function `void
> PerlContentCallbackHandler::characters(const XMLCh*, unsigned int)':
> PerlContentCallbackHandler.cpp:132: parse error before `::' token
> PerlContentCallbackHandler.cpp: At global scope:
> PerlContentCallbackHandler.cpp:153: invalid use of undefined type `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.hpp:8: forward declaration of `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.cpp: In member function `void
> PerlContentCallbackHandler::ignorableWhitespace(const XMLCh*, unsigned int)':
> PerlContentCallbackHandler.cpp:166: parse error before `::' token
> PerlContentCallbackHandler.cpp: At global scope:
> PerlContentCallbackHandler.cpp:184: invalid use of undefined type `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.hpp:8: forward declaration of `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.cpp:207: invalid use of undefined type `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.hpp:8: forward declaration of `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.cpp:229: invalid use of undefined type `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.hpp:8: forward declaration of `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.cpp:253: invalid use of undefined type `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.hpp:8: forward declaration of `class
> PerlContentCallbackHandler'
> PerlContentCallbackHandler.cpp: In member function `void
> PerlContentCallbackHandler::processingInstruction(const XMLCh*, const XMLCh*)':
> PerlContentCallbackHandler.cpp:266: parse error before `::' token
> PerlContentCallbackHandler.cpp:272: parse error before `::' token
> PerlContentCallbackHandler.cpp: At global scope:
> PerlContentCallbackHandler.cpp:290: parse error before `*' token
> ....
> 
> Some more information
> 
> Platform: mandrake Linux 9.1
> 
> Perl:
> 
> Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
>   Platform:
>     osname=linux, osvers=2.4.20-2mdkenterprise,
> archname=i386-linux-thread-multi
>     uname='linux no.mandrakesoft.com 2.4.20-2mdkenterprise #1 smp mon dec 9
> 14:28:32 cet 2002 i686 unknown unknown gnulinux '
>     config_args='-des -Darchname=i386-linux -Dcc=gcc -Doptimize=-O2
> -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -Dprefix=/usr
> -Dvendorprefix=/usr -Dsiteprefix=/usr -Dman3ext=3pm -Dcf_by=MandrakeSoft
> -Dmyhostname=localhost [EMAIL PROTECTED] -Dd_dosuid -Ud_csh
> -Duseshrplib -Dusethreads'
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=define use5005threads=undef useithreads=define
> usemultiplicity=define
>     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>   Compiler:
>     cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
>     optimize='-O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro',
>     cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
> -I/usr/include/gdbm'
>     ccversion='', gccversion='3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)',
> gccosandvers=''
>     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
>     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize=8
>     alignbytes=4, prototype=define
>   Linker and Libraries:
>     ld='gcc', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /lib /usr/lib
>     libs=-lnsl -lndbm -lgdbm -ldl -lm -lpthread -lc -lcrypt -lutil
>     perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
>     libc=/lib/libc-2.3.1.so, so=so, useshrplib=true, libperl=libperl.so
>     gnulibc_version='2.3.1'
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic
> -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
>     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
> 
> 
> Characteristics of this binary (from libperl):
>   Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
> PERL_IMPLICIT_CONTEXT
>   Built under linux
>   Compiled at Mar  6 2003 22:13:55
>   %ENV:
>     PERL5LIB="/home/simon/lib/perl"
>   @INC:
>     /home/simon/lib/perl
>     /usr/lib/perl5/5.8.0/i386-linux-thread-multi
>     /usr/lib/perl5/5.8.0
>     /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
>     /usr/lib/perl5/site_perl/5.8.0
>     /usr/lib/perl5/site_perl
>     /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
>     /usr/lib/perl5/vendor_perl/5.8.0
>     /usr/lib/perl5/vendor_perl
>     .
> 
> I've tried gcc 2.96 and 3.2, they both fail in the same way.
> 
> I've tried installing two versions of Xerces: 2.2.0 and 2.3.0; doesn't make any
> difference.
> 
> In the Handlers directory, PerlCallBackHandler.cpp compiles OK. However, I've
> also seen the same kind of errors when attempting compiles of
> Handlers/PerlErrorCallbackHandler.cpp and PerlDocumentCallbackHandler.cpp.
> 
> I'd be delighted to provide more details - just let me know what.
> 
> Thanks a lot !
> 
> - Simon
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ----------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to