1990314 fails to build

Alexandre Oliva oliva@dcc.unicamp.br
Sun Mar 14 09:56:00 GMT 1999


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


More information about the Gcc-patches mailing list