XML::Xerces-2.5.0 succesfully built

"TOM, ALBERT K \(SBCSI\)" <[email protected]> Wed, 22 Jun 2005 09:11:15 -0700
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <EA7E51696F54EF44B3CC71758F4C48BF0E3D26@cafrfd1msgusr22.itservices.sbc.com>
Here is one Environment and the changes made
to allow XML-Xerces to work.

(1) Sun/Solaris 5.8
(2) Perl 5.8.6
     compiled using 64 bit processing.
     $Config{use64bitint} eq 'define'
     $Config{use64bitall} eq 'define'
(3) Sun Forte 6.2 C && C++ Compiler.
(4) Xerces-C-2.5.0
    runConfigure -p solaris -c cc -x CC -b 64 -P /appl_dsl/local
    This is a 64 bit compile.
    Xerces-C compiled right out of the box.
    No changes were required.
(5) XML-Xerces-2.5.0-0
    a) Modify Xerces.cpp around line 826. Add this code
       #ifdef bool
         #undef bool
       #endif /* bool */
       This code is describe in post dated 2005-02-22
       with subject 'Problem building XML::Xerces v2.5.0.'
    b) change CCFLAGS in XML-Xerces-2.5.0-0/Makefile
       the original setting is:
       CCFLAGS = -D_REENTRANT
       I added the options from the Perl compile.
       You can get the options with is Perl code:
       use Config;
       print $Config{ccflags}, "\n";
       The result is:
       CCFLAGS = -D_REENTRANT -xarch=v9 -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    c) run make with these overrides:
       make CC=CC LD=CC
       Both the compiler and linker must point to CC.
       Otherwise you get relocation error and reference symbol not found
when you run
       'make test'. 

I hope this helps.

Albert Tom