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 Kent Johnson <ke...@rsn.hp.com> on 2001/10/08 03:55:26 UTC

HP-UX support

i got 1.5.7 or whatever, and still have problems getting xerces-p working
on hp-ux (11.11).  when i do a "perl Makefile.PL" i get the following:

Using XERCES_LIB = /opt/xerces-c/lib
Using XERCES_INCLUDE = /opt/xerces-c/include
Checking to see if libxerces is in your library path...'PREREQ_PM' is not
a known MakeMaker parameter name.
Warning: Guessing NAME [xerces-p1.5.7] from current directory name.
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for Handler
Use of uninitialized value at (eval 21) line 89.
Use of uninitialized value at (eval 31) line 74.
Use of uninitialized value at (eval 31) line 75.
Use of uninitialized value at (eval 31) line 76.
Use of uninitialized value at (eval 31) line 80.
Success!!
Using Xerces-C version: 1.5.1
'ABSTRACT' is not a known MakeMaker parameter name.
'AUTHOR' is not a known MakeMaker parameter name.
Writing Makefile for XML::Xerces::DOMParse
Writing Makefile for XML::Xerces

then "make" yields:

make -C Handler static
make[1]: Entering directory `/opt/xerces-p1.5.7/Handler'
/opt/ansic/bin/cc -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
-Aa -I/usr/local/include -O    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z
-I/opt/perl5.004_04/lib/PA-RISC1.1/5.00404/CORE
PerlContentCallbackHandler.cpp
/opt/ansic/bin/cc -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
-Aa -I/usr/local/include -O    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z
-I/opt/perl5.004_04/lib/PA-RISC1.1/5.00404/CORE
PerlDocumentCallbackHandler.cpp
/opt/ansic/bin/cc -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
-Aa -I/usr/local/include -O    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z
-I/opt/perl5.004_04/lib/PA-RISC1.1/5.00404/CORE
PerlErrorCallbackHandler.cpp
/opt/ansic/bin/cc -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
-Aa -I/usr/local/include -O    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z
-I/opt/perl5.004_04/lib/PA-RISC1.1/5.00404/CORE  PerlExceptionHandler.cpp
rm -rf .././blib/arch/auto/Handler/Handler.a
ar cr .././blib/arch/auto/Handler/Handler.a PerlContentCallbackHandler.o
PerlDocumentCallbackHandler.o PerlErrorCallbackHandler.o
PerlExceptionHandler.o && : .././blib/arch/auto/Handler/Handler.a
ar: No such file or directory
ar: could not open PerlContentCallbackHandler.o
ar: No such file or directory
ar: could not open PerlDocumentCallbackHandler.o
ar: No such file or directory
ar: could not open PerlErrorCallbackHandler.o
ar: No such file or directory
ar: could not open PerlExceptionHandler.o
make[1]: *** [.././blib/arch/auto/Handler/Handler.a] Error 4
make[1]: Leaving directory `/opt/xerces-p1.5.7/Handler'
make: *** [blib/arch/auto/Handler/Handler.a] Error 2

i am using perl5.004.sometihng and gnu make... i have installed gcc but i
don't know how to make it so it's used instead of my ansi c
compiler.  thanks for the help,

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

Posted by Kent Johnson <ke...@rsn.hp.com>.
> Hey Kent,
> 
> Your perl has been compiled for support for the builtin cc, this is
> why you are getting compiler directives like '-Aa' and '-z' which gcc
> doesn't understand. Also, since perl was compiled with your vendor cc,
> I'm not sure how it will mix if you start compiling modules with gcc. 
> 
> You have two choices:
> 
> 1) do make CC=CC, or whatever the name of your vendor C++ compiler is 

I may be wrong, but I think the box I'm trying to compile on did not have
a C++ compiler.  Just the ANSI C compiler I installed.  I now have gcc on
there, so does that mean I need to proceed with step 2 below?

> 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? :)

> It seems easier to get 1) working
> 
> jas.
> 
> "Kent Johnson" <ke...@rsn.hp.com> writes:
> 
> > Tried the following two commands, and here is their output:
> > 
> > # make CC=/opt/gcc/bin/g++ 
> > make -C Handler static
> > make[1]: Entering directory `/opt/xerces-p1.5.7/Handler'
> > /opt/gcc/bin/g++ -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
> > -Aa -I/usr/local/include -O    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z
> > -I/opt/perl5.004_04/lib/PA-RISC1.1/5.00404/CORE
> > PerlContentCallbackHandler.cpp
> > g++: +z: No such file or directory
> > <command line>: missing '(' after predicate
> > make[1]: *** [PerlContentCallbackHandler.o] Error 1
> > make[1]: Leaving directory `/opt/xerces-p1.5.7/Handler'
> > make: *** [blib/arch/auto/Handler/Handler.a] Error 2
> > 
> > 
> > # make CC=/opt/gcc/bin/gcc 
> > make -C Handler static
> > make[1]: Entering directory `/opt/xerces-p1.5.7/Handler'
> > /opt/gcc/bin/gcc -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
> > -Aa -I/usr/local/include -O    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z
> > -I/opt/perl5.004_04/lib/PA-RISC1.1/5.00404/CORE
> > PerlContentCallbackHandler.cpp
> > gcc: +z: No such file or directory
> > <command line>: missing '(' after predicate
> > make[1]: *** [PerlContentCallbackHandler.o] Error 1
> > make[1]: Leaving directory `/opt/xerces-p1.5.7/Handler'
> > make: *** [blib/arch/auto/Handler/Handler.a] Error 2
> 
> ---------------------------------------------------------------------
> 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

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
Hey Kent,

