This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: gcc 2.9.2 on HP 11.0 compile fails with LARGEFILE64_SOURCE
- From: Vijayakumar Kothandaraman <vkothand at interwoven dot com>
- To: 'LLeweLLyn Reese' <llewelly at lifesupport dot shutdown dot com>, "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Cc: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Date: Mon, 9 Jun 2003 13:23:34 -0700
- Subject: RE: gcc 2.9.2 on HP 11.0 compile fails with LARGEFILE64_SOURCE
I am suprised to learn GCC 2.95.x is not supported under HP-UX 11 . We have
been extensively using GCC 2.95.2 in our product on HP 11 and we never had
any problem so far except for LARGEFILE support.
Does it mean that GCC 2.95.X was never supported on HP 11?
Vijay
-----Original Message-----
From: LLeweLLyn Reese [mailto:llewelly@lifesupport.shutdown.com]
Sent: Monday, June 09, 2003 1:05 PM
To: 'gcc-help@gcc.gnu.org'
Cc: Vijayakumar Kothandaraman; 'gcc-bugs@gcc.gnu.org'
Subject: Re: gcc 2.9.2 on HP 11.0 compile fails with LARGEFILE64_SOURCE
Vijayakumar Kothandaraman <vkothand@interwoven.com> writes:
> Hi,
>
> I hope someone can help me on this problem. I am trying to compile a
simple
> c++ program with LARGEFILE64_SOURCE (support for > 2GB files) turned on. I
> am getting the following compile errors on hp. I was successful in
compiling
> this with native aCC HP compiler but we want to use gcc. Looks like its an
> issue with gcc on hp.
>
> Note: I was able to compile the same source on other platforms like
solaris,
> aix, linux using gcc . I only have problem on HP.
>
> Please help
> Vijay
>
> Error snapshot:
> --------------
>
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/stdio.h:531:
> syntax error before `('
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/stdio.h:532:
type
> specifier omitted for parameter
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/stdio.h:533:
type
> specifier omitted for parameter
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/stdio.h:533:
parse
> error before `*'
> /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2/include/stdio.h:534:
parse
> error before `*'
> In file included from /usr/include/sys/stat.h:49,
> from test1.cpp:6:
> /usr/include/sys/_stat_body.h:21: syntax error before `;'
> /usr/include/sys/_stat_body.h:29: syntax error before `;'
> test1.cpp: In function `int main(int, char **)':
> test1.cpp:12: `off64_t' undeclared (first use this function)
> test1.cpp:12: (Each undeclared identifier is reported only once
> test1.cpp:12: for each function it appears in.)
> test1.cpp:12: parse error before `;'
> test1.cpp:39: `rslt' undeclared (first use this function)
> test1.cpp:39: parse error before `200'
> test1.cpp:43: confused by earlier errors, bailing out
Please read: http://gcc.gnu.org/install/specific.html#hppa*-hp-hpux11
gcc 2.95.x does not work on hpux11. try upgrading to a newer gcc.