delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/10/11/06:55:54

From: Andris Pavenis <pavenis AT latnet DOT lv>
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
Date: Wed, 11 Oct 2000 12:45:22 +0200
X-Mailer: KMail [version 1.1.94]
MIME-Version: 1.0
Message-Id: <00101112452200.31210@hal>
Reply-To: djgpp-workers AT delorie DOT com

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



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019