- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to recognize Ansi C compiler is installed
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2007 03:13 AM
01-22-2007 03:13 AM
(We are migrating stuff from the donkey to the race horse:)
1) The old donkey D270 running hpux-10.00.
When I do a swlist -l subproducts | grep -i Ansi there I get this output:
[root@devor:]/root<>>> swlist -l subproduct | grep -i ansi
# C-ANSI-C B.10.20.00 HP C/ANSI C Compiler
C-ANSI-C.Development C Runtime environment
C-ANSI-C.Help On-line Help
C-ANSI-C.Manuals C and C-TOOLS References Pages
But when I run the what command on it:
[root@devor:]/usr/bin<>>> what cc
cc:
LINT A.10.32.03 CXREF A.10.32.03
HP92453-01 A.10.32.03 HP C Compiler
/usr/lib/libc: $Revision: 76.3 $
[root@devor:]/usr/bin<>>>
It does not realy confirm it is Ansi.
(Although we know it works here)
However, on the newer machine
2) This is a N4000 running hpux 11.00
and when I do a swlist -l subproduct | grep -i ansi I get no output.
Still there is a compilor running:
[root@orasrv2:]/root<>>> what /usr/bin/cc
/usr/bin/cc:
HP92453-01 A.11.00.00 HP C (Bundled) Compiler
CUPROS_IC23B //1
/ux/core/libs/libc/archive_pa1/libc.a_ID
Oct 21 1997 13:07:38
[root@orasrv2:]/root<>>>
When I started here they told me they had
installed an Ansi compiler for c
So how can I be sure there is one or not ?
Any tests I can do ?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2007 03:16 AM
01-22-2007 03:16 AM
Re: How to recognize Ansi C compiler is installed
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2007 03:18 AM
01-22-2007 03:18 AM
Re: How to recognize Ansi C compiler is installed
cc -Aa bogusfile.c
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 485: Can't open "bogusfile.c".
apparently if it says that , the Ansi compilor is not there period.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2007 03:20 AM
01-22-2007 03:20 AM
SolutionThe "bundled" compiler is *not* ANSI C.
During installation of ANSI C, a link from '/usr/bin/cc' is created to point to the product. Thus:
# whereis cc
cc: /usr/bin/cc /usr/ccs/bin/cc /opt/ansic/bin/cc /opt/ansic/share/man/man1.Z/cc
.1
# ls -l /usr/bin/cc
lr-xr-xr-t 1 root sys 17 Jan 29 2004 /usr/bin/cc -> /opt/an
sic/bin/cc
As for tests, the bundled C compiler does not support ANSI prototypes.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2007 05:04 PM
01-22-2007 05:04 PM
Re: How to recognize Ansi C compiler is installed
This isn't true on IPF, that compiler doesn't support K&R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2007 05:59 PM
01-22-2007 05:59 PM
Re: How to recognize Ansi C compiler is installed
Thanks for your input though:)