Hi,
No problem with 2.10.95 or 2.10.94, but a non-portable file has been shoved
into the source distro since then - namely test/test-migration.c:
#####################################
make[2]: Entering directory `/c/comp/fontconfig-2.11.0/test'
CC test-migration.o
test-migration.c:21:2: error: too many arguments to function 'mkdir'
In file included from
c:\mingw\bin\../lib/gcc/mingw32/4.7.0/../../../../include/
unistd.h:12:0,
from test-migration.c:4:
c:\mingw\bin\../lib/gcc/mingw32/4.7.0/../../../../include/io.h:302:37: note:
dec
lared here
test-migration.c:23:2: error: too many arguments to function 'mkdir'
In file included from
c:\mingw\bin\../lib/gcc/mingw32/4.7.0/../../../../include/
unistd.h:12:0,
from test-migration.c:4:
c:\mingw\bin\../lib/gcc/mingw32/4.7.0/../../../../include/io.h:302:37: note:
declared here
test-migration.c: In function 'unlink_dirs':
test-migration.c:56:7: error: 'struct dirent' has no member named 'd_type'
test-migration.c:56:19: error: 'DT_DIR' undeclared (first use in this
function)
test-migration.c:56:19: note: each undeclared identifier is reported only
once for each function it appears in
test-migration.c: In function 'main':
test-migration.c:92:17: warning: initialization makes pointer from integer
without a cast [enabled by default]
make[2]: *** [test-migration.o] Error 1
make[2]: Leaving directory `/c/comp/fontconfig-2.11.0/test'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/comp/fontconfig-2.11.0'
make: *** [all] Error 2
#####################################
The mkdir() problem is trivial to fix - it's just a matter of removing the
second arg.
Not sure what I ought to do about the problem with struct dirent.
FYI, here is what struct dirent looks like in MinGW ports of gcc-4.7.0
(which is what I use):
struct dirent
{
long d_ino; /* Always zero. */
unsigned short d_reclen; /* Always zero. */
unsigned short d_namlen; /* Length of name in d_name. */
char d_name[260]; /* [FILENAME_MAX] */ /* File name. */
};
My configure command was (as per usual):
$ ./configure --disable-shared --enable-static
CPPFLAGS=-IC:/MinGW/msys/1.0/local/include
LDFLAGS=-LC:/MinGW/msys/1.0/local/lib --prefix=C:/MinGW/msys/1.0/local &&
make
(I don't have any pressing need for an updated fontconfig ... just wanted to
report the breakage.)
Cheers,
Rob
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig