This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2575: header file type conflict
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2575: header file type conflict
- From: min at min dot hotu dot com
- Date: 18 Apr 2001 05:18:04 -0000
- Reply-To: min at min dot hotu dot com
>Number: 2575
>Category: c++
>Synopsis: header file type conflict
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 17 22:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: min@min.hotu.com
>Release: 2.95.3
>Organization:
>Environment:
i686-pc-linux-gnu (glibc 2.2.2)
>Description:
After installing 2.95.3, I can't compile one of my old c++ program,
messages indicate that:
/usr/include/g++-3/streambuf.h: In method `streampos streambuf::pubseekoff(long
long int, ios::seek_dir, int = 3)':
/usr/include/g++-3/streambuf.h:362: `struct _G_fpos64_t' used where a `streampos
' was expected
/usr/include/g++-3/streambuf.h: In method `streampos streambuf::pubseekpos(long
long int, int = 3)':
/usr/include/g++-3/streambuf.h:364: conversion from `streampos' to non-scalar ty
pe `_G_fpos64_t' requested
/usr/include/g++-3/streambuf.h:364: warning: control reaches end of non-void fun
ction `streambuf::pubseekpos(long long int, int)'
After a few repeated make bootstrap and make install on gcc,
the messages went away and I was able to compile my c++/stl
program
However, when I tried to compile PalmOS Emulator 3.1,
the following messages appeared (the type comflict came up again)
------------------------
make[1]: Leaving directory `/home/min/temp/Emulator_Src_3.1/BuildUnix/espws-2.0'
make[1]: Entering directory `/home/min/temp/Emulator_Src_3.1/BuildUnix'
c++ -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_ENDIAN_H=1 -DHAVE_FCNTL_H=1 -DHAVE
_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_TYPE
_SOCKLEN_T=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_MKDIR=1 -DHAVE_LIBFLTK=1
-I. -I. -I./../SrcShared -I./../SrcShared/Hardware -I./../SrcShared/Hardware/TR
G -I./../SrcShared/Palm/Device -I./../SrcShared/Palm/Platform/Core/Hardware/Incs
Prv -I./../SrcShared/Palm/Platform/Core/System/IncsPrv -I./../SrcShared/Palm/Pla
tform/Incs -I./../SrcShared/Palm/Platform/Incs/Core -I./../SrcShared/Palm/Platfo
rm/Incs/Core/Hardware -I./../SrcShared/Palm/Platform/Incs/Core/System -I./../Src
Shared/Palm/Platform/Incs/Core/UI -I./../SrcShared/Palm/Platform/Incs/Libraries
-I./../SrcShared/Gzip -I./../SrcShared/jpeg -I./../SrcShared/omnithread -I./../S
rcShared/UAE -I./../SrcUnix -I./../SrcUnix/espws-2.0 -I/usr/local/include -I/ho
me/min/temp/fltk-1.0.10//include -DUNIX -D__PALMOS_TRAPS__=0 -DEMULATION_LEVEL=
EMULATION_UNIX -O2 -DHAS_PROFILING=0 -DNDEBUG -fexceptions -Wall -Wno-multicha
r -Wno-unknown-pragmas -Wno-conversion -D_REENTRANT -DNoNanoSleep -DPthreadDr
aftVersion=10 -c ./../SrcUnix/Document.cpp
cpp0: In file included from ../SrcShared/Palm/Platform/Incs/Core/System/Bitmap.h
:24,
from ../SrcShared/Palm.h:66,
from ../SrcUnix/EmCommonUnix.h:31,
from ../SrcShared/EmCommon.h:61,
from ./../SrcUnix/Document.cpp:14:
../SrcShared/Palm/Platform/Incs/Core/CoreTraps.h:14:5: warning: trigraph ??/ enc
ountered
../SrcShared/Palm/Platform/Incs/Core/CoreTraps.h:15:8: warning: trigraph ??/ enc
ountered
cpp0: In file included from ../SrcShared/Palm/Platform/Incs/Core/System/SystemMg
r.h:38,
from ../SrcShared/Palm/Platform/Incs/Core/System/Preferences.h:
41,
from ../SrcShared/Palm.h:100,
from ../SrcUnix/EmCommonUnix.h:31,
from ../SrcShared/EmCommon.h:61,
from ./../SrcUnix/Document.cpp:14:
../SrcShared/Palm/Platform/Incs/Core/System/SystemResources.h:121:19: warning: t
rigraph ??' encountered
../SrcShared/Palm/Platform/Incs/Core/System/SystemResources.h:206:43: warning: t
rigraph ??' encountered
cpp0: In file included from ../SrcShared/Palm.h:151,
from ../SrcUnix/EmCommonUnix.h:31,
from ../SrcShared/EmCommon.h:61,
from ./../SrcUnix/Document.cpp:14:
../SrcShared/Palm/Platform/Incs/Core/UI/UIResources.h:12:5: warning: trigraph ??
/ encountered
../SrcShared/Palm/Platform/Incs/Core/UI/UIResources.h:13:8: warning: trigraph ??
/ encountered
cpp0: In file included from ../SrcShared/Palm.h:174,
from ../SrcUnix/EmCommonUnix.h:31,
from ../SrcShared/EmCommon.h:61,
from ./../SrcUnix/Document.cpp:14:
../SrcShared/Palm/Platform/Core/Hardware/IncsPrv/M68328Hwr.h:43:68: warning: tri
graph ??) encountered
In file included from /usr/include/g++-3/iostream.h:31,
from /usr/include/g++-3/stl_alloc.h:45,
from /usr/include/g++-3/alloc.h:21,
from /usr/include/g++-3/std/bastring.h:39,
from /usr/include/g++-3/string:6,
from ../SrcShared/EmDirRef.h:17,
from ../SrcShared/EmFileRef.h:17,
from ../SrcShared/EmStructs.h:17,
from ../SrcUnix/Document.h:17,
from ./../SrcUnix/Document.cpp:15:
/usr/include/g++-3/streambuf.h: In method `streampos streambuf::pubseekoff(long
long int, ios::seek_dir, int = 3)':
/usr/include/g++-3/streambuf.h:362: `struct _G_fpos64_t' used where a `streampos
' was expected
/usr/include/g++-3/streambuf.h: In method `streampos streambuf::pubseekpos(long
long int, int = 3)':
/usr/include/g++-3/streambuf.h:364: conversion from `streampos' to non-scalar ty
pe `_G_fpos64_t' requested
/usr/include/g++-3/streambuf.h:364: warning: control reaches end of non-void fun
ction `streambuf::pubseekpos(long long int, int)'
make[1]: *** [Document.o] Error 1
make[1]: Leaving directory `/home/min/temp/Emulator_Src_3.1/BuildUnix'
make: *** [all-recursive] Error 1
--------------------
any ideas? (I could manually retype streampos, but I'd like
to know if others are encountering this...)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: