This is the mail archive of the gcc@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]

glibc 2.2 related question



Hi,

I have gcc 2.95.2+cvs updates from 20000220 + 3 patches from ,,gcc on RH7'' thread
and glibc 2.1.96. There was one change in my cvs updates:

       * filebuf.cc (open): Support ios::ate if _G_HAVE_IO_FILE_OPEN.
       Remove seek for ios::app if not.

 #if _G_HAVE_IO_FILE_OPEN
 -  return (filebuf*)_IO_file_open (this, filename, posix_mode, prot,
 -                                 read_write, 0);
 +  if (!_IO_file_open (this, filename, posix_mode, prot,
 +                     read_write, 0))
 +    return NULL;
 +  if (mode & ios::ate) {
 +    if (pubseekoff(0, ios::end) == EOF) {	<-- 119 line
 +      _IO_un_link (this);
 +      return NULL;
 +    }
 +  }
 +  return this;
 #else

which now breaks gcc build process:
/home/users/misiek/rpm/BUILD/gcc-2.95.2/obj-i586-pld-linux/gcc/xgcc -B/home/users/misiek/rpm/BUILD/gcc-2.95.2/obj-i586-pld-linux/gcc/ -B/usr/i586-pld-linux/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I../../../libio -nostdinc++ -D_IO_MTSAFE_IO -fpic ../../../libio/filebuf.cc -o pic/filebuf.o
../../../libio/filebuf.cc: In method `class filebuf * filebuf::open(const char *, int, int = 436)':
../../../libio/filebuf.cc:119: no match for `streampos == int'
make[1]: *** [filebuf.o] Błąd 1

Any ideas ? (I of course can revert cvs updates but I don't want to do this).

Bye,
-- 
Arkadiusz Miśkiewicz, AM2-6BONE    [ PLD GNU/Linux IPv6 ]
http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/   [ enabled ]

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