"Fernando Jeronymo" <[EMAIL PROTECTED]> writes:
> 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.
Sigh.... I wish I understood this.
I'm glad it worked, I just don't understand what the problem is. Why
is SWIG generating the wrong argument???
> 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.
This is a dynamic loading error. Most dl errors are very uninformative
(as this one is).
It might be something simple:
* did you set your LD_LIBRARY_PATH variable to include the directory
where the libxerces dynamic library (from Xerces-C) is located?
* were you able to successfully use any of the example applications
from the Xerces-C distribution (DOMCount, SAXCount)?
That bit about: 'Can't shl_load() a library containing
Thread Local Storage: /usr/lib/libpthread.1'
looks worrisome, though.
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]