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 "Jason E. Stewart" <ja...@openinformatics.com> on 2001/10/11 01:54:02 UTC

Re: HP-UX support (fwd)

"Kent Johnson" <ke...@rsn.hp.com> writes:

> don't know if you got this, but was wondering if you could help me.. i'm
> still having trouble getting this working on hp-ux, and i really need a
> good xml parser for it, quickly, as i am falling behind on a project i
> need to complete.  thanks so much for your help

Sorry Kent, 

I guess I let it fall through the cracks...

> > 2) download and compile perl 5.6.1 with gcc
> 
> So I have to compile the source?  I can't just use a precompiled HP-UX
> version?  Can I only use a precompiled version if it was compiled with
> gcc?  If so, how does it remember who compiled it? :)

Since you don't have any C++ compiler besides g++, we'll have to make
it work.

No, you don't have to get the source. The precompiled version from
HPUX is likely to have been compiled with their C compiler. 

There are two issues:
1) perl remembers all of it's configuration settings in the Config.pm
   module that it installs along with everything else. This is how
   MakeMaker can automatically generate Makefiles that will work with
   any given Perl installation.

2) mixing of C++ libraries. If you mix C++ libraries compiled with
   different compilers, you are likely to get into serious trouble
   because there is no standard interface. I realize now, that this is
   not likely to be an issue for you, since the C interface is
   standardized, you can mix and match C libraries all you want. Since
   g++ is your only C++ compiler there is no issue.

Because of issue 1), every compile line that Perl generates for the
XML::Xerces C++ code will have HPUX C compiler specific flags thrown
in, hence the -aA and -z in your compile lines, which are not gcc
flags, which is why gcc complained.

What we need to do is make a hints/hpux.pl file that will set all the
necessary MakeMaker variables to work with g++ even though perl has
been configured using HPUX's cc.

Send the output of perl -V to the list, and I'll compare it mine, and
that should solve the problem.

jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: HP-UX support (fwd)

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Kent Johnson" <ke...@rsn.hp.com> writes:

> >   http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.0.1/ 
> > 
> > it appears that you need to install the GNU binutils package as well
> > because gcc won't work with the hpux assembler. Was this done?
> 
> yep, that's where i got my stuff from, installed newest binutils and then
> gcc 3.01, and got the errors mentioned previously

Kent, were you able to compile the Xerces-C code from source? Or are
you using a binary for HPUX? If you are using a binary, download and
compile the source. If you cannot compile that, they you have a
compiler problem, if you can compile it from source than this is a
perl/xerces mismatch problem.

jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: HP-UX support (fwd)

Posted by Kent Johnson <ke...@rsn.hp.com>.
>   http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.0.1/ 
> 
> it appears that you need to install the GNU binutils package as well
> because gcc won't work with the hpux assembler. Was this done?

yep, that's where i got my stuff from, installed newest binutils and then
gcc 3.01, and got the errors mentioned previously

kent


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: HP-UX support (fwd)

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Kent Johnson" <ke...@rsn.hp.com> writes:

> I could only find a binary version of gcc 2.8.1.2 or something, so i tried
> that, but it blew up:

Nah, gcc-2.8 is from the bronze age, you would need 2.95 or
2.96. Looking at: 

  http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.0.1/ 

it appears that you need to install the GNU binutils package as well
because gcc won't work with the hpux assembler. Was this done?

jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: HP-UX support (fwd)

Posted by Kent Johnson <ke...@rsn.hp.com>.
I could only find a binary version of gcc 2.8.1.2 or something, so i tried
that, but it blew up:

gmake[1]: execvp: gcc: Invalid argument

i really don't feel like trying to compile gcc too, since it seems the
more things i try to compile the more things i have to compile :)  what's
next?

kent

On Thu, 11 Oct 2001, Kent Johnson wrote:

