Operating System - HP-UX
1753375 Members
5477 Online
108792 Solutions
New Discussion юеВ

Compiler not ANSI compliant!

 
SOLVED
Go to solution

Compiler not ANSI compliant!

guys n gals,

we have here an HPux 11 demo unit. while configuring Apache server, it detected that is needs an ANSI C Compiler. Seems that compiler is not ANSI compliant. I have here the 5 HP-UX 11.0 Application software.
Q1: how do i confirm that the compiler on the box is Ansi compliant? exe's please.
Q2: since i have the applctn cd's, how do i install/add Ansi modules or whatever to make the compiler on our box ansi compliant..

:)
json
friends get u places
3 REPLIES 3
Stefan Farrelly
Honored Contributor
Solution

Re: Compiler not ANSI compliant!

To confirm your installed compiler is ANSI compliant;

swlist -l bundle | grep -i ansi

If you get the following its installed;

B3901BA B.11.01.20 HP C/ANSI C Developer's Bundle for HP-UX 11.00 (S800)

Or you can check the binary; what /usr/bin/cc
If it comes back and says (Bundled) you know its NOT ANSI.

To install from the CD's you will need to purchase the product (expensive) and obtain a codeword from HP to pull the software off the CD. Its encrypted on the CD, without a codeword you cant install it.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Bill McNAMARA_1
Honored Contributor

Re: Compiler not ANSI compliant!

just to add, you can check that your compiler has the -Aa options usually used to compile ansi-c.

Later,
Bill
It works for me (tm)
Stefan Farrelly
Honored Contributor

Re: Compiler not ANSI compliant!


You dont need to buy the HP ANSI C compiler though, you can simply download the free GNU ANSIC C compiler and use that instead, from;

http://hpux.csc.liv.ac.uk/
Im from Palmerston North, New Zealand, but somehow ended up in London...