I'm using MSYS2/mingw-builds 4.9.3 MinGW-w64 and a recent commit has
made fontconfig unable to compile, am I missing something in my mingw/gcc?
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking whether ln -s works... no, using cp -pR
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for python... no
checking for python2... /usr/bin/python2
checking for python version... 2.7
checking for python platform... msys
checking for python script directory...
${prefix}/lib/python2.7/site-packages
checking for python extension module directory...
${exec_prefix}/lib/python2.7/site-packages
checking for RM macro... rm -f
checking build system type... i686-w64-mingw32
checking host system type... i686-w64-mingw32
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc...
E:/Buildsys/projects/mplayer/tools/4.9.3/mingw32/i686-w64-mingw32/bin/ld.exe
checking if the linker
(E:/Buildsys/projects/mplayer/tools/4.9.3/mingw32/i686-w64-mingw32/bin/ld.exe)
is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mingw32/bin/nm -B
checking the name lister (/mingw32/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 8192
checking how to convert i686-w64-mingw32 file names to i686-w64-mingw32
format... func_convert_file_msys_to_w32
checking how to convert i686-w64-mingw32 file names to toolchain
format... func_convert_file_msys_to_w32
checking for
E:/Buildsys/projects/mplayer/tools/4.9.3/mingw32/i686-w64-mingw32/bin/ld.exe
option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive
import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries...
func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /mingw32/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... no
checking for as... as
checking for dlltool... (cached) dlltool
checking for objdump... (cached) objdump
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker
(E:/Buildsys/projects/mplayer/tools/4.9.3/mingw32/i686-w64-mingw32/bin/ld.exe)
supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for lib.exe... no
checking whether __SUNPRO_C is declared... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/statvfs.h usability... no
checking sys/statvfs.h presence... no
checking for sys/statvfs.h... no
checking sys/vfs.h usability... no
checking sys/vfs.h presence... no
checking for sys/vfs.h... no
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/mount.h usability... no
checking sys/mount.h presence... no
checking for sys/mount.h... no
checking for stdint types... stdint.h (shortcircuit)
make use of stdint.h in src/fcstdint.h (assuming C99 compatible system)
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for flexible array members... yes
checking for pid_t... yes
checking for vprintf... yes
checking for _doprnt... no
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking for link... no
checking for mkstemp... yes
checking for mkostemp... no
checking for _mktemp_s... (cached) no
checking for mkdtemp... no
checking for getopt... yes
checking for getopt_long... yes
checking for getprogname... no
checking for getexecname... no
checking for rand... yes
checking for random... no
checking for lrand48... no
checking for random_r... no
checking for rand_r... no
checking for readlink... no
checking for fstatvfs... no
checking for fstatfs... no
checking for lstat... no
checking for posix_fadvise in fcntl.h... no
checking for struct stat.st_mtim... no
checking for struct dirent.d_type... no
checking for FREETYPE... yes
checking for FT_Get_Next_Char... yes
checking for FT_Get_BDF_Property... yes
checking for FT_Get_PS_Font_Info... yes
checking for FT_Has_PS_Glyph_Names... yes
checking for FT_Get_X11_Font_Format... yes
checking for FT_Select_Size... yes
checking for FT_Bitmap_Size.y_ppem... yes
checking for TT_OS2.usLowerOpticalPointSize... yes
checking for TT_OS2.usUpperOpticalPointSize... yes
checking for EXPAT... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_SetDoctypeDeclHandler... yes
checking for Intel atomic primitives... true
checking for Solaris atomic operations... false
checking for docbook2html... no
checking whether byte ordering is bigendian... no
checking size of void *... 4
checking alignment of double... 8
checking alignment of void *... 4
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating fontconfig/Makefile
config.status: creating fc-lang/Makefile
config.status: creating fc-glyphname/Makefile
config.status: creating fc-blanks/Makefile
config.status: creating fc-case/Makefile
config.status: creating src/Makefile
config.status: creating conf.d/Makefile
config.status: creating fc-cache/Makefile
config.status: creating fc-cat/Makefile
config.status: creating fc-list/Makefile
config.status: creating fc-match/Makefile
config.status: creating fc-pattern/Makefile
config.status: creating fc-query/Makefile
config.status: creating fc-scan/Makefile
config.status: creating fc-validate/Makefile
config.status: creating doc/Makefile
config.status: creating doc/version.sgml
config.status: creating test/Makefile
config.status: creating fontconfig.spec
config.status: creating fontconfig.pc
config.status: creating fontconfig-zip
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing src/fcstdint.h commands
config.status: creating src/fcstdint.h : _FONTCONFIG_SRC_FCSTDINT_H
Joshua@Gaijin MINGW32 /sources/fontconfig-git
$ make
make[1]: Entering directory '/sources/fontconfig-git/fc-blanks'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/fc-blanks'
make[1]: Entering directory '/sources/fontconfig-git/fc-case'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/fc-case'
make[1]: Entering directory '/sources/fontconfig-git/fc-lang'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/fc-lang'
make[1]: Entering directory '/sources/fontconfig-git/fc-glyphname'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/fc-glyphname'
make[1]: Entering directory '/sources/fontconfig-git/fc-cache'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/fc-cache'
make[1]: Entering directory '/sources/fontconfig-git/fc-cat'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/fc-cat'
make[1]: Entering directory '/sources/fontconfig-git/fc-list'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/fc-list'
make[1]: Entering directory '/sources/fontconfig-git/fc-match'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/fc-match'
make[1]: Entering directory '/sources/fontconfig-git/fc-pattern'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/fc-pattern'
make[1]: Entering directory '/sources/fontconfig-git/fc-query'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/fc-query'
make[1]: Entering directory '/sources/fontconfig-git/fc-scan'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/fc-scan'
make[1]: Entering directory '/sources/fontconfig-git/fc-validate'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/fc-validate'
make[1]: Entering directory '/sources/fontconfig-git/conf.d'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/conf.d'
make[1]: Entering directory '/sources/fontconfig-git/test'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/test'
make[1]: Entering directory '/sources/fontconfig-git/doc'
make[1]: '.gitignore' is up to date.
make[1]: Leaving directory '/sources/fontconfig-git/doc'
make all-recursive
make[1]: Entering directory '/sources/fontconfig-git'
Making all in fontconfig
make[2]: Entering directory '/sources/fontconfig-git/fontconfig'
make[2]: Leaving directory '/sources/fontconfig-git/fontconfig'
Making all in src
make[2]: Entering directory '/sources/fontconfig-git/src'
GEN fcalias.h
GEN fcftalias.h
GEN stamp-fcstdint
config.status: executing src/fcstdint.h commands
config.status: creating src/fcstdint.h : _FONTCONFIG_SRC_FCSTDINT_H
config.status: src/fcstdint.h is unchanged
make all-am
make[3]: Entering directory '/sources/fontconfig-git/src'
CC fcatomic.lo
CC fcblanks.lo
CC fccache.lo
fccache.c: In function 'FcDirCacheLock':
fccache.c:1205:19: error: storage size of 'fl' isn't known
struct flock fl;
^
fccache.c:1207:18: error: 'F_WRLCK' undeclared (first use in this function)
fl.l_type = F_WRLCK;
^
fccache.c:1207:18: note: each undeclared identifier is reported only
once for each function it appears in
fccache.c:1212:6: warning: implicit declaration of function 'fcntl'
[-Wimplicit-function-declaration]
if (fcntl (fd, F_SETLKW, &fl) == -1)
^
fccache.c:1212:6: warning: nested extern declaration of 'fcntl'
[-Wnested-externs]
fccache.c:1212:21: error: 'F_SETLKW' undeclared (first use in this function)
if (fcntl (fd, F_SETLKW, &fl) == -1)
^
fccache.c:1205:19: warning: unused variable 'fl' [-Wunused-variable]
struct flock fl;
^
fccache.c: In function 'FcDirCacheUnlock':
fccache.c:1227:18: error: storage size of 'fl' isn't known
struct flock fl;
^
fccache.c:1231:14: error: 'F_UNLCK' undeclared (first use in this function)
fl.l_type = F_UNLCK;
^
fccache.c:1236:13: error: 'F_SETLK' undeclared (first use in this function)
fcntl (fd, F_SETLK, &fl);
^
fccache.c:1227:18: warning: unused variable 'fl' [-Wunused-variable]
struct flock fl;
^
Makefile:632: recipe for target 'fccache.lo' failed
make[3]: *** [fccache.lo] Error 1
make[3]: Leaving directory '/sources/fontconfig-git/src'
Makefile:497: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/sources/fontconfig-git/src'
Makefile:578: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/sources/fontconfig-git'
Makefile:462: recipe for target 'all' failed
make: *** [all] Error 2
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig