public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
[parent not found: <bug-20366-10214@http.gcc.gnu.org/bugzilla/>]
* [Bug c++/20366] New: AIX g++ -D_LARGE_FILES fails to compile #include <iostream>
@ 2005-03-07 19:12 gcc-bugzilla at gcc dot gnu dot org
  2005-03-07 19:15 ` [Bug target/20366] " pinskia at gcc dot gnu dot org
  2005-03-07 19:30 ` dje at gcc dot gnu dot org
  0 siblings, 2 replies; 21+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2005-03-07 19:12 UTC (permalink / raw)
  To: gcc-bugs


	The compiler's C++ headers do not appear to work properly on AIX when
	the compiler is run with -D_LARGE_FILES.  This macro causes the
	system headers to #define symbols like fopen, while the C++ headers
	unconditionally #undef these symbols.

Environment:
System: AIX bigblue 2 5 000F699D4C00


	
host: powerpc-ibm-aix5.2.0.0
build: powerpc-ibm-aix5.2.0.0
target: powerpc-ibm-aix5.2.0.0
configured with: /usr0/slammert/gcc-3.4.3/configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ --enable-threads --enable-version-specific-runtime-libs

How-To-Repeat:
	On AIX 5.2, compile the following program with
	3.4.3 g++ -D_LARGE_FILES:

	    #include <iostream>
	    int main(void) { return 0; }

	You will get output similar to the following:

	    In file included from /usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3/include/c++/powerpc-ibm-aix5.2.0.0/bits/c++locale.h:43,
			     from /usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3/include/c++/iosfwd:46,
			     from /usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3/include/c++/ios:44,
			     from /usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3/include/c++/ostream:45,
			     from /usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3/include/c++/iostream:45,
			     from bug0.C:1:
	    /usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3/include/c++/cstdio:108: error: `::fgetpos' has not been declared
	    /usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3/include/c++/cstdio:110: error: `::fopen' has not been declared
	    /usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3/include/c++/cstdio:115: error: `::freopen' has not been declared
	    /usr/local/lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3/include/c++/cstdio:118: error: `::fsetpos' has not been declared
------- Additional Comments From dsanderson at panasas dot com  2005-03-07 19:12 -------
Fix:
	I can work around this problem and still compile a program with a
	64-bit off_t by compiling with -maix64 instead of -D_LARGE_FILES.

-- 
           Summary: AIX g++ -D_LARGE_FILES fails to compile #include
                    <iostream>
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dsanderson at panasas dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-ibm-aix5.2.0.0
  GCC host triplet: powerpc-ibm-aix5.2.0.0
GCC target triplet: powerpc-ibm-aix5.2.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20366


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2010-12-27 19:39 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-20366-4@http.gcc.gnu.org/bugzilla/>
2010-12-27 19:39 ` [Bug target/20366] AIX g++ -D_LARGE_FILES fails to compile #include <iostream> pogma at gcc dot gnu.org
     [not found] <bug-20366-10214@http.gcc.gnu.org/bugzilla/>
2006-02-22 23:43 ` bugzilla-gcc at thewrittenword dot com
2007-12-01 22:04 ` haubi at gentoo dot org
2007-12-19 15:58 ` haubi at gentoo dot org
2007-12-20  0:07 ` tcoleman at autowares dot com
2007-12-20  0:17 ` dsanderson at panasas dot com
2007-12-21  0:29 ` dje at gcc dot gnu dot org
2007-12-21  3:59 ` bugzilla-gcc at thewrittenword dot com
2007-12-21 14:59 ` dje at watson dot ibm dot com
2007-12-21 19:14 ` bugzilla-gcc at thewrittenword dot com
2007-12-21 23:23 ` dje at gcc dot gnu dot org
2007-12-21 23:25 ` bugzilla-gcc at thewrittenword dot com
2007-12-22 20:18 ` tcoleman at autowares dot com
2007-12-22 20:52 ` dje at watson dot ibm dot com
2007-12-31 19:29 ` peter at pogma dot com
2007-12-31 19:41 ` bugzilla-gcc at thewrittenword dot com
2008-03-03 21:12 ` bugzilla-gcc at thewrittenword dot com
2008-03-07  6:55 ` rwild at gcc dot gnu dot org
2008-04-04  5:32 ` pogma at gcc dot gnu dot org
2005-03-07 19:12 [Bug c++/20366] New: " gcc-bugzilla at gcc dot gnu dot org
2005-03-07 19:15 ` [Bug target/20366] " pinskia at gcc dot gnu dot org
2005-03-07 19:30 ` dje at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).