Your perl has been compiled for support for the builtin cc, this is
why you are getting compiler directives like '-Aa' and '-z' which gcc
doesn't understand. Also, since perl was compiled with your vendor cc,
I'm not sure how it will mix if you start compiling modules with gcc. 

You have two choices:

1) do make CC=CC, or whatever the name of your vendor C++ compiler is 

2) download and compile perl 5.6.1 with gcc

It seems easier to get 1) working

jas.

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

> Tried the following two commands, and here is their output:
> 
> # make CC=/opt/gcc/bin/g++ 
> make -C Handler static
> make[1]: Entering directory `/opt/xerces-p1.5.7/Handler'
> /opt/gcc/bin/g++ -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
> -Aa -I/usr/local/include -O    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z
> -I/opt/perl5.004_04/lib/PA-RISC1.1/5.00404/CORE
> PerlContentCallbackHandler.cpp
> g++: +z: No such file or directory
> <command line>: missing '(' after predicate
> make[1]: *** [PerlContentCallbackHandler.o] Error 1
> make[1]: Leaving directory `/opt/xerces-p1.5.7/Handler'
> make: *** [blib/arch/auto/Handler/Handler.a] Error 2
> 
> 
> # make CC=/opt/gcc/bin/gcc 
> make -C Handler static
> make[1]: Entering directory `/opt/xerces-p1.5.7/Handler'
> /opt/gcc/bin/gcc -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
> -Aa -I/usr/local/include -O    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z
> -I/opt/perl5.004_04/lib/PA-RISC1.1/5.00404/CORE
> PerlContentCallbackHandler.cpp
> gcc: +z: No such file or directory
> <command line>: missing '(' after predicate
> make[1]: *** [PerlContentCallbackHandler.o] Error 1
> make[1]: Leaving directory `/opt/xerces-p1.5.7/Handler'
> make: *** [blib/arch/auto/Handler/Handler.a] Error 2

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

Posted by Kent Johnson <ke...@rsn.hp.com>.
Tried the following two commands, and here is their output:

# make CC=/opt/gcc/bin/g++ 
make -C Handler static
make[1]: Entering directory `/opt/xerces-p1.5.7/Handler'
/opt/gcc/bin/g++ -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
-Aa -I/usr/local/include -O    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z
-I/opt/perl5.004_04/lib/PA-RISC1.1/5.00404/CORE
PerlContentCallbackHandler.cpp
g++: +z: No such file or directory
<command line>: missing '(' after predicate
make[1]: *** [PerlContentCallbackHandler.o] Error 1
make[1]: Leaving directory `/opt/xerces-p1.5.7/Handler'
make: *** [blib/arch/auto/Handler/Handler.a] Error 2


# make CC=/opt/gcc/bin/gcc 
make -C Handler static
make[1]: Entering directory `/opt/xerces-p1.5.7/Handler'
/opt/gcc/bin/gcc -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
-Aa -I/usr/local/include -O    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z
-I/opt/perl5.004_04/lib/PA-RISC1.1/5.00404/CORE
PerlContentCallbackHandler.cpp
gcc: +z: No such file or directory
<command line>: missing '(' after predicate
make[1]: *** [PerlContentCallbackHandler.o] Error 1
make[1]: Leaving directory `/opt/xerces-p1.5.7/Handler'
make: *** [blib/arch/auto/Handler/Handler.a] Error 2


any ideas?

thanks again,
kent

On 7 Oct 2001, Jason E. Stewart wrote:

> "Kent Johnson" <ke...@rsn.hp.com> writes:
> 
> > /opt/ansic/bin/cc -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
> > -Aa -I/usr/local/include -O    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z
> > -I/opt/perl5.004_04/lib/PA-RISC1.1/5.00404/CORE
> > PerlContentCallbackHandler.cpp
> 
> Hey Kent,
> 
> It looks like the standard problem, compiling C++ code with a C
> compiler. Trying setting your C++ compiler explicitly using:
> 
>   make CC=compiler_name
> 
> for example
> 
>   make CC=CC
> 
> or 
> 
>   make CC=g++
> 
> > i am using perl5.004.sometihng and gnu make... i have installed gcc but i
> > don't know how to make it so it's used instead of my ansi c
> > compiler.  thanks for the help,
> 
> You have to set it explicitly as above.
> 
> HTH,
> 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


Re: HP-UX support

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

> /opt/ansic/bin/cc -c -I. -IHandler -I/opt/xerces-c/include -D_HPUX_SOURCE
> -Aa -I/usr/local/include -O    -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" +z
> -I/opt/perl5.004_04/lib/PA-RISC1.1/5.00404/CORE
> PerlContentCallbackHandler.cpp

Hey Kent,

It looks like the standard problem, compiling C++ code with a C
compiler. Trying setting your C++ compiler explicitly using:

  make CC=compiler_name

for example

  make CC=CC

or 

  make CC=g++

> i am using perl5.004.sometihng and gnu make... i have installed gcc but i
> don't know how to make it so it's used instead of my ansi c
> compiler.  thanks for the help,

You have to set it explicitly as above.

HTH,
jas.

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