This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 2.9.2 on HP 11.0 compile fails with LARGEFILE64_SOURCE
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Cc: Vijayakumar Kothandaraman <vkothand at interwoven dot com>, "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Date: 09 Jun 2003 13:05:03 -0700
- Subject: Re: gcc 2.9.2 on HP 11.0 compile fails with LARGEFILE64_SOURCE
- References: <E7244F2AFCE1C644BD0B1CCE65C84B2401A1FDF5@xchanger3.Interwoven.com>
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.