we running on a hpux workstation hpux 11.11 ( model B180 L ) latest relaese from december 2001. now we would like to install an tool which will allow us to generate our own depots. this programm names mkpkg ( relaese 3.0 alpha 5 ) and we downloaded it from http://www.hpl.hp.com/personal/Carl_Staelin/ .
In the INSTALL file is described how to install it. After the make command the installation breaks with message
bb: /tmp/mkpkg-3.0alpha5 #make
cc -Ae -O -o getpw getpw.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: "getpw.c", line 28: error 1705: Function prototypes are an ANSI feature.
*** Error exit code 1
HP-UX comes with a old c compiler included. It is /usr/bin/cc. It can only compile old K&R c and lacks a lot of features like an optimizer.
Most vendors sell the C compiler as a separate product and do not include a c compiler at all. Hp would like to join this club, but their kernel bulding process requires a c compiler. So they include the old compiler and hope that you will buy the new one.
If you have HP's Ansi C compiler, it will be in /opt/ansic/bin/cc. You will need to use this compiler to compile that code you downloaded.
Another approach might be to obtain gcc, which is a free c compiler with ansi support. But don't be surprised if you need to make some changes to the code to get it to compile with gcc. gcc is a little weird sometimes.