This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Thank you for your help!


Dear friends,

Thanks for your prompt reply! 

I've extracted the gcc excutables from its binary
distribution for AIX 4.3 into a big filesystem. Since
there's no enough space in /usr filesystem, I created
a symbolic link /usr/local to point to the real
destination -- as one of the friends said. After I
added /usr/local & /usr/local/bin into the PATH, gcc
start working. But it gave me a lot of error messages,
even for the simplest program! It happened at the very
beginning where '#define <stdio.h>' appeared. I have
no idea on how to solve the program. I checked the .h
file mentioned in the error message. It seems that the
data type definition is error. I don't understand how
it comes because the same .c program can compile(using
cc instead of gcc. Since there's no cc installed on
AIX, so I chose gcc binary excutables installation) &
run on Soloris platform successfuly. I tried gcc
binary distributions for AIX 4.3.2 and for AIX 4.2.1
respectively. They all failed. The AIX I used is
version 4.3. Is it because the versions are not
exactly same? But I could not find a gcc binary
distribution for AIX 4.3 exactly, I could only find
the one that is for AIX 4.3.2 and for AIX 4.2.1. 

Could you please give me some advice on this? Thank
you once again!


Best regards,
Jeffrey


Below is the error message

AIX 4.3 c compiler
=================

$ gcc prep.cIn file included from
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/stdio.h:365,
                 from prep.c:7:
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:114:par
se error before `time_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:114:war
ning: data definition has no type or storage class
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:149:par
se error before `daddr_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:149:war
ning: data definition has no type or storage class
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:155:par
se error before `ino_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:155:war
ning: data definition has no type or storage class
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:161:par
se error before `dev_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:161:war
ning: data definition has no type or storage classIn
file included from
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/stdio.h:365,
                 from prep.c:7:
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:492:par
se error before `ino_t'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:492:war
ning: no semicolon at end of struct or union
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:495:par
se error before `}'
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.3.2.0/2.95.2/include/sys/types.h:525:fie
ld `fh_fid' has incomplete type
$


AIX 4.2 compiler error
=====================

$ gcc prep.c
In file included from
/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.2/include/sys/types.h:211,
                
from/usr/local/lib/gcc-lib/rs6000-ibm-aix4.2.1.0/2.95.2/includ
e/stdio.h:333,                 from prep.c:7:
/usr/include/sys/m_types.h:69: parse error
before`vmid_t'
/usr/include/sys/m_types.h:69: warning: datadefinition
has no type or storage c
lass/usr/include/sys/m_types.h:70: parse error
before`vmhandle_t'
/usr/include/sys/m_types.h:70: warning: datadefinition
has no type or storage c
lass/usr/include/sys/m_types.h:78: parse error
before`vmhandle_t'
/usr/include/sys/m_types.h:78: warning: no semicolonat
end of struct or union
/usr/include/sys/m_types.h:84: parse error before `}'
/usr/include/sys/m_types.h:84: warning: datadefinition
has no type or storage c
lass/usr/include/sys/m_types.h:92: parse error
before`__ulong32_t'
/usr/include/sys/m_types.h:92: warning: no semicolonat
end of struct or union
/usr/include/sys/m_types.h:93: warning: datadefinition
has no type or storage c
lass/usr/include/sys/m_types.h:98: parse error before
`}'
/usr/include/sys/m_types.h:98: warning: datadefinition
has no type or storage c
lass



__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]