This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc-2.97: Problems building libio for targets i[3456]86-pc-msdosdjgpp
- To: djgpp-workers at delorie dot com, gcc at gcc dot gnu dot org
- Subject: gcc-2.97: Problems building libio for targets i[3456]86-pc-msdosdjgpp
- From: Andris Pavenis <pavenis at latnet dot lv>
- Date: Wed, 11 Oct 2000 12:45:22 +0200
In current version of DJGPP type off_t is int and fpos_t is unsigned long. As
result libio/gen-params generates _G_config.h with
typedef unsigned long _G_fpos_t;
typedef int _G_off_t;
which causes conflicts later when building libio :
if [ x"" != x ]; then \
/disk2/cvs/egcs-curr/build/build.djg/gcc/xgcc
-B/disk2/cvs/egcs-curr/build/build.djg/gcc/ -B/usr/i586-pc-msdosdjgpp/bin/
-B/usr/i586-pc-msdosdjgpp/lib/ -isystem /usr/i586-pc-msdosdjgpp/include -c -g
-O2 -I. -I../../../egcs/libio ../../../egcs/libio/genops.c -o pic/genops.o;
\
else true; fi
/disk2/cvs/egcs-curr/build/build.djg/gcc/xgcc
-B/disk2/cvs/egcs-curr/build/build.djg/gcc/ -B/usr/i586-pc-msdosdjgpp/bin/
-B/usr/i586-pc-msdosdjgpp/lib/ -isystem /usr/i586-pc-msdosdjgpp/include -c -g
-O2 -I. -I../../../egcs/libio ../../../egcs/libio/genops.c
../../../egcs/libio/genops.c:472: conflicting types for `_IO_default_seekpos'
../../../egcs/libio/libioP.h:349: previous declaration of
`_IO_default_seekpos'
../../../egcs/libio/genops.c:556: conflicting types for `_IO_default_seekoff'
../../../egcs/libio/libioP.h:348: previous declaration of
`_IO_default_seekoff'
../../../egcs/libio/genops.c:887: conflicting types for `_IO_default_seek'
../../../egcs/libio/libioP.h:358: previous declaration of `_IO_default_seek'
make[1]: *** [genops.o] Error 1
make[1]: Leaving directory
`/disk2/cvs/egcs-curr/build/build.djg/i586-pc-msdosdjgpp/libio'
make: *** [all-target-libio] Error 2
Changing in stdio.h (for DJGPP) fpos_t to int fixes the problem but I'm not
sure that is the right way.
Andris
PS. I got these problems trying to build Linux to DJGPP cross-compiler