1833582 Members
4646 Online
110061 Solutions
New Discussion

Removing -ansi flag

 
mvr
Regular Advisor

Removing -ansi flag

I'm trying to compile BIND on the HP-UX 11-11
In the INSTALL file it said:

HPUX
If you are using gcc you may have to remove the '-ansi'flag. This is gcc version dependent.

I tried to compaile with th flag, but I recived error.

How do I remove -ansi flag ?


Miro
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor

Re: Removing -ansi flag

Hi Miro,

Look at the Makefile and search for "CFLAGS". If that variable says "ansi", then you will need to remove it.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
mvr
Regular Advisor

Re: Removing -ansi flag

Here (attached) is my Makefile I don't see any ansi flag.
Any other suggestion ?

Miro
Steven Gillard_2
Honored Contributor

Re: Removing -ansi flag

The BIND configure script creates more than one Makefile - you'll need to check them all:

$ cd
$ find . -name Makefile | xargs grep ansi

...and remove the references from wherever it appears.

Regards,
Steve
Sridhar Bhaskarla
Honored Contributor

Re: Removing -ansi flag

Hi Miro,

I don't have the code for BIND.

Do you see a file called

Makefile.get.gcc anywhere?

Do a find. You may find this under each platform's directory. Select the one for the corresponding HP version.

Search for "ansi" in the above file.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
mvr
Regular Advisor

Re: Removing -ansi flag

Well, I tried all this but still a problem.
Could you tell me what version of BIND (even better depot) shuld I use with the HP-UX 11.11 ?

Miro
James R. Ferguson
Acclaimed Contributor

Re: Removing -ansi flag

Hi Miro:

BIND 9.2.0 can be found here:

http://www.software.hp.com/ISS_products_list.html

Regards!

...JRF...