Operating System - Linux
1828064 Members
2497 Online
109974 Solutions
New Discussion

HP-ux 11i v2 support for C Compiler

 
H S Z
Regular Advisor

HP-ux 11i v2 support for C Compiler

Hi Gurus

Correct me if am wrong please
Am installing a C based program called SIGAGIP 3.0 This program is now live up and running on a AIX IBM R50 Server. My aim is to end up having SIGAGIP running on hp-ux 11i v2 on a hp rx4640 server. WHat i've done so far is that, i've pulled all files from the AIX to the hp-ux.
After that, in normal circontances, i should just run a file and everything will be well. But am getting some character errors during that process. I suspect that it has to do with a compatibility. I would like to ask then if hp-ux 11i v2 has by default the C Compiler laoded or I have to get it in myself.

Please ur fast advices are highly appreciated.

Horace
12 REPLIES 12
Alex Lavrov.
Honored Contributor

Re: HP-ux 11i v2 support for C Compiler

Hmm ...

You can't run binaries from one OS on another OS. For HPUX, AIX binary is just "junk" file. You need to get the source of that program and compile it on HPUX. There is nothing you can do with those binaries.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
A. Clay Stephenson
Acclaimed Contributor

Re: HP-ux 11i v2 support for C Compiler

I'll assume that you are moving the source code and by "just run a file" you mean that you execute a script or makefile that actually builds the application from the source code and that you are encountering compiler errors.

Yes, indeed a C compiler is included with every HP-UX box; however, this is referred to as the Bundled C compiler and it is really only intended to build kernels. The Bundled compiler only understands K&R syntax so for any serious development you need to purchase the aCC compiler (C++, ANSI/C) or the HP ANSI C compiler. You can also download and install gcc from any of the HP-UX Porting Centre's.
If it ain't broke, I can fix that.
H S Z
Regular Advisor

Re: HP-ux 11i v2 support for C Compiler

HI

actually, i dont have the source. I have the compiled program from AIX.
WHen i run it here is the syntax error am getting:

/home/cgi1 [3]$ cd $DIRCOM
/sigprod/devcol/dircom [4]$ rep20


/sigprod/txa020/exec/RTSGIP: syntax error at line 2 : `(' unexpected


Please advice
H S Z
Regular Advisor

Re: HP-ux 11i v2 support for C Compiler

please note that /sigprod/txa020/exec/RTSGIP is the compiled file from AIX
Alex Lavrov.
Honored Contributor

Re: HP-ux 11i v2 support for C Compiler

If it's already compilied for AIX, there is nothing you can do about it.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Vibhor Kumar Agarwal
Esteemed Contributor

Re: HP-ux 11i v2 support for C Compiler

Why don't you install the same on HP.

Search the net and you will get a Hp installer.
Vibhor Kumar Agarwal
H S Z
Regular Advisor

Re: HP-ux 11i v2 support for C Compiler

the program runs on Microfocus cobol 3.0
and i need to know if there is version for Hp-ux 11i v2
Alex Lavrov.
Honored Contributor

Re: HP-ux 11i v2 support for C Compiler

Are these binaries compiled for AIX or they can run on every platform with Microfobus cobol 3.0 installed on them?

I guess you must get HPUX binaries or compile he sources ....
I don't give a damn for a man that can only spell a word one way. (M. Twain)
H S Z
Regular Advisor

Re: HP-ux 11i v2 support for C Compiler

is the cobol compiler in the application cd of the hp-ux 11i v2? If yes, if i install it, will it work?
H S Z
Regular Advisor

Re: HP-ux 11i v2 support for C Compiler

Does anyone know where i can download C Compiler and Cobol 3.0 for HP-UX 11i V2?
Gary L. Paveza, Jr.
Trusted Contributor

Re: HP-ux 11i v2 support for C Compiler

Microfocus cobol is a 3rd party software that you would have to purchase. www.microfocus.com
Alex Lavrov.
Honored Contributor

Re: HP-ux 11i v2 support for C Compiler

I don't where to take the cobol compiler, but I can say it again:

If you don't have the sources of the program, compiler won't help you.
I don't give a damn for a man that can only spell a word one way. (M. Twain)