I am now doing this modifications under HP-UX 11 (perl 5.6.1) (Xerces C 1.5.2
and Xerces Perl 1.5.2):

I have to call "perl Makefile.PL LINKTYPE=static". This solved some of the
problems in the gmake test step.

using aCC instead of cc (I had to change the Makefile.PL and also the
Makefile.aperl)

using '-DHAS_BOOL' in the compiler flags.


Now, gmake works like a charm, and when I try gmake test, I am getting this:

/home/siac/fjeronym/xerces/XML-Xerces-1.5.2_0$ gmake test
/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'
gmake -f Makefile.aperl perl
gmake[1]: Entering directory
`/tmp_mnt/home/siac/fjeronym/xerces/XML-Xerces-1.5.2_0'
Writing perlmain.c
cd . && aCC -c  -I/data/dbk/tools/perl/5.6.1/lib/5.6.1/PA-RISC1.1/CORE
-D_REENTRANT -DHAS_BOOL -AA -O +Onolimit \
  -DVERSION=\"1.5.2_0\" \
-DXS_VERSION=\"1.5.2_0\" -I/data/dbk/tools/perl/5.6.1/lib/5.6.1/PA-RISC1.1/CORE
perlmain.c
Warning 829: "perlmain.c", line 76 # Implicit conversion of string literal to
'char *' is deprecated.
            newXS("XML::Xerces::bootstrap", boot_XML__Xerces, file);
                  ^^^^^^^^^^^^^^^^^^^^^^^^
Warning 829: "perlmain.c", line 79 # Implicit conversion of string literal to
'char *' is deprecated.
            newXS("Handler::bootstrap", boot_Handler, file);
                  ^^^^^^^^^^^^^^^^^^^^
Warning 829: "perlmain.c", line 84 # Implicit conversion of string literal to
'char *' is deprecated.
            newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file);
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Warning 829: "perlmain.c", line 73 # Implicit conversion of string literal to
'char *' is deprecated.
            char *file = __FILE__;
                         ^^^^^^^^
cat
/tmp_mnt/data/dbk/tools/perl/5.6.1/lib/5.6.1/PA-RISC1.1/auto/DynaLoader/extralibs.ld

>> blib/arch/auto/XML/Xerces/extralibs.all
cat
/tmp_mnt/home/siac/fjeronym/xerces/XML-Xerces-1.5.2_0/blib/arch/auto/Handler/extralibs.ld

>> blib/arch/auto/XML/Xerces/extralibs.all
cat blib/arch/auto/XML/Xerces/extralibs.ld >>
blib/arch/auto/XML/Xerces/extralibs.all
aCC -Wl,-E -Wl,-B,deferred  -o perl -O +Onolimit ./perlmain.o Xerces.o
blib/arch/auto/XML/Xerces/Xerces.a
/tmp_mnt/home/siac/fjeronym/xerces/XML-Xerces-1.5.2_0/blib/arch/auto/Handler/Handler.a

/tmp_mnt/data/dbk/tools/perl/5.6.1/lib/5.6.1/PA-RISC1.1/auto/DynaLoader/DynaLoader.a

/data/dbk/tools/perl/5.6.1/lib/5.6.1/PA-RISC1.1/CORE/libperl.a `cat
blib/arch/auto/XML/Xerces/extralibs.all` -lnsl_s -ldld -lm -lc -lndir -lcrypt
-lsec
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (./perlmain.o) was
detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
   std::ios_base::Init::Init()%1 (code)
   std::codecvt_byname<wchar_t,char,std::mbstate_t>::do_in(std::mbstate_t
&,const char *,const char *,const char *&,wchar_t *,wchar_t *,wchar_t *&) const
(code)
   std::ios_base::_C_fire_event(std::ios_base::event,bool) (code)
   boot_Handler (code)
   typeid<std::exception> (data)
   std::exception::~exception() (code)
   std::ctype<char>::_C_initfacet(const std::locale &) (code)
   std::__rw_exception::_C_vformat(int,double *) (code)
   std::codecvt_byname<wchar_t,char,std::mbstate_t>::do_out(std::mbstate_t
&,const wchar_t *,const wchar_t *,const wchar_t *&,char *,char *,char *&) const
(code)
   std::ctype<char>::_C_classic_table (data)
   _HPMutexWrapper::~_HPMutexWrapper() (code)

std::basic_string<char,std::char_traits<char>,std::allocator<char>>::__nullref
(data)
   std::ios_base::Init::~Init() (code)
gmake[1]: *** [perl] Error 1
gmake[1]: Leaving directory
`/tmp_mnt/home/siac/fjeronym/xerces/XML-Xerces-1.5.2_0'
gmake: *** [perl] Error 2



My question is, is this an improvement? Or did I go backwards now?

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/27/2002     |
|        |          02:04 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:

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






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

Reply via email to