Re: Need help getting Bit-Vector compiled (88 Views)
Reply
Occasional Advisor
Tim Goodman
Posts: 12
Registered: ‎10-23-2007
Message 1 of 6 (88 Views)
Accepted Solution

Need help getting Bit-Vector compiled

I am running HP-UX 11.11 and I'm trying to compile the Bit-Vector 6.4 module for Perl. I have Perl v5.8.3. I do not have gcc installed. When I do make I get the following errors -

cp lib/Bit/Vector/Overload.pm blib/lib/Bit/Vector/Overload.pm
cp Vector.pm blib/lib/Bit/Vector.pm
cp Vector.pod blib/lib/Bit/Vector.pod
cp lib/Bit/Vector/String.pod blib/lib/Bit/Vector/String.pod
cp lib/Bit/Vector/Overload.pod blib/lib/Bit/Vector/Overload.pod
cp lib/Bit/Vector/String.pm blib/lib/Bit/Vector/String.pm
cc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +Onolimit +Opromote_indirect_calls +DAportable +DS2.0 -DVERSION=\"6.4\" -DXS_VERSION=\"6.4\" +Z "-I/opt/perl/lib/5.8.3/PA-RISC1.1-thread-multi/CORE" BitVector.c
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 422: Unknown option "f" ignored.
(Bundled) cc: warning 480: The +Onolimit option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Opromote_indirect_calls 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: "ToolBox.h", line 40: warning 5: "signed" will become a keyword.
(Bundled) cc: "ToolBox.h", line 40: error 1000: Unexpected symbol: "char".
(Bundled) cc: "ToolBox.h", line 41: warning 5: "signed" will become a keyword.
(Bundled) cc: "ToolBox.h", line 41: error 1000: Unexpected symbol: "char".
(Bundled) cc: "ToolBox.h", line 42: warning 5: "signed" will become a keyword.
(Bundled) cc: "ToolBox.h", line 41: warning 525: Redeclaration of identifier "signed".
(Bundled) cc: "ToolBox.h", line 42: error 1000: Unexpected symbol: "short".
(Bundled) cc: "ToolBox.h", line 43: warning 5: "signed" will become a keyword.
(Bundled) cc: "ToolBox.h", line 43: error 1000: Unexpected symbol: "short".
(Bundled) cc: "ToolBox.h", line 44: warning 5: "signed" will become a keyword.
(Bundled) cc: "ToolBox.h", line 44: error 1000: Unexpected symbol: "int".
(Bundled) cc: "ToolBox.h", line 45: warning 5: "signed" will become a keyword.
(Bundled) cc: "ToolBox.h", line 45: error 1000: Unexpected symbol: "int".
(Bundled) cc: "ToolBox.h", line 46: warning 5: "signed" will become a keyword.
(Bundled) cc: "ToolBox.h", line 46: error 1000: Unexpected symbol: "long".
(Bundled) cc: "ToolBox.h", line 47: warning 5: "signed" will become a keyword.
(Bundled) cc: "ToolBox.h", line 47: error 1000: Unexpected symbol: "long".
(Bundled) cc: "ToolBox.h", line 71: error 1000: Unexpected symbol: "*".
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Stop.

Any ideas on how to get this to work?
Please use plain text.
Honored Contributor
Duncan Edmonstone
Posts: 5,677
Registered: ‎08-05-2000
Message 2 of 6 (88 Views)

Re: Need help getting Bit-Vector compiled

you really won't get anywhere using the bundled C compiler included with HP-UX - its only there for the kernel and a couple of other bits & pieces - you certainly can't build software like this with it.

Get gcc installed and try again:

http://www.hp.com/go/gcc

HTH

Duncan

HTH

Duncan
Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 3 of 6 (88 Views)

Re: Need help getting Bit-Vector compiled

Hi:

You lack the ANSI C compiler and have only the free, bundled, C compiler which isn't good for much.

Your best/easist option would be to fetch a version of Perl that has been compiled with the GNU C compiler. Adding modules that require compilation is effectively only done by using the compiler (either GNU C or HP ANSIC C) that was used to compile the core installation.

Too, the version of Perl that you have is rather old. You can get a current version, compiled with the GNU C compiler from Merijn's web. In this case, Merijn's distribution has already added 'Bit::Victor' for you!

In addition, if you like, Merijn as binary distributions of GNU C that you can download should you need the compiler at a later time.

See:

http://mirrors.develooper.com/hpux/

Regards!

...JRF...

Please use plain text.
Occasional Advisor
Tim Goodman
Posts: 12
Registered: ‎10-23-2007
Message 4 of 6 (88 Views)

Re: Need help getting Bit-Vector compiled

I had seen Merijn's site but I wasn't sure about what to install from there.

Should I get "perl 5.8.9 + defined-or + DBI 1.607 + Tk 804.028_501 built with gcc-3.4.6" and "gcc 3.4.6 + binutils 2.16.1 + gdb-6.6" or can I get a newer version of gcc than what perl was compiled with?
Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 5 of 6 (88 Views)

Re: Need help getting Bit-Vector compiled

Hi Tim:

Merijn discusses his choice of the GNU C version on his web site. You should be able to download a newer version than what he used to build Perl if you need the compiler in the first place to add modules that require compilation.

Perl 5.8.9 is stable and is a good choice. Perl 5.10 introduces some nice features.

Regards!

...JRF...
Please use plain text.
Occasional Advisor
Tim Goodman
Posts: 12
Registered: ‎10-23-2007
Message 6 of 6 (88 Views)

Re: Need help getting Bit-Vector compiled

Downloading the Perl from merijn's site and installing it allowed me to get my app working. Thanks for the help.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation