- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- shc compile error
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
Discussions
Discussions
Forums
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
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
тАО05-28-2002 04:20 AM
тАО05-28-2002 04:20 AM
shc compile error
I am trying to use a generic shell script compiler ( shc ) on my HP-UX 10.20 but get errors
The errors are :
cc -Wall -O -Ae match.x.c -o match.x
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C product; ignored.
(Bundled) cc: "match.x.c", line 110: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "match.x.c", line 121: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "match.x.c", line 140: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "match.x.c", line 157: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "match.x.c", line 182: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "match.x.c", line 189: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "match.x.c", line 241: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "match.x.c", line 248: error 1588: "PTRACE_ATTACH" undefined.
(Bundled) cc: "match.x.c", line 262: error 1705: Function prototypes are an ANSI feature.
(Bundled) cc: "match.x.c", line 329: error 1705: Function prototypes are an ANSI feature.
make: *** [match.x] Error 1
The cc compiler that is loaded on the machine is the standard compiler which is installed from the HP-UX instalation. There is no licence for any compilers. Is there away in which the shc compiler can use C/ANSI product.What and How????.
Much appreciated
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2002 04:27 AM
тАО05-28-2002 04:27 AM
Re: shc compile error
The error-messages you get tells you that
you are trying to compile ansi-c code
with a compiler that is only a K&R compiler.
The "bundled compiler" that comes with
HP-UX is mainly inteded for building the
kernel and not for program-development.
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2002 04:36 AM
тАО05-28-2002 04:36 AM
Re: shc compile error
Thanks for the info, but is there a compiler that I can use without getting a licence for it and if so where can I get one from that will be able to do the compiling with shc.
Thanks
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2002 04:53 AM
тАО05-28-2002 04:53 AM
Re: shc compile error
You can search the net for a copy of gcc
(GNU C)
I do not have any experience with it, but a
lot of people use it.
I would advise you to look for a binary
versrion (ready to use) as I know it can
be quite a job to compile the source-code
for gcc
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 11:42 AM
тАО05-29-2002 11:42 AM
Re: shc compile error
Is there anyone that can assist me with further info.
Much appreciated
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 11:57 AM
тАО05-29-2002 11:57 AM
Re: shc compile error
You can download thes from here:
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.0.4/
http://hpux.cs.utah.edu/hppd/hpux/Gnu/binutils-2.11.2/
If you choose to install gcc, you will also need to modify the makefile to call the proper compiler and assembler. You will need to change some compiler options as well. If your package does not have a 'configure' script for GNU C then perhaps your easist and surest option is to purchase a license for ANSI/C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 12:45 PM
тАО05-29-2002 12:45 PM
Re: shc compile error
Thanks for your response. I am not experienced with compilers or installing them. By downloading the gcc and its binutils, will this be effective to use the shc compiler ( generic script compiler). If it is effective could you assist with the method of these procedures in a step by step mode.
Many thanks
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2002 02:17 PM
тАО05-29-2002 02:17 PM
Re: shc compile error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2002 02:59 AM
тАО05-30-2002 02:59 AM
Re: shc compile error
Thanks for all the advice.
Chris