1820591 Members
1834 Online
109626 Solutions
New Discussion юеВ

ansi c compiler

 
jedd
Advisor

ansi c compiler

hi everybody
i have a A400 with 11.00 and trying to install BIND on it it's giving an error during the compile. my questions are:
1.how do i know what compiler i have that came with the preinstalled OS?
2.where can i get the ansi C compiler?i have looked all the application CD 5 of them. i've tried looking at them with swinstall, but i don't even know where to begin.very confusing layout.if not in the CD, can i get it someplace else?
3.any tips on compiling BIND?
thanks everybody.
have a good one.
9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: ansi c compiler

If I am not mistaken, you get a standard C compiler with the OS, not ANSI/C.

The ANSI/C compiler is a product you have to purchase separately from HP. For more information:
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B3899BA

aC++ - C++ compiler
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProducts.pl?group_name=aC%2B%2B&group_image=cat_featured.gif&group_type=family

Instead of HPs compilers you might try the Gnu C compiler. It's FREE!
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.0.1/
linuxfan
Honored Contributor

Re: ansi c compiler

Hi,

1. The default cc compiler is mostly used for building kernels. You cannot use it to build most of the GNU tools.

2. HP's Ansi C compiler costs money ($$$). IF your only need for this is to build gnu tools, then you are better off installing gcc (FREE).

But if you want to find out more about Ansi C.

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1853,00.html

For more information
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1857,00.html

To download gcc, use any of the porting centers to install binaries or download the source code from
http://www.gnu.org/directory/gcc.html

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Michael Tully
Honored Contributor

Re: ansi c compiler

Hi,

You do have a 'c' compiler that comes
as part of the operating system,but
all in all it quite useless.
You will have either buy the 'ANSI/C'
compiler from HP or you can download
either the source or already compiled
GNU C compiler. The best part about this
particular one is that is free.

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.0.1/

A BIND version comes as part of the
operating system already, although you
can obtain your own BSD version if you
wish.

HTH
-Michael
Anyone for a Mutiny ?
Ravi_8
Honored Contributor

Re: ansi c compiler

Hi,
Since ansi C is widely used in all the programming, the standard C compiler which comes along with OS does compile, so you need to install HP aC compiler, which can be installed with codeword. So you need to buy licence for HP aC compiler, which will be available in 1of4 for 10.2 and 2of5 for 11.0 in application CD's.
never give up
Santosh Nair_1
Honored Contributor

Re: ansi c compiler

I'm just wondering why no one mentions that GCC is also available from HP's devresouce site, i.e:

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html

I realize it might a bit older then the one in the porting center, but since its from HP, there *might* be a chance that they'll support it(?).

-Santosh
Life is what's happening while you're busy making other plans
jedd
Advisor

Re: ansi c compiler

Does anybody know what BIND HPUX supports?
i have 8.2.3 on HPUX 11.00, i read somewhere that HPUX not supported on 8.1.2.
if i have 8.2.3 and i installed GCC compiler, is there anyway of compiling BIND in GCC, it's looking for ANSI C compiler, which i don't have. will it be too hard to reconfigure the script to look for gcc instead of ansi c?i know the answers are kinda long, but i really need help. i saw a 8.1.3 on software.hp.com. that'll be my last recourse.
thanks everybody
Stefan Farrelly
Honored Contributor

Re: ansi c compiler


Tn answer your questions, according to HP the only supported versions are;

Up to 8.1.2 on 11.0
Up to 9.1.3 on 11.11

Both available from software.hp.com

If you have 8.2.3 installed and want to compile it using gcc then all you should need to do is edit the Makefile and change the line where is says CC = cc to CC = gcc (may need the full path for gcc).
Then run make.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Santosh Nair_1
Honored Contributor

Re: ansi c compiler

gcc IS an ansi C compiler. As Stefan said, you should be able to replace cc with gcc in the CC= line of the make file to build BIND.

-Santosh
Life is what's happening while you're busy making other plans
jedd
Advisor

Re: ansi c compiler

thanks for the response, last question would be do i need to change just the main makefile in the main bin directory or including all the makefile in all the directories which would be a lot!!!!
e.g. /src/bin/Makefile;//src/bin/host/Makefile
again thanks for all the help