Thread: Installing Pg on HP-UX10.20

Installing Pg on HP-UX10.20

From
Waterman William L CONT BATH
Date:
Hello,

I am trying to install the CPAN Pg module on an HP-UX workstation. When
running the "make" command I get the following errors (captured by script):

Script started on Mon Dec 10 14:47:35 2001
# env |grep POST

POSTGRES_LIB=/usr/local/pgsql/lib

POSTGRES_INCLUDE=/usr/local/pgsql/include

# perl Makefile.PL

Configuring Pg

Remember to actually read the README file !

OS: hpux

Writing Makefile for Pg

# make
cc -c -I/usr/local/pgsql/include -Ae -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O +Onolimit    -DVERSION=\"1.9.0\"
-DXS_VERSION=\"1.9.0\" +z -I/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE  Pg.c

(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C
product; ignored.

(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C
product; ignored.

(Bundled) cc: warning 480: The +Onolimit option is available only with the
C/ANSI C product; ignored.

(Bundled) cc: warning 480: The +z option is available only with the C/ANSI C
product; ignored.

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 538: error
1000: Unexpected symbol: "nbytes".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 539: error
1000: Unexpected symbol: "elements".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 540: error
1000: Unexpected symbol: "size_t".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 538: error
1506: Parameters allowed in function definition only.

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 539: error
1705: Function prototypes are an ANSI feature.

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 539: error
1573: Type of "size" is undefined due to an illegal declaration.

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 540: error
1705: Function prototypes are an ANSI feature.

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 540: error
1573: Type of "nbytes" is undefined due to an illegal declaration.

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 543: error
1705: Function prototypes are an ANSI feature.

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 1940:
error 1000: Unexpected symbol: "SV".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/iperlsys.h", line 417:
warning 5: "const" will become a keyword.

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/iperlsys.h", line 417:
error 1000: Unexpected symbol: "const".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/regexp.h", line 13:
error 1000: Unexpected symbol: "U8".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/sv.h", line 339: error
1000: Unexpected symbol: "*".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/sv.h", line 340: error
1000: Unexpected symbol: "ANY".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/sv.h", line 341: error
1000: Unexpected symbol: "GV".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/cv.h", line 25: error
1000: Unexpected symbol: "*".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/cv.h", line 26: error
1000: Unexpected symbol: "ANY".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/cv.h", line 27: error
1000: Unexpected symbol: "GV".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 14: error
1000: Unexpected symbol: "*".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 14: error
1000: Unexpected symbol: "*".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 15: error
1000: Unexpected symbol: "*".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 15: error
1000: Unexpected symbol: "*".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 16: error
1000: Unexpected symbol: "U32".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 16: error
1000: Unexpected symbol: "*".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 17: error
1000: Unexpected symbol: "*".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 17: error
1000: Unexpected symbol: "*".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 18: error
1000: Unexpected symbol: "*".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 18: error
1000: Unexpected symbol: "*".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 23: error
1000: Unexpected symbol: "MAGIC".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/utf8.h", line 25:
warning 5: "const" will become a keyword.

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/utf8.h", line 25: error
1000: Unexpected symbol: "unsigned".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 1976:
error 1000: Unexpected symbol: "CURCUR".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 2187:
error 1000: Unexpected symbol: "*".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 2188:
error 1000: Unexpected symbol: "I32".

(Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line 2188:
error 1000: Unexpected symbol: "SV".

(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.

*** Error exit code 1



Stop.

#

script done on Mon Dec 10 14:48:09 2001
Am I using the wrong compiler, or the wring perl include files?

The output of the "uname -a" command is:

HP-UX cnd1 B.10.20 A 9000/778 2003299477 two-user license


Any suggestions or help would be greatly appreciated.

Sincerely,

William L Waterman


Re: Installing Pg on HP-UX10.20

From
Tom Lane
Date:
Waterman William  L CONT BATH <WatermanWL@SUPSHIP.NAVY.MIL> writes:
> I am trying to install the CPAN Pg module on an HP-UX workstation. When
> running the "make" command I get the following errors (captured by script):

> (Bundled) cc: warning 480: The -A option is available only with the C/ANSI C
> product; ignored.

The "bundled" cc is too brain-dead to compile any real programs.  You
need either HP's C compiler product or gcc to do anything useful.

Possibly you already have one or both, but they're not in your PATH,
or they're behind the bundled cc?
        regards, tom lane


Re: Installing Pg on HP-UX10.20

From
alta
Date:
William ...

My memory is a little fuzzy on HP-UX -- it's been a couple years.  
However, if you are using the "free" compiler that comes with HP-UX, 
I believe it is somewhat stripped-down.  The ANSI C compiler is a 
separate product (that costs money), as I recall.  So, your first 
step would be to verify that you are using the ANSI C compiler.

... Reed

On Tuesday 11 December 2001 05:37, you wrote:
> Hello,
>
> I am trying to install the CPAN Pg module on an HP-UX workstation.
> When running the "make" command I get the following errors
> (captured by script):
>
> Script started on Mon Dec 10 14:47:35 2001
> # env |grep POST
>
> POSTGRES_LIB=/usr/local/pgsql/lib
>
> POSTGRES_INCLUDE=/usr/local/pgsql/include
>
> # perl Makefile.PL
>
> Configuring Pg
>
> Remember to actually read the README file !
>
> OS: hpux
>
> Writing Makefile for Pg
>
> # make
>
>     cc -c -I/usr/local/pgsql/include -Ae -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -O +Onolimit    -DVERSION=\"1.9.0\"
> -DXS_VERSION=\"1.9.0\" +z -I/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE 
> Pg.c
>
> (Bundled) cc: warning 480: The -A option is available only with the
> C/ANSI C product; ignored.
>
> (Bundled) cc: warning 480: The -O option is available only with the
> C/ANSI C product; ignored.
>
> (Bundled) cc: warning 480: The +Onolimit option is available only
> with the C/ANSI C product; ignored.
>
> (Bundled) cc: warning 480: The +z option is available only with the
> C/ANSI C product; ignored.
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 538: error 1000: Unexpected symbol: "nbytes".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 539: error 1000: Unexpected symbol: "elements".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 540: error 1000: Unexpected symbol: "size_t".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 538: error 1506: Parameters allowed in function definition only.
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 539: error 1705: Function prototypes are an ANSI feature.
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 539: error 1573: Type of "size" is undefined due to an illegal
> declaration.
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 540: error 1705: Function prototypes are an ANSI feature.
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 540: error 1573: Type of "nbytes" is undefined due to an illegal
> declaration.
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 543: error 1705: Function prototypes are an ANSI feature.
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 1940: error 1000: Unexpected symbol: "SV".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/iperlsys.h",
> line 417: warning 5: "const" will become a keyword.
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/iperlsys.h",
> line 417: error 1000: Unexpected symbol: "const".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/regexp.h", line
> 13: error 1000: Unexpected symbol: "U8".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/sv.h", line
> 339: error 1000: Unexpected symbol: "*".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/sv.h", line
> 340: error 1000: Unexpected symbol: "ANY".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/sv.h", line
> 341: error 1000: Unexpected symbol: "GV".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/cv.h", line 25:
> error 1000: Unexpected symbol: "*".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/cv.h", line 26:
> error 1000: Unexpected symbol: "ANY".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/cv.h", line 27:
> error 1000: Unexpected symbol: "GV".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 14:
> error 1000: Unexpected symbol: "*".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 14:
> error 1000: Unexpected symbol: "*".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 15:
> error 1000: Unexpected symbol: "*".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 15:
> error 1000: Unexpected symbol: "*".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 16:
> error 1000: Unexpected symbol: "U32".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 16:
> error 1000: Unexpected symbol: "*".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 17:
> error 1000: Unexpected symbol: "*".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 17:
> error 1000: Unexpected symbol: "*".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 18:
> error 1000: Unexpected symbol: "*".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 18:
> error 1000: Unexpected symbol: "*".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/mg.h", line 23:
> error 1000: Unexpected symbol: "MAGIC".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/utf8.h", line
> 25: warning 5: "const" will become a keyword.
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/utf8.h", line
> 25: error 1000: Unexpected symbol: "unsigned".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 1976: error 1000: Unexpected symbol: "CURCUR".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 2187: error 1000: Unexpected symbol: "*".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 2188: error 1000: Unexpected symbol: "I32".
>
> (Bundled) cc: "/opt/perl5/lib/5.6.1/PA-RISC1.1/CORE/perl.h", line
> 2188: error 1000: Unexpected symbol: "SV".
>
> (Bundled) cc: error 2017: Cannot recover from earlier errors,
> terminating.
>
> *** Error exit code 1
>
>
>
> Stop.
>
> #
>
> script done on Mon Dec 10 14:48:09 2001
>
> Am I using the wrong compiler, or the wring perl include files?
>
> The output of the "uname -a" command is:
>
> HP-UX cnd1 B.10.20 A 9000/778 2003299477 two-user license
>
>
> Any suggestions or help would be greatly appreciated.
>
> Sincerely,
>
> William L Waterman
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 6: Have you searched our
> list archives?
>
> http://archives.postgresql.org

-- 
Reed White  -  ALTA RESEARCH  -  www.alta-research.com
Phone: 877-360-2582  -  Email: alta@alta-research.com