> > Ewwww... gcc-3.0??? You *are* a brave man...
> > 
> > My advice is to stay away from gcc-3.0. It is brand-spanking-new(TM),
> > and it breaks binary compatibility with previous versions. 
> 
> ah, had no idea :)
> 
> > >     cc='gcc', optimize='-O', gccversion=2.9-hppa-991112
> > 
> > Your perl was compiled with gcc 2.9 something... 
> 
> then i'll try to get that, retry it, and see how it goes
> 
> > I'm really sorry this is such a mess. The only other thing I have to
> > offer is it would help if I had an account on an HPUX machine
> > someplace. The apache foundation has one, but its an old HP10 machine,
> > and it's missing tons of software I need to compile Xerces. Seeing as
> > you work for HP, maybe they have a machine outside your firewall I
> > could get access to.
> 
> Maybe I should clarify: I am a CO-OP (like an intern) at hp. :)  Is there
> no way the apache machine could be loaded with 11.00 or 11.11? (I guess
> HP-UX isn't as cheap as, say, Linux :).
> 
> Thanks,
> Kent 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: HP-UX support (fwd)

Posted by Kent Johnson <ke...@rsn.hp.com>.
> Ewwww... gcc-3.0??? You *are* a brave man...
> 
> My advice is to stay away from gcc-3.0. It is brand-spanking-new(TM),
> and it breaks binary compatibility with previous versions. 

ah, had no idea :)

> >     cc='gcc', optimize='-O', gccversion=2.9-hppa-991112
> 
> Your perl was compiled with gcc 2.9 something... 

then i'll try to get that, retry it, and see how it goes

> I'm really sorry this is such a mess. The only other thing I have to
> offer is it would help if I had an account on an HPUX machine
> someplace. The apache foundation has one, but its an old HP10 machine,
> and it's missing tons of software I need to compile Xerces. Seeing as
> you work for HP, maybe they have a machine outside your firewall I
> could get access to.

Maybe I should clarify: I am a CO-OP (like an intern) at hp. :)  Is there
no way the apache machine could be loaded with 11.00 or 11.11? (I guess
HP-UX isn't as cheap as, say, Linux :).

Thanks,
Kent 


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: HP-UX support (fwd)

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Kent Johnson" <ke...@rsn.hp.com> writes:

> changed makefiles to have the following CCFLAGS:
> 
> Makefile:CCFLAGS = -D_REENTRANT -DHAS_BOOL
> Handler/Makefile:CCFLAGS = -D_HPUX_SOURCE -I/usr/local/include  -D_FILE_OFFSET_BITS=64 -I/usr/local/include -DHAS_BOOL
> 
> and got the attached output when trying to `make >>out 2>>out` (i THINK 
> that should show you my output right)...

Hey Kent,

I found this using google:

  http://gcc.gnu.org/ml/gcc-bugs/2001-09/msg00139.html

It seems that gcc-3.0.1 has some HPUX problems. I cannot offer you
much help with this. I would find out what version of of the 2.9x
series works from HPUX, download it, compile it, and use it. Otherwise
I would get them to give you a license for the HP C++ compiler.

Sorry,
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: HP-UX support (fwd)

Posted by Kent Johnson <ke...@rsn.hp.com>.
changed makefiles to have the following CCFLAGS:

Makefile:CCFLAGS = -D_REENTRANT -DHAS_BOOL
Handler/Makefile:CCFLAGS = -D_HPUX_SOURCE -I/usr/local/include  -D_FILE_OFFSET_BITS=64 -I/usr/local/include -DHAS_BOOL

and got the attached output when trying to `make >>out 2>>out` (i THINK 
that should show you my output right)...

thanks,
kent



On 11 Oct 2001, Jason E. Stewart wrote:

> "Kent Johnson" <ke...@rsn.hp.com> writes:
> 
> > > That mess that you got could be due to something simple like 'bool'
> > > getting redefined, so you may want to add in -DHAS_BOOL to the compile
> > > line and see if that changes anything. 
> > 
> > I am retrying with gcc 3.01.  Just where do I put the -D line?  I'm not
> > too familiar with makefiles.
> 
> One of those things that happens with time...
> 
> You have two choices:
> 
> 1) run 'make' again and after it's done bombing, cut and past the 
>    'gcc -c ...' line and paste in -DHAS_BOOL after one of the other -D
>    flags
> 
> 2) edit your Makefile and Handler/Makefile add -DHAS_BOOL to CCFLAGS
> 
> for example change:
> 
>   CCFLAGS = -D_REENTRANT -D$(SWIG_VERSION) -DDEBIAN
> 
> to:
> 
>   CCFLAGS = -D_REENTRANT -D$(SWIG_VERSION) -DDEBIAN -DHAS_BOOL
> 
> jas.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
> 
> 

