I report about probrem of 'gpc-19990118' that I found in installation to the system based on FreeBSD, and how I had solved it.
As making or compiling gpc-19990118 with gcc-2.8.1 or egcs-1.1.1 for FreeBSD, you have to edit with line 1538 on 'p/rts/file.c'.
original source:
#ifdef HAVE_STATVFS #include <sys/statvfs.h> #elif defined(HAVE_STATVFS) #include <sys/vfs.h> #endif
changed:
#ifdef __FreeBSD__ #include <sys/mount.h>
#else #ifdef HAVE_STATVFS #include <sys/statvfs.h> #elif defined(HAVE_STATVFS) #include <sys/vfs.h> #endif #endif /*__FreeBSD__ */
Reason: On the FreeBSD, "statfs" structure defined in sys/mount.h.
Note: If you make gcc/gpc for FreeBSD3.* may have to configurate options i386-unknown-freebsdelf3.* to build/host/target options for your style of use gcc/gpc.
/***************************************************** Information Engineering Department University of the Ryukyus YAMASHIRO Jun ($B;3>k=a(B) E-mail: j99060@ie.u-ryukyu.ac.jp *****************************************************/