This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

gcc 2.9.2 on HP 11.0 compile fails with LARGEFILE64_SOURCE


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


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