|
From: Martin K. <mk...@ya...> - 2010-07-01 18:21:31
|
I am trying to build indent-2.2.9 under mingw and msys. This is my first ever build package build.
Mingw is installed in c:\mingw and Msys is in c:\msys\1.0.
I ran "configure --prefix=/mingw" then make
make fails on the first file, backup.c with this message
source='backup.c' object='backup.o' libtool=no \
depfile='.deps/backup.Po' tmpdepfile='.deps/backup.TPo' \
depmode=gcc3 /bin/sh ../config/depcomp \
gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/mingw/share/locale\" -I. -I. -I.. -I. -I. -I../intl -g -O2 -c `test -f 'backup.c' || echo './'`backup.c
In file included from backup.c:89:
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/dirent.h:38: error: field `dd_dta' has incomplete type
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/dirent.h:85: error: field `dd_dta' has incomplete type
make[3]: *** [backup.o] Error 1
I have traced the problem to the fact that this package contains a file called io.h and is
referenced from backup.c as
#include "io.h"
On the other hand, dirent.h references the system include file io.h as
#include <io.h>
I think that the compiler is supposed to differentiate between these two files based on
configuration of the include file paths. Is this right?
If so I cannot determine how to set the include path so that files bracketed with <>
are included before other directories.
Any guidance is appreciated.
Best regards,
Marty
|