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 "Parand T. Darugar" <td...@velocigen.com> on 2000/04/25 19:43:53 UTC

Compiling Xerces P on linux?

Hello,

  I wanted to try compiling Xerces Perl on my linux box,
mainly to run some basic benchmarks and get a sense of
how things work. I was unsuccessful at my last attempt. 
Details below, and in previous message. 

  What's the latest on getting the package compiled?

- Is there a newer package, or should I be using 

http://www.binevolve.com/~tdarugar/xerces-p/Xerces-0.02.tar.gz 

- Which version of Swig do I need? Do I need to apply the patch
Jason sent around earlier?

- Which version of Xerces do I need to use?

  In other words, are there any semi idiot proof instructions
for compiling Xerces under linux?

My earlier attempt:
--------------------------------------------------------
  I tried compiling on Linux i686 Redhat6.1, kernel 2.2.12-20,
with Perl 5.005_03, swig swig-1.1p5-2, xerces-c_1_1_0-linux/
  When I try 
perl Makefile.PL

 I get:
Running SWIG
Generating wrappers for Perl 5
patching file `Xerces_wrap.cpp'
Hunk #1 FAILED at 4954.
Hunk #2 FAILED at 5610.
2 out of 2 hunks FAILED -- saving rejects to Xerces_wrap.cpp.rej
Configuring for Linux
Writing Makefile for Xerces
--------------------------------------------------------

Best,

Parand Tony Darugar			tdarugar@velocigen.com
858-622-1164				High Performance Perl Server Pages
858-622-0303 fax			VelociGen XML Server
http://www.velocigen.com/

Re: Compiling Xerces P on linux?

Posted by "Jason E. Stewart" <je...@ncgr.org>.
>>>>> "Parand" == Parand T Darugar <td...@velocigen.com> writes:

Parand> - Is there a newer package, or should I be using 

Parand> http://www.binevolve.com/~tdarugar/xerces-p/Xerces-0.02.tar.gz 

This is the latest version that I've produced. When Tom gets a chance
to look at merging the windows changes in, there will be another one.

Parand> - Which version of Swig do I need? Do I need to apply the patch
Parand> Jason sent around earlier?

I would recommend using the latest version from:
  swig.sourceforge.net/cvs.html 
and follow the directions for grabbing the latest cvs tree.

*** Do not use swig1.3a2 *** it is broken.

if you use the cvs version, you will need the patch file called:
Xerces_wrap.patch.swig1.3a3

Re: Compiling Xerces P on linux?

Posted by "Harmon S. Nine" <hn...@ns1.netarx.com>.
Hi Parand.

Sounds like you're not using the version of SWIG that was used to build
the xerces-perl package.  The patches being complained about mung-in some
function overloading into the package, and the context that the patch
program uses to find the locations for the patches is wrong when a
different version of SWIG is used.  I'm using SWIG version 1.1.p5-6 in the
debian distribution of Linux.  I don't think I've updated my SWIG since
xerces-perl was constructed, so 1.1.p5-6 should be the one to use to
install it.

HTH

-- Harmon



On Tue, 25 Apr 2000, Parand T. Darugar wrote:

> Hello,
> 
>   I wanted to try compiling Xerces Perl on my linux box,
> mainly to run some basic benchmarks and get a sense of
> how things work. I was unsuccessful at my last attempt. 
> Details below, and in previous message. 
> 
>   What's the latest on getting the package compiled?
> 
> - Is there a newer package, or should I be using 
> 
> http://www.binevolve.com/~tdarugar/xerces-p/Xerces-0.02.tar.gz 
> 
> - Which version of Swig do I need? Do I need to apply the patch
> Jason sent around earlier?
> 
> - Which version of Xerces do I need to use?
> 
>   In other words, are there any semi idiot proof instructions
> for compiling Xerces under linux?
> 
> My earlier attempt:
> --------------------------------------------------------
>   I tried compiling on Linux i686 Redhat6.1, kernel 2.2.12-20,
> with Perl 5.005_03, swig swig-1.1p5-2, xerces-c_1_1_0-linux/
>   When I try 
> perl Makefile.PL
> 
>  I get:
> Running SWIG
> Generating wrappers for Perl 5
> patching file `Xerces_wrap.cpp'
> Hunk #1 FAILED at 4954.
> Hunk #2 FAILED at 5610.
> 2 out of 2 hunks FAILED -- saving rejects to Xerces_wrap.cpp.rej
> Configuring for Linux
> Writing Makefile for Xerces
> --------------------------------------------------------
> 
> Best,
> 
> Parand Tony Darugar			tdarugar@velocigen.com
> 858-622-1164				High Performance Perl Server Pages
> 858-622-0303 fax			VelociGen XML Server
> http://www.velocigen.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
> 

-- 
---------------------------
Dr. Harmon S. Nine
Netarx, Inc.

30910 Telegraph Road
Bingham Farms, MI 48025

PH.  (248)647-9800
FX.  (248)647-9840