Joe Conway <joseph.conway@home.com> writes:
> ... So the error I reported
> last time is actually from the bundled compiler.
Which, unless HP has reconsidered since HPUX 10, is a deliberately
crippled K&R (no ANSI features) compiler. It's no wonder the configure
run failed; I guess failing right at this point is happenstance, though
it could not have gotten further since this test depends on ANSI
prototypes.
> configure:1361: checking whether the C compiler (cc -Ae +O2 ) works
> configure:1377: cc -Ae -o conftest +O2 conftest.c 1>&5
> (Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
> (Bundled) cc: warning 480: The +O2 option is available only with the C/ANSI C product; ignored.
It's a shame configure hides all these useful messages down inside
config.log.
I wonder whether we shouldn't make the bare "does it work" test include
verification that ANSI-style prototypes are supported.
> So I added /opt/gcc/bin to my PATH, and got a different error once gcc
> was detected.
> configure:1243: checking whether the C compiler (gcc ) works
> configure:1259: gcc -o conftest conftest.c 1>&5
> as: warning 2: Unknown option "--traditional-format" ignored.
> as: "/var/tmp/cceTg0Kd.s", line 15: error 1052: Directive name not recognized - NSUBSPA
This looks like your gcc installation is broken: specifically, I'll bet
it's trying to use HP's assembler rather than gas. You really want the
GNU toolchain (binutils package) underneath gcc. The gcc-to-HP-as
configuration has never worked for me (though I have to admit I haven't
tried in a long time).
In the meantime, try it with HP's real compiler (set CC=cc for configure).
regards, tom lane