Ok. Now I changed that "unsigned int arg2" to "unsigned long arg2":

XS(_wrap_new_MemBufInputSource) {
    unsigned long arg2 ;
          XMLByte *xmlbytes = (XMLByte *)SvPV(ST(0), arg2);
      arg1 = new XMLByte[arg2];
      memcpy(arg1, xmlbytes, arg2);



Now, gmake worked like a charm, and he did all the .o files and the Xerces.sl
library.

Then I am trying to run gmake test... and this is what I get:

/home/siac/fjeronym/xerces/XML-Xerces-1.5.2_0/DOMParse
gmake[1]: Entering directory
`/tmp_mnt/home/siac/fjeronym/xerces/XML-Xerces-1.5.2_0/DOMParse'
gmake[1]: Leaving directory
`/tmp_mnt/home/siac/fjeronym/xerces/XML-Xerces-1.5.2_0/DOMParse'
PERL_DL_NONLAZY=1 /data/dbk/tools/bin/perl -Iblib/arch -Iblib/lib
-I/data/dbk/tools/perl/5.6.1/lib/5.6.1/PA-RISC1.1
-I/data/dbk/tools/perl/5.6.1/lib/5.6.1 -e 'use Test::Harness qw(&runtests
$verbose); $verbose=0; runtests @ARGV;' t/*.t
t/AttributeList...../usr/lib/dld.sl: Can't shl_load() a library containing
Thread Local Storage: /usr/lib/libpthread.1
/usr/lib/dld.sl: Exec format error
Can't load 'blib/arch/auto/XML/Xerces/Xerces.sl' for module XML::Xerces: Exec
format error at /data/dbk/tools/perl/5.6.1/lib/5.6.1/PA-RISC1.1/DynaLoader.pm
line 206.
 at blib/lib/XML/Xerces.pm line 7
Compilation failed in require at t/AttributeList.t line 14.
BEGIN failed--compilation aborted at t/AttributeList.t line 14.
t/AttributeList.....dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-8
        Failed 8/8 tests, 0.00% okay


And this goes on to all the tests. Any ideas ?


Fernando Cavalcanti Jeronymo
SIAC : (212) 383-5067
                                
 email: [EMAIL PROTECTED]       
                                
        [EMAIL PROTECTED] 
                                


Science without religion is lame; religion without science is blind.
Albert Einstein.


|--------+------------------------->
|        |          jason@openinfor|
|        |          matics.com     |
|        |          (Jason E.      |
|        |          Stewart)       |
|        |                         |
|        |          02/26/2002     |
|        |          08:56 PM       |
|        |          Please respond |
|        |          to xerces-p-dev|
|        |                         |
|--------+------------------------->
  >----------------------------------------------------------------------------|
  |                                                                            |
  |       To:     [EMAIL PROTECTED]                                  |
  |       cc:     (bcc: Fernando Jeronymo/SIAC)                                |
  |       Subject:     Re: HP-UX 11 Port                                       |
  >----------------------------------------------------------------------------|




"Fernando Jeronymo" <[EMAIL PROTECTED]> writes:

> Please, I am trying to port xerces-perl to HP-UX 11.
>
> It just won't work...
>
> I am using HP-UX 11, and aCC to build Xerces-Perl.

Hey Fernando,

The big problem at the moment is that XML::Xerces has no idea of how
Xerces-C was built (primarily what CCFLAGS were used). I've put a
little bit of work into handling this, but I just haven't prioritized
Xerces work lately, and so it is not getting done.

> First I was having this error:
>
> Error 173: "/opt/aCC/include_std/limits", line 565 # Redefined symbol
> 'numeric_limits<char>'; previously defined at ["/opt/aCC/include_std/limits",
> line 502].
>     _RWSTD_SPECIALIZE_LIMITS (bool, int, _RWSTD_BOOL)
>     ^^^^^^^^^^^^^^^^^^^^^^^^
> Error 705: "/opt/aCC/include_std/limits", line 565 # A template must be
declared
> before it can be explicitly specialized.
>     _RWSTD_SPECIALIZE_LIMITS (bool, int, _RWSTD_BOOL)
>     ^^^^^^^^^^^^^^^^^^^^^^^^
> Error 445: "/opt/aCC/include_std/limits", line 565 # Cannot recover from
earlier
> errors.
>     _RWSTD_SPECIALIZE_LIMITS (bool, int, _RWSTD_BOOL)
>     ^^^^^^^^^^^^^^^^^^^^^^^^
>
>
> Then I start to add -DHAS_BOOL to the compiler flags.

good, I'm glad that helped, I've added a hints/hpux.pl file with that
information.

> Now I am getting this error:
>
>
> Error 212: "Xerces.C", line 54825 # Argument type 'unsigned int *' does not
> match expected parameter type 'unsigned long *'.
>                 XMLByte *xmlbytes = (XMLByte *)SvPV(ST(0), arg2);

This looks familiar. There are a number of platforms that behave
differenly with the MemBufInputSource constructor.

Try adding a cast:

   XMLByte *xmlbytes = (XMLByte *)SvPV(ST(0), (unsigned long)arg2);

and see if that helps. I'd really like to know why different platforms
are choking on this command.

jas.

---------------------------------------------------------------------
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