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]

Re: 1990314 fails to build


On Mar 14, 1999, Dave Gilbert <gilbertd@treblig.org> wrote:

> iostream.cc:130: prototype for `class istream & istream::read(char *,
> int)' does not match any in class `istream'
> iostream.h:143: candidates are: class istream & istream::read(void *, long
> int)
[snip]
> `/home/gilbertd/egcs-source/egcs-19990314/alphaev56-unknown-linux-gnu/libio'

Same here...  The attached patch has fixed it (ok to install?), but I
don't really understand what has changed that caused this difference
in behavior.  The change was not within libio...

Unfortunately, at least on alpha-dec-osf4.0, I got more failures after 
the one you posted:

make[2]: Entering directory `/usr/local/tmp/egcs/alphaev56-dec-osf4.0d/libg++/src'
test x"yes" != xyes || \
  /usr/local/tmp/egcs/gcc/xgcc -B/usr/local/tmp/egcs/gcc/ -B/n/temp1/gcctest/egcs/alpha-OSF1-V4.0/alphaev56-dec-osf4.0d/bin/ -c -g -O2 -fno-implicit-templates -nostdinc++ -I. -I../../libio -I/home/msc/oliva/src/egcs/libg++/src -I/home/msc/oliva/src/egcs/libg++/src/../../libio -I/home/msc/oliva/src/egcs/libg++/src/../../libstdc++ -I/home/msc/oliva/src/egcs/libg++/src/../src     /home/msc/oliva/src/egcs/libg++/src/Regex.cc -o pic/Regex.o
In file included from /home/msc/oliva/src/egcs/libg++/src/Regex.cc:32:
rx.h:1288: conflicting types for `typedef int regoff_t'
/usr/include/reg_types.h:52: previous declaration as `typedef off_t regoff_t'
rx.h:1299: conflicting types for `typedef struct re_pattern_buffer regex_t'
/usr/include/reg_types.h:50: previous declaration as `typedef struct regex_t regex_t'
rx.h:1308: conflicting types for `typedef struct regmatch_t regmatch_t'
/usr/include/reg_types.h:60: previous declaration as `typedef struct regmatch_t regmatch_t'
make[2]: *** [Regex.o] Error 1

Any ideas?

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org,computer.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Instituto de Computação, Universidade Estadual de Campinas, SP, Brasil
Index: libio/ChangeLog
from  Alexandre Oliva  <oliva@dcc.unicamp.br>
	
	* streambuf.h (ios::streamsize): declare as _IO_ssize_t, as in the 
	global scope
	
Index: libio/streambuf.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libio/streambuf.h,v
retrieving revision 1.5
diff -u -r1.5 streambuf.h
--- libio/streambuf.h	1998/02/24 20:09:55	1.5
+++ libio/streambuf.h	1999/03/14 17:51:16
@@ -130,7 +130,7 @@
     typedef __fmtflags fmtflags;
     typedef int iostate;
     typedef int openmode;
-    typedef int streamsize;
+    typedef _IO_ssize_t streamsize;
     enum io_state {
 	goodbit = _IOS_GOOD,
 	eofbit = _IOS_EOF,

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