Re: HP-UX support (fwd)

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Kent Johnson" <ke...@rsn.hp.com> writes:

> > That mess that you got could be due to something simple like 'bool'
> > getting redefined, so you may want to add in -DHAS_BOOL to the compile
> > line and see if that changes anything. 
> 
> I am retrying with gcc 3.01.  Just where do I put the -D line?  I'm not
> too familiar with makefiles.

One of those things that happens with time...

You have two choices:

1) run 'make' again and after it's done bombing, cut and past the 
   'gcc -c ...' line and paste in -DHAS_BOOL after one of the other -D
   flags

2) edit your Makefile and Handler/Makefile add -DHAS_BOOL to CCFLAGS

for example change:

  CCFLAGS = -D_REENTRANT -D$(SWIG_VERSION) -DDEBIAN

to:

  CCFLAGS = -D_REENTRANT -D$(SWIG_VERSION) -DDEBIAN -DHAS_BOOL

jas.



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: HP-UX support (fwd)

Posted by Kent Johnson <ke...@rsn.hp.com>.
> That mess that you got could be due to something simple like 'bool'
> getting redefined, so you may want to add in -DHAS_BOOL to the compile
> line and see if that changes anything. 

I am retrying with gcc 3.01.  Just where do I put the -D line?  I'm not
too familiar with makefiles.

Thanks,
Kent


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: HP-UX support (fwd)

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
"Kent Johnson" <ke...@rsn.hp.com> writes:

> no problem, i assume you are very busy as well.  

usually ;-)

> i just installed a version of perl 5.005_03 which i tried using
> instead of my 5.004_04 version.  the perl -V on the 5.005 showed
> "cc='gcc'" while the perl -V on the 5.004 showed
> "cc='/opt/ansic/bin/cc'", so perhaps the 5.005 version should work?

It ought to be simpler, since the CC flags will all be correct.

> this is the output i get when i do a (5.005) perl Makefile.PL:

> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdlib.h:18,

Ewwww... gcc-3.0??? You *are* a brave man...

My advice is to stay away from gcc-3.0. It is brand-spanking-new(TM),
and it breaks binary compatibility with previous versions. 

> Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
>   Platform:
>     osname=hpux, osvers=11.00, archname=PA-RISC1.1
>     uname='hp-ux disco b.11.00 u 9000800 125901587 unlimited-user license
> '
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=undef useperlio=undef d_sfio=undef
>   Compiler:
>     cc='gcc', optimize='-O', gccversion=2.9-hppa-991112

Your perl was compiled with gcc 2.9 something... 

That mess that you got could be due to something simple like 'bool'
getting redefined, so you may want to add in -DHAS_BOOL to the compile
line and see if that changes anything. 

But if not, then I'm afraid the only advice I have is to back of to an
earlier version of gcc... I'm using 2.95.4, which has been quite
stable. 

I'm really sorry this is such a mess. The only other thing I have to
offer is it would help if I had an account on an HPUX machine
someplace. The apache foundation has one, but its an old HP10 machine,
and it's missing tons of software I need to compile Xerces. Seeing as
you work for HP, maybe they have a machine outside your firewall I
could get access to.

Cheers,
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: HP-UX support (fwd)

Posted by Kent Johnson <ke...@rsn.hp.com>.
jas,

no problem, i assume you are very busy as well.  i just installed a
version of perl 5.005_03 which i tried using instead of my 5.004_04
version.  the perl -V on the 5.005 showed "cc='gcc'" while the perl -V on
the 5.004 showed "cc='/opt/ansic/bin/cc'", so perhaps the 5.005 version
should work?  this is the output i get when i do a (5.005) perl
Makefile.PL:

