Compilation problems using gcc 2.95.2 on AIX 4.3.3

Venkatakrishnan, V V.Venkatakrishnan@channels.usa.xerox.com
Fri Feb 1 13:45:00 GMT 2002


Hi,
	I copied the files under /usr/include from another m/c (an AIX 4.1)
to my AIX 4.3 box ( I know I shudn't do that) and ran the make file.  I got
the following errors...
In file included from intern3.h:2,
                 from block.c:4:
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:55:
sys/inttypes.h: A file or directory in the path name does not exist.
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:211:
parse error
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:275:
parse error
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:358:
parse error
In file included from /usr/include/netdb.h:173,
                 from intern3.h:9,
                 from block.c:4:
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/stdio.h:246:
parse error
In file included from /usr/include/netdb.h:173,
                 from intern3.h:9,
                 from block.c:4:
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/stdio.h:264:
parse error
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/stdio.h:283:
parse error
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/stdio.h:379:
parse error
make: *** [block.o] Error 1
	
	As you can see this is coz. Sys/inttypes.h does not exist (guess it
wasn't there on the AIX 4.1 m/c), also I dunno why it's talking of parse
errors in stdio.h.
	All in all I guess this is all coz. Of improper header files, can
any AIX user tell me how I can get the right bunch of the system header
files.  If it's available with the AIX 4.3 OS CDs, where is it and how do I
go about installing them.
	Thanks,

Regards,
Venky

-----Original Message-----
From: Andrea 'Fyre Wyzard' Bocci [mailto:fwyzard@inwind.it] 
Sent: Thursday, January 31, 2002 7:54 PM
To: Venkatakrishnan, V; gcc-help@gcc.gnu.org
Subject: Re: Compilation problems using gcc 2.95.2 on AIX 4.3.3


At 16.23 30/01/2002 (GMT -0500), Venkatakrishnan, V wrote:
>Hi,
>         I've just built an AIX box running v4.3.3 and have gcc 2.95.2 
>running.  When I try to compile my code the compiler goes looking for 
>the system header files like types.h, stdio.h etc. in the 
>/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys and 
>then gives me a lot of errors.

What kind of errors ?

>Why does it go looking there?

If I understand correctly the behaviour of gcc, the installation should put 
in /usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys some 
header files needed to fix inconsistencies with the system header files.
Note that I'm just guessing. This might be utterly false, actually :-)

>How do I make it to look under /usr/include/sys ??

The GCC ones should be including the system ones, in the end. Assuming you
configured and built gcc on that (or a similar) machine, it 
should look for them automatically.
However, you can specify where to look for header files (see the GCC manual 
<http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_2.html#SEC11> for the command 
line flags and their meaning).

Hope this helps, someway
fwyzard



More information about the Gcc-help mailing list