Operating System - HP-UX
1835186 Members
2133 Online
110077 Solutions
New Discussion

Re: installing binutils-2.11 on HPUX-11.11

 
Martin Christov
Advisor

installing binutils-2.11 on HPUX-11.11

Hello folks,
I am trying to install binutils-2.11 and (later) gcc-2.95.3 under HPUX-11.11.
After configure, make breaks with errors:
...
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C pro
duct; ignored.
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C pro
duct; ignored.
(Bundled) cc: "readelf.c", line 1884: error 1705: Function prototypes are an ANS
I feature.
(Bundled) cc: "readelf.c", line 2080: error 1705: Function prototypes are an ANS
I feature.
(Bundled) cc: "readelf.c", line 2098: error 1705: Function prototypes are an ANS
I feature.
(Bundled) cc: "readelf.c", line 2116: error 1705: Function prototypes are an ANS
I feature.
*** Error exit code 1

Stop.

Thanks in advance for any answer.
Martin
sudo question
4 REPLIES 4
Bill McNAMARA_1
Honored Contributor

Re: installing binutils-2.11 on HPUX-11.11

Are you following the installation procedure defined here?

http://hpux.cs.utah.edu/hppd/hpux/Gnu/binutils-2.11/readme.html

Later,
Bill
It works for me (tm)
Vincenzo Restuccia
Honored Contributor

Re: installing binutils-2.11 on HPUX-11.11

You have installed C/ANSI C pro ?
Martin Christov
Advisor

Re: installing binutils-2.11 on HPUX-11.11

Hi Bill,
I followed the installation procedure:
untaring the archiv under /usr/local/bin
cd binutils..
./configure
make
Attached you can find the messages during the above two commands.

I have no ANSI/C Compiler installed.
sudo question
Vic Parker
Frequent Advisor

Re: installing binutils-2.11 on HPUX-11.11

Hi All,

Vince is correct, the errors are due to the fact that the bundled compiler is not capable of compiling ANSI code. In fact I would recommend, having compiled this tools set myself, that you do not use the HP ANSI compilers. You should go out and get gcc, bash, GNU make and all the other tools from gnu.org. The reason I say this is not because there is a problem with the HP ANSI compiler, but extensions are used that are part of the GNU compiler. So, save yourself the aggravation of compiler warning and errors, use GNU tools when compiling GNU software.

vic
code your own, or follow the rules