cd DOMParse && test -f Makefile && /opt/make/bin/gmake clean
gmake[1]: Entering directory `/opt/xerces-p-1.5.7/DOMParse'
rm -rf ./blib Makefile.aperl
../blib/arch/auto/XML/Xerces/DOMParse/extralibs.all perlmain.c mon.out
core so_locations pm_to_blib *~ */*~ */*/*~ *.o *.a perl.exe  DOMParse.bso
DOMParse.def DOMParse.exp
mv Makefile Makefile.old > /dev/null 2>&1
gmake[1]: Leaving directory `/opt/xerces-p-1.5.7/DOMParse'
rm -rf ./blib Makefile.aperl blib/arch/auto/XML/Xerces/extralibs.all
perlmain.c mon.out core so_locations pm_to_blib *~ */*~ */*/*~ *.o *.a
perl.exe Xerces.bs Xerces.bso Xerces.def Xerces.exp
mv Makefile Makefile.old > /dev/null 2>&1
a18 : /usr/local/bin/perl Makefile.PL
Using XERCES_LIB = /opt/xerces-c/lib
Using XERCES_INCLUDE = /opt/xerces-c/include
Checking to see if libxerces is in your library path...Checking if your
kit is complete...
Looks good
'PREREQ_PM' is not a known MakeMaker parameter name.
Warning: Guessing NAME [xerces-p] from current directory name.
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for Handler
Use of uninitialized value at (eval 21) line 98.
Use of uninitialized value at (eval 33) line 74.
Use of uninitialized value at (eval 33) line 75.
Use of uninitialized value at (eval 33) line 76.
Use of uninitialized value at (eval 33) line 89.
Use of uninitialized value at (eval 64) line 14.
Use of uninitialized value at (eval 64) line 15.
Use of uninitialized value at (eval 64) line 16.
Use of uninitialized value at (eval 64) line 17.
Use of uninitialized value at (eval 64) line 19.
Use of uninitialized value at (eval 64) line 20.
Use of uninitialized value at (eval 64) line 21.
Use of uninitialized value at (eval 64) line 22.
Use of uninitialized value at (eval 64) line 34.
Use of uninitialized value at (eval 64) line 43.
Success!!
Using Xerces-C version: 1.5.1
Checking if your kit is complete...
Looks good
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for XML::Xerces


and now when i do /opt/make/bin/gmake, i get:

/opt/make/bin/gmake -C Handler static
gmake[1]: Entering directory `/opt/xerces-p-1.5.7/Handler'
gcc -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
-I/usr/local/include -D_FILE_OFFSET_BITS=64 -I/usr/local/include -O
-DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic
-I/usr/local/lib/perl5/5.00503/PA-RISC1.1/CORE
PerlContentCallbackHandler.cpp
In file included from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdlib.h:18,
                 from PerlContentCallbackHandler.cpp:1:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/sys/types.h:90: syntax 
   error before `;' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/sys/types.h:111: syntax
   error before `;' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/sys/types.h:133: syntax
   error before `;' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/sys/types.h:155: syntax
   error before `;' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/sys/types.h:177: syntax
   error before `;' token
In file included from /usr/include/sys/resource.h:59,
                 from /usr/include/sys/wait.h:91,
                 from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdlib.h:265,
                 from PerlContentCallbackHandler.cpp:1:
/usr/include/sys/_rlimit_body.h:44: 'rlim_t' is used as a type, but is not 
   defined as a type.
/usr/include/sys/_rlimit_body.h:45: 'rlim_t' is used as a type, but is not 
   defined as a type.
In file included from /usr/include/pwd.h:117,
                 from
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdlib.h:361,
                 from PerlContentCallbackHandler.cpp:1:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:218: type 
   specifier omitted for parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:218: parse 
   error before `*' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:219: parse 
   error before `*' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:608: syntax 
   error before `(' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:613: type 
   specifier omitted for parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:614: type 
   specifier omitted for parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:614: parse 
   error before `*' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:615: parse 
   error before `*' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:633: type 
   specifier omitted for parameter
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:633: parse 
   error before `*' token
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h: In
function 
   `int fgetpos(...)':
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:634: `__a' 
   undeclared (first use this function)
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:634: (Each 
   undeclared identifier is reported only once for each function it
appears 
   in.)
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:634: `__b' 
   undeclared (first use this function)
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h: At
global 
   scope:
/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.1/include/stdio.h:635: parse 
   error before `*' token
In file included from /usr/include/sys/stat.h:37,
                 from
/usr/local/lib/perl5/5.00503/PA-RISC1.1/CORE/perl.h:537,
                 from PerlContentCallbackHandler.hpp:9,
                 from PerlContentCallbackHandler.cpp:2:
/usr/include/sys/_stat_body.h:52: 'off_t' is used as a type, but is not
defined 
   as a type.
/usr/include/sys/_stat_body.h:60: 'blkcnt_t' is used as a type, but is not 
   defined as a type.
gmake[1]: *** [PerlContentCallbackHandler.o] Error 1
gmake[1]: Leaving directory `/opt/xerces-p-1.5.7/Handler'
gmake: *** [blib/arch/auto/Handler/Handler.a] Error 2

... anyway, if it still helps, here is the output of my (5.005) perl -V:

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=hpux, osvers=11.00, archname=PA-RISC1.1
    uname='hp-ux disco b.11.00 u 9000800 125901587 unlimited-user license
'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.9-hppa-991112
    cppflags='-D_HPUX_SOURCE -I/usr/local/include -D_FILE_OFFSET_BITS=64
-I/usr/local/include'
    ccflags ='-D_HPUX_SOURCE -I/usr/local/include -D_FILE_OFFSET_BITS=64
-I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lnsl -lndbm -ldld -lm -lpthread
    libc=/usr/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-B,deferred '
    cccdlflags='-fpic', lddlflags='-b -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Built under hpux
  Compiled at Jun 12 2001 12:31:36
  @INC:
    /usr/local/lib/perl5/5.00503/PA-RISC1.1
    /usr/local/lib/perl5/5.00503
    /usr/local/lib/perl5/site_perl/5.005/PA-RISC1.1
    /usr/local/lib/perl5/site_perl/5.005


...any ideas? :)

thanks,
kent



On 10 Oct 2001, Jason E. Stewart wrote:

> "Kent Johnson" <ke...@rsn.hp.com> writes:
> 
> > don't know if you got this, but was wondering if you could help me.. i'm
> > still having trouble getting this working on hp-ux, and i really need a
> > good xml parser for it, quickly, as i am falling behind on a project i
> > need to complete.  thanks so much for your help
> 
> Sorry Kent, 
> 
> I guess I let it fall through the cracks...
> 
> > > 2) download and compile perl 5.6.1 with gcc
> > 
> > So I have to compile the source?  I can't just use a precompiled HP-UX
> > version?  Can I only use a precompiled version if it was compiled with
> > gcc?  If so, how does it remember who compiled it? :)
> 
> Since you don't have any C++ compiler besides g++, we'll have to make
> it work.
> 
> No, you don't have to get the source. The precompiled version from
> HPUX is likely to have been compiled with their C compiler. 
> 
> There are two issues:
> 1) perl remembers all of it's configuration settings in the Config.pm
>    module that it installs along with everything else. This is how
>    MakeMaker can automatically generate Makefiles that will work with
>    any given Perl installation.
> 
> 2) mixing of C++ libraries. If you mix C++ libraries compiled with
>    different compilers, you are likely to get into serious trouble
>    because there is no standard interface. I realize now, that this is
>    not likely to be an issue for you, since the C interface is
>    standardized, you can mix and match C libraries all you want. Since
>    g++ is your only C++ compiler there is no issue.
> 
> Because of issue 1), every compile line that Perl generates for the
> XML::Xerces C++ code will have HPUX C compiler specific flags thrown
> in, hence the -aA and -z in your compile lines, which are not gcc
> flags, which is why gcc complained.
> 
> What we need to do is make a hints/hpux.pl file that will set all the
> necessary MakeMaker variables to work with g++ even though perl has
> been configured using HPUX's cc.
> 
> Send the output of perl -V to the list, and I'll compare it mine, and
> that should solve the problem.
> 
> jas.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-p-dev-help@xml.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org