Not Able to Build glib 2.57.2 in Mingw-w64 x64 bits
Hi guys, i need some help, because I've been trying to build glib 2.57.2 in mingw-w64 for days now, with no success, I'm using this to build my gimp dev @latest w64 and got to a stand still, I saw somewhere that gimp doesn't advise using 2.56.0 or 2.56.1, and I can't build any 2.57.x ( GIMP build says: - Error: missing dependency glib >= 2.54.2 except glib 2.56.0 and 2.56.1 (broken on Win32 - bug 795855) ) ...
I can't build either using:
- ./autogen.sh + configure + make + make install,
- meson . _ build + ninja
After many issues with building, and libs, these are the problems I've had:
- "mmap" is a reference from "mman.h" lib, and It's not part of win32 **1 (I tried to use mman-win32, but It's not building).
- gsocket issues with gcc **2 . (fixed with: "mc_req_src.imr_interface.s_addr = g_htonl (INADDR_ANY);" , but I', not sure if it's ok to change this... )
I really appreciate your help.
Best Regards, Cupid@zul
**1:
make[4]: Entering directory '/home/user/gimp_libs/glib/gio'
CC gresource-gresource-tool.o
CCLD gresource.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: gresource-gresource-tool.o: in function `resource_from_section':
C:\msys64\home\user\gimp_libs\glib\gio/gresource-tool.c:253: undefined reference to `mmap'
collect2.exe: error: ld returned 1 exit status
make[4]: *** [Makefile:2574: gresource.exe] Error 1
make[4]: Leaving directory '/home/user/gimp_libs/glib/gio'
make[3]: *** [Makefile:4722: all-recursive] Error 1
make[3]: Leaving directory '/home/user/gimp_libs/glib/gio'
make[2]: *** [Makefile:2281: all] Error 2
make[2]: Leaving directory '/home/user/gimp_libs/glib/gio'
make[1]: *** [Makefile:1271: all-recursive] Error 1
make[1]: Leaving directory '/home/user/gimp_libs/glib'
make: *** [Makefile:898: all] Error 2
___________________________________________________________________
**2:
gsocket.c: In function 'g_socket_multicast_group_operation_ssm':
gsocket.c:2407:34: error: incompatible types when assigning to type 'struct in_addr' from type 'unsigned int'
S_ADDR_FIELD(mc_req_src) = g_htonl (INADDR_ANY);
^
make[4]: *** [Makefile:3432: libgio_2_0_la-gsocket.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/user/gimp_libs/glib/gio'
make[3]: *** [Makefile:4722: all-recursive] Error 1
make[3]: Leaving directory '/home/user/gimp_libs/glib/gio'
make[2]: *** [Makefile:2281: all] Error 2
make[2]: Leaving directory '/home/user/gimp_libs/glib/gio'
make[1]: *** [Makefile:1271: all-recursive] Error 1
make[1]: Leaving directory '/home/user/gimp_libs/glib'
make: *** [Makefile:898: all] Error 2
___________________________________________________________________
Build System:
windows 7 + MSYS + MingW64 :
export ACLOCAL_PATH=/mingw64/share/aclocal:/usr/share/aclocal
export CFLAGS="-O0 -g -pipe -Wall -mms-bitfields -mthreads -Wno-format"
export CPPFLAGS=-DG_ATOMIC_OP_USE_GCC_BUILTINS=1
export GLIB_CFLAGS="-I/mingw/include/glib-2.0 -I/mingw64 -I/mingw64/include"
export GLIB_LIBS="-lglib-2.0"
export GLIB_PATH=/mingw64
export HOSTTYPE=x86_64
export LDFLAGS=-Wl,--enable-auto-image-base
export LD_LIBRARY_PATH=/home/user/prefix/lib::/mingw64/lib
export LIBFFI_CFLAGS="-I /mingw64/lib/libffi-3.2.1/include"
export LIBFFI_LIBS=-lffi
export MACHTYPE=x86_64-pc-msys
export MAKEFLAGS=-j4
export MINGW_CHOST=x86_64-w64-mingw32
export MINGW_MOUNT_POINT=/mingw64
export MINGW_PACKAGE_PREFIX=mingw-w64-x86_64
export MINGW_PREFIX=/mingw64
export MSYSTEM=MINGW64
export MSYSTEM_CARCH=x86_64
export MSYSTEM_CHOST=x86_64-w64-mingw32
export MSYSTEM_PREFIX=/mingw64
export PKG_CONFIG=/mingw64/bin/pkg-config
export PKG_CONFIG_PATH=/home/user/prefix/share/pkgconfig:/home/user/prefix/lib/pkgconfig:/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig
./configure --prefix=/mingw64
make
make install
--------------------------------------------------------------------
x86_64-w64-mingw32-gcc --version
x86_64-w64-mingw32-gcc.exe (Rev2, Built by MSYS2 project) 7.3.0
--------------------------------------------------------------------
$ ./configure --prefix=/mingw64
configure: loading site script /mingw64/etc/config.site
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 UID '197609' is supported by ustar format... yes
checking whether GID '197121' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... 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 whether make supports the include directive... yes (GNU style)
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 build system type... x86_64-w64-mingw32
checking host system type... x86_64-w64-mingw32
checking for Win32... yes
checking for the Android... no
checking for Mac OS X Carbon support... no
checking for Mac OS X Cocoa support... no
checking for windres... windres
checking for nm... nm
checking for ranlib... ranlib
checking for dlltool... dlltool
checking for lib.exe... no
checking for c++... c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking dependency style of c++... gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking pkg-config is at least version 0.16... yes
checking how to get MSVC-compatible struct packing... -mms-bitfields
checking for gawk... (cached) gawk
checking for a Python interpreter with version >= 2.7... python
checking for python... /mingw64/bin/python
checking for python version... 2.7
checking for python platform... win32
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 zlib... yes
checking for libffi >= 3.0.0... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... no
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... no
checking for bindtextdomain in -lintl... yes
checking for ngettext in -lintl... yes
checking for dgettext in -lintl... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /mingw64/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /mingw64/bin/msgfmt
checking for xgettext... /mingw64/bin/xgettext
checking for catalogs to be installed... af am an ar as ast az be be@latin bg bn bn_IN bs ca ca@valencia cs cy da de dz el en_CA en_GB en@shaw eo es et eu fa fi fr fur ga gd gl gu he hi hr hu hy id is it ja ka kk kn ko ku lt lv mai mg mk ml mn mr ms nb nds ne nl nn oc or pa pl ps pt pt_BR ro ru rw si sk sl sq sr sr@latin sr@ije sv ta te tg th tl tr ug tt uk vi wa xh yi zh_CN zh_HK zh_TW
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... C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... no, using cp -pR
checking the maximum length of command line arguments... 8192
checking how to convert x86_64-w64-mingw32 file names to x86_64-w64-mingw32 format... func_convert_file_msys_to_w32
checking how to convert x86_64-w64-mingw32 file names to toolchain format... func_convert_file_msys_to_w32
checking for C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... (cached) pass_all
checking for dlltool... (cached) 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... (cached) ranlib
checking command to parse nm 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 (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... 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... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... c++ -E
checking for ld used by c++... C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe
checking if the linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes
checking whether the c++ linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes
checking for c++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if c++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... yes
checking if c++ supports -c -o file.o... (cached) yes
checking whether the c++ linker (C:/msys64/mingw64/x86_64-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
configure: creating ./config.lt
config.lt: creating libtool
checking for size_t... yes
checking for working alloca.h... no
checking for alloca... yes
checking for mmap... no
checking for posix_memalign... no
checking for memalign... no
checking for valloc... no
checking for fsync... no
checking for pipe2... no
checking for issetugid... no
checking for timegm... no
checking for gmtime_r... no
checking for posix_spawn... no
checking whether strerror_r is declared... no
checking for strerror_r... no
checking whether strerror_r returns char *... no
checking size of char... 1
checking size of short... 2
checking size of long... 4
checking size of int... 4
checking size of void *... 8
checking size of long long... 8
checking size of __int64... 8
checking for sig_atomic_t... yes
checking for format to printf and scanf a guint64... %I64u
checking for an ANSI C-conforming const... yes
checking for growing stack pointer... (cached) no
checking for ISO C99 varargs macros in C... yes
checking for ISO C99 varargs macros in C++... yes
checking for GNUC varargs macros... yes
checking for GNUC visibility attribute... no
checking whether using Sun Studio C compiler... no
checking whether byte ordering is bigendian... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/resource.h usability... no
checking sys/resource.h presence... no
checking for sys/resource.h... no
checking mach/mach_time.h usability... no
checking mach/mach_time.h presence... no
checking for mach/mach_time.h... no
checking sys/select.h usability... no
checking sys/select.h presence... no
checking for sys/select.h... no
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking sys/vfs.h usability... no
checking sys/vfs.h presence... no
checking for sys/vfs.h... no
checking sys/vmount.h usability... no
checking sys/vmount.h presence... no
checking for sys/vmount.h... no
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking sys/statvfs.h usability... no
checking sys/statvfs.h presence... no
checking for sys/statvfs.h... no
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/auxv.h usability... no
checking sys/auxv.h presence... no
checking for sys/auxv.h... no
checking mntent.h usability... no
checking mntent.h presence... no
checking for mntent.h... no
checking sys/mnttab.h usability... no
checking sys/mnttab.h presence... no
checking for sys/mnttab.h... no
checking sys/vfstab.h usability... no
checking sys/vfstab.h presence... no
checking for sys/vfstab.h... no
checking sys/mntctl.h usability... no
checking sys/mntctl.h presence... no
checking for sys/mntctl.h... no
checking fstab.h usability... no
checking fstab.h presence... no
checking for fstab.h... no
checking linux/magic.h usability... no
checking linux/magic.h presence... no
checking for linux/magic.h... no
checking termios.h usability... no
checking termios.h presence... no
checking for termios.h... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking for sys/mount.h... no
checking for sys/sysctl.h... no
checking for sysctlbyname... no
checking whether sys/types.h defines makedev... no
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/sysmacros.h usability... no
checking sys/sysmacros.h presence... no
checking for sys/sysmacros.h... no
checking xlocale.h usability... no
checking xlocale.h presence... no
checking for xlocale.h... no
checking for struct stat.st_mtimensec... no
checking for struct stat.st_mtim.tv_nsec... no
checking for struct stat.st_atimensec... no
checking for struct stat.st_atim.tv_nsec... no
checking for struct stat.st_ctimensec... no
checking for struct stat.st_ctim.tv_nsec... no
checking for struct stat.st_birthtime... no
checking for struct stat.st_birthtimensec... no
checking for struct stat.st_birthtim... no
checking for struct stat.st_birthtim.tv_nsec... no
checking for struct stat.st_blksize... no
checking for struct stat.st_blocks... no
checking for struct statfs.f_fstypename... no
checking for struct statfs.f_bavail... no
checking for struct statvfs.f_basetype... no
checking for struct statvfs.f_fstypename... no
checking for struct tm.tm_gmtoff... no
checking for struct tm.__tm_gmtoff... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for struct dirent.d_type... no
checking for nl_langinfo and CODESET... no
checking whether we are using the GNU C Library 2.1 or newer... no
checking size of size_t... 8
checking for the appropriate definition for size_t... unsigned long long
checking size of ssize_t... 8
checking for the appropriate definition for ssize_t... long long
checking for lstat... no
checking for strsignal... no
checking for vsnprintf... yes
checking for stpcpy... no
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for poll... no
checking for vasprintf... no
checking for setenv... no
checking for unsetenv... no
checking for getc_unlocked... no
checking for readlink... no
checking for symlink... no
checking for fdwalk... no
checking for mkostemp... no
checking for link... no
checking for lchmod... no
checking for lchown... no
checking for fchmod... no
checking for fchown... no
checking for utimes... no
checking for getresuid... no
checking for getmntent_r... no
checking for setmntent... no
checking for endmntent... no
checking for hasmntopt... no
checking for getfsstat... no
checking for getvfsstat... no
checking for fallocate... no
checking for splice... no
checking for prlimit... no
checking whether to use statfs or statvfs... neither
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for newlocale... no
checking for uselocale... no
checking for strtod_l... no
checking for strtoll_l... no
checking for strtoull_l... no
checking value of AF_INET... 2
checking value of AF_INET6... 23
checking value of AF_UNIX... 1
checking value of MSG_PEEK... 2
checking value of MSG_OOB... 1
checking value of MSG_DONTROUTE... 4
checking for endservent... no
checking for if_nametoindex... no
checking for if_indextoname... no
checking for sendmmsg... no
checking for recvmmsg... no
checking for SIOCGIFADDR... no
checking if ip_mreq_source.imr_interface has s_addr member... no
checking wspiapi.h usability... yes
checking wspiapi.h presence... yes
checking for wspiapi.h... yes
checking for linux/netlink.h... no
checking for struct ip_mreqn... no
checking open() option O_DIRECTORY... no
checking for C99 vsnprintf... (cached) no
checking whether printf supports positional parameters... no
checking for signed... yes
checking for long long... yes
checking for long double... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for size_t... (cached) yes
checking for ptrdiff_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for snprintf... yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... yes
checking for wcrtomb... yes
checking for C99 snprintf... (cached) no
checking for nl_langinfo (CODESET)... no
checking for nl_langinfo (PM_STR)... no
checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)... no
checking for nl_langinfo (ALTMON_n)... no
checking for nl_langinfo (_NL_ABALTMON_n)... no
checking for OpenBSD strlcpy/strlcat... no
checking for an implementation of va_copy()... yes
checking for an implementation of __va_copy()... yes
checking whether va_lists can be copied by value... yes
checking for the suffix of module shared libraries... .dll
checking for gspawn implementation... gspawn-win32.lo
checking for GIOChannel implementation... giowin32.lo
checking for is_selinux_enabled in -lselinux... no
checking sys/inotify.h usability... no
checking sys/inotify.h presence... no
checking for sys/inotify.h... no
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking for FAMOpen in -lfam... no
configure: WARNING: *** FAM support will not be built (FAM library not found) ***
checking for getxattr in -lc... no
checking for getxattr in -lattr... no
checking for libelf >= 0.8.12... yes
checking for platform-dependent source... gwin32.lo
checking whether to compile timeloop... no
checking if building for some Win32 platform... yes
checking for thread implementation... win32
configure: WARNING: I can't find the MACRO to enable thread safety on your
platform (normally it's _REENTRANT). I'll not use any flag on
compilation now, but then your programs might not work.
Please provide information on how it is done on your system.
checking thread related cflags...
checking thread related libraries...
checking for localtime_r... no
checking for gmtime_r... (cached) no
checking for getpwuid_r... no
checking for getgrgid_r... no
configure: WARNING: the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
functions will not be MT-safe during their first call because
there is no working 'getpwuid_r' on your system.
configure: WARNING: the 'g_date_set_time' function will not be MT-safe
because there is no 'localtime_r' on your system.
checking for clock_gettime... yes
checking for lock-free atomic intrinsics... yes
checking for futex(2) system call... no
checking for eventfd(2) system call... no
checking for broken poll... yes
checking for libpcre >= 8.31... yes
checking for Unicode support in PCRE... yes
checking for EILSEQ... yes
checking for gtk-doc... yes
checking for gtkdoc-check... gtkdoc-check.test
checking for gtkdoc-check... /mingw64/bin/gtkdoc-check
checking for gtkdoc-rebase... /mingw64/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /mingw64/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for xsltproc... /mingw64/bin/xsltproc
checking for XML catalog (/etc/xml/catalog)... found
checking for xmlcatalog... /mingw64/bin/xmlcatalog
checking for DocBook XML DTD V4.1.2 in XML catalog... not found
checking whether to generate man pages... no
checking whether to include dtrace tracing support... yes
checking for dtrace... no
checking whether to include systemtap tracing support... no
checking for guint32... yes
checking alignment of guint32... 4
checking for guint64... yes
checking alignment of guint64... 8
checking for unsigned long... yes
checking alignment of unsigned long... 4
checking for dbus-1 >= 1.2.14... yes
checking for dbus-daemon... dbus-daemon
checking for -Bsymbolic-functions linker flag... yes
checking for --fatal-warnings linker flag... yes
checking for -z,nodelete linker flag... no
checking if gcc supports flag -Wall in envvar CFLAGS... yes
checking if gcc supports flag -Wstrict-prototypes in envvar CFLAGS... yes
checking if gcc supports flag -Wduplicated-branches in envvar CFLAGS... yes
checking if gcc supports flag -Wmisleading-indentation in envvar CFLAGS... yes
checking if gcc supports flag -Wno-bad-function-cast in envvar CFLAGS... yes
checking if gcc supports flag -Werror=declaration-after-statement in envvar CFLAGS... yes
checking if gcc supports flag -Werror=missing-prototypes in envvar CFLAGS... yes
checking if gcc supports flag -Werror=implicit-function-declaration in envvar CFLAGS... yes
checking if gcc supports flag -Werror=pointer-arith in envvar CFLAGS... yes
checking if gcc supports flag -Werror=init-self in envvar CFLAGS... yes
checking if gcc supports flag -Werror=format-security in envvar CFLAGS... no
checking if gcc supports flag -Werror=format=2 in envvar CFLAGS... yes
checking if gcc supports flag -Werror=missing-include-dirs in envvar CFLAGS... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating glib-2.0.pc
config.status: creating gmodule-2.0.pc
config.status: creating gmodule-export-2.0.pc
config.status: creating gmodule-no-export-2.0.pc
config.status: creating gthread-2.0.pc
config.status: creating gobject-2.0.pc
config.status: creating gio-2.0.pc
config.status: creating gio-unix-2.0.pc
config.status: creating gio-windows-2.0.pc
config.status: creating glib-gettextize
config.status: creating Makefile
config.status: creating build/Makefile
config.status: creating build/win32/Makefile
config.status: creating build/win32/dirent/Makefile
config.status: creating glib/Makefile
config.status: creating glib/libcharset/Makefile
config.status: creating glib/gnulib/Makefile
config.status: creating glib/pcre/Makefile
config.status: creating glib/update-pcre/Makefile
config.status: creating glib/tests/Makefile
config.status: creating gmodule/Makefile
config.status: creating gmodule/gmoduleconf.h
config.status: creating gobject/Makefile
config.status: creating gobject/glib-genmarshal
config.status: creating gobject/glib-mkenums
config.status: creating gobject/tests/Makefile
config.status: creating gthread/Makefile
config.status: creating gio/Makefile
config.status: creating gio/gdbus-2.0/codegen/Makefile
config.status: creating gio/gdbus-2.0/codegen/config.py
config.status: creating gio/gnetworking.h
config.status: creating gio/xdgmime/Makefile
config.status: creating gio/inotify/Makefile
config.status: creating gio/kqueue/Makefile
config.status: creating gio/fam/Makefile
config.status: creating gio/win32/Makefile
config.status: creating gio/tests/Makefile
config.status: creating gio/tests/gdbus-object-manager-example/Makefile
config.status: creating gio/tests/services/Makefile
config.status: creating gio/tests/services/org.gtk.GDBus.Examples.ObjectManager.service
config.status: creating gio/tests/modules/Makefile
config.status: creating po/Makefile.in
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating docs/reference/glib/Makefile
config.status: creating docs/reference/glib/version.xml
config.status: creating docs/reference/gobject/Makefile
config.status: creating docs/reference/gobject/version.xml
config.status: creating docs/reference/gio/Makefile
config.status: creating docs/reference/gio/version.xml
config.status: creating tests/Makefile
config.status: creating tests/gobject/Makefile
config.status: creating tests/refcount/Makefile
config.status: creating m4macros/Makefile
config.status: creating subprojects/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing libtool commands
config.status: executing glib/glibconfig.h commands
config.status: glib/glibconfig.h is unchanged
config.status: executing chmod-scripts commands
-----------------------------------------------------------------------------
$ meson . _build
The Meson build system
Version: 0.47.1
Source dir: C:/msys64/home/user/gimp_libs/glib
Build dir: C:/msys64/home/user/gimp_libs/glib/_build
Build type: native build
Project name: glib
Project version: 2.57.2
Appending CFLAGS from environment: '-O0 -g -pipe -Wall -mms-bitfields -mthreads -Wno-format'
Appending LDFLAGS from environment: '-Wl,--enable-auto-image-base'
Native C compiler: cc (gcc 7.3.0 "cc (Rev2, Built by MSYS2 project) 7.3.0")
Appending LDFLAGS from environment: '-Wl,--enable-auto-image-base'
Native C++ compiler: c++ (gcc 7.3.0 "c++ (Rev2, Built by MSYS2 project) 7.3.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Compiler for C supports arguments -fno-strict-aliasing: YES
Checking if "GNU C visibility attributes test" compiles: NO
Compiler for C supports arguments -fvisibility=hidden: YES
Has header "alloca.h": NO
Has header "crt_externs.h": NO
Has header "dirent.h": YES
Has header "float.h": YES
Has header "fstab.h": NO
Has header "grp.h": NO
Has header "inttypes.h": YES
Has header "limits.h": YES
Has header "linux/magic.h": NO
Has header "locale.h": YES
Has header "mach/mach_time.h": NO
Has header "memory.h": YES
Has header "mntent.h": NO
Has header "poll.h": NO
Has header "pwd.h": NO
Has header "sched.h": YES
Has header "stdint.h": YES
Has header "stdlib.h": YES
Has header "string.h": YES
Has header "strings.h": YES
Has header "sys/auxv.h": NO
Has header "sys/event.h": NO
Has header "sys/filio.h": NO
Has header "sys/inotify.h": NO
Has header "sys/mkdev.h": NO
Has header "sys/mntctl.h": NO
Has header "sys/mnttab.h": NO
Has header "sys/mount.h": NO
Has header "sys/param.h": YES
Has header "sys/resource.h": NO
Has header "sys/select.h": NO
Has header "sys/statfs.h": NO
Has header "sys/stat.h": YES
Has header "sys/statvfs.h": NO
Has header "sys/sysctl.h": NO
Has header "sys/time.h": YES
Has header "sys/times.h": NO
Has header "sys/types.h": YES
Has header "sys/uio.h": NO
Has header "sys/vfs.h": NO
Has header "sys/vfstab.h": NO
Has header "sys/vmount.h": NO
Has header "sys/wait.h": NO
Has header "termios.h": NO
Has header "unistd.h": YES
Has header "values.h": NO
Has header "xlocale.h": NO
Checking if "malloc.h" compiles: YES
Has header "linux/netlink.h": NO
Header <locale.h> has symbol "LC_MESSAGES": NO
Checking whether type "struct stat" has member "st_mtimensec" : NO
Checking whether type "struct stat" has member "st_mtim.tv_nsec" : NO
Checking whether type "struct stat" has member "st_atimensec" : NO
Checking whether type "struct stat" has member "st_atim.tv_nsec" : NO
Checking whether type "struct stat" has member "st_ctimensec" : NO
Checking whether type "struct stat" has member "st_ctim.tv_nsec" : NO
Checking whether type "struct stat" has member "st_birthtime" : NO
Checking whether type "struct stat" has member "st_birthtimensec" : NO
Checking whether type "struct stat" has member "st_birthtim" : NO
Checking whether type "struct stat" has member "st_birthtim.tv_nsec" : NO
Checking whether type "struct stat" has member "st_blksize" : NO
Checking whether type "struct stat" has member "st_blocks" : NO
Checking whether type "struct statfs" has member "f_fstypename" : NO
Checking whether type "struct statfs" has member "f_bavail" : NO
Checking whether type "struct dirent" has member "d_type" : NO
Checking whether type "struct statvfs" has member "f_basetype" : NO
Checking whether type "struct statvfs" has member "f_fstypename" : NO
Checking whether type "struct tm" has member "tm_gmtoff" : NO
Checking whether type "struct tm" has member "__tm_gmtoff" : NO
Compiler for C supports arguments -Wall: YES
Compiler for C supports arguments -Wduplicated-branches: YES
Compiler for C supports arguments -Wmisleading-indentation: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wunused: YES
Compiler for C supports arguments -Wno-bad-function-cast -Wbad-function-cast: YES
Compiler for C supports arguments -Werror=declaration-after-statement: YES
Compiler for C supports arguments -Werror=format=2: YES
Compiler for C supports arguments -Werror=format-security: NO
Compiler for C supports arguments -Werror=implicit-function-declaration: YES
Compiler for C supports arguments -Werror=init-self: YES
Compiler for C supports arguments -Werror=missing-include-dirs: YES
Compiler for C supports arguments -Werror=missing-prototypes: YES
Compiler for C supports arguments -Werror=pointer-arith: YES
Compiler for C supports link arguments -Wl,-z,nodelete: NO
Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES
Library iphlpapi found: YES
Checking for function "if_nametoindex" : YES
Checking for function "if_indextoname" : YES
Checking for function "alloca" : YES
Checking for function "endmntent" : NO
Checking for function "endservent" : NO
Checking for function "fallocate" : NO
Checking for function "fchmod" : NO
Checking for function "fchown" : NO
Checking for function "fdwalk" : NO
Checking for function "fsync" : NO
Checking for function "getc_unlocked" : NO
Checking for function "getfsstat" : NO
Checking for function "getgrgid_r" : NO
Checking for function "getmntent_r" : NO
Checking for function "getpwuid_r" : NO
Checking for function "getresuid" : NO
Checking for function "getvfsstat" : NO
Checking for function "gmtime_r" : NO
Checking for function "hasmntopt" : NO
Checking for function "inotify_init1" : NO
Checking for function "issetugid" : NO
Checking for function "kevent" : NO
Checking for function "kqueue" : NO
Checking for function "lchmod" : NO
Checking for function "lchown" : NO
Checking for function "link" : NO
Checking for function "localtime_r" : NO
Checking for function "lstat" : NO
Checking for function "mbrtowc" : YES
Checking for function "memalign" : NO
Checking for function "mmap" : NO
Checking for function "newlocale" : NO
Checking for function "pipe2" : NO
Checking for function "poll" : NO
Checking for function "prlimit" : NO
Checking for function "readlink" : NO
Checking for function "recvmmsg" : NO
Checking for function "sendmmsg" : NO
Checking for function "setenv" : NO
Checking for function "setmntent" : NO
Checking for function "strerror_r" : NO
Checking for function "strnlen" : YES
Checking for function "strsignal" : NO
Checking for function "strtod_l" : NO
Checking for function "strtoll_l" : NO
Checking for function "strtoull_l" : NO
Checking for function "symlink" : NO
Checking for function "timegm" : NO
Checking for function "unsetenv" : NO
Checking for function "uselocale" : NO
Checking for function "utimes" : NO
Checking for function "valloc" : NO
Checking for function "vasprintf" : YES
Checking for function "vsnprintf" : YES
Checking for function "wcrtomb" : YES
Checking for function "wcslen" : YES
Checking for function "wcsnlen" : YES
Checking for function "sysctlbyname" : NO
Checking for function "_NSGetEnviron" : NO
Checking for function "splice" : NO
Checking for function "stpcpy" : NO
Checking for function "posix_memalign" : NO
Checking for function "posix_spawn" : NO
Checking for function "snprintf" : YES
Checking for function "strcasecmp" : YES
Checking for function "strncasecmp" : YES
Header <sys/sysmacros.h> has symbol "major": NO
Header <sys/mkdev.h> has symbol "major": NO
Header <sys/types.h> has symbol "major": NO
Header <dlfcn.h> has symbol "RTLD_LAZY": NO
Header <dlfcn.h> has symbol "RTLD_NOW": NO
Header <dlfcn.h> has symbol "RTLD_GLOBAL": NO
Message: Checking whether to use statfs or statvfs .. neither
Checking if "futex(2) system call" links: NO
Checking if "eventfd(2) system call" links: NO
Checking if "clock_gettime" links: YES
Checking if "open() option O_DIRECTORY" compiles: NO
Checking if "C99 vsnprintf" runs: NO (1)
Checking if "C99 snprintf" runs: NO (1)
Checking if "nl_langinfo and CODESET" links: NO
Checking if "nl_langinfo (PM_STR)" links: NO
Checking if "nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)" links: NO
Checking if "nl_langinfo (ALTMON_n)" links: NO
Checking if "nl_langinfo (_NL_ALTMON_n)" links: NO
Checking if "signed" compiles: YES
Header <stddef.h> has symbol "ptrdiff_t": YES
Checking if "sig_atomic_t" links: YES
Checking if "long long" compiles: YES
Checking if "long double" compiles: YES
Header <stddef.h> has symbol "wchar_t": YES
Header <wchar.h> has symbol "wint_t": YES
Checking if "uintmax_t in inttypes.h" compiles: YES
Checking if "uintmax_t in stdint.h" compiles: YES
Checking for size of "char": 1
Checking for size of "short": 2
Checking for size of "int": 4
Checking for size of "void*": 8
Checking for size of "long": 4
Checking for size of "long long": 8
Checking for size of "size_t": 8
Checking for size of "ssize_t": 8
Checking for alignment of "char" : 1
Checking for alignment of "short" : 2
Checking for alignment of "int" : 4
Checking for alignment of "void*" : 8
Checking for alignment of "long" : 4
Checking for alignment of "long long" : 8
Checking for alignment of "size_t" : 8
Checking if "__va_copy check" compiles: YES
Checking if "va_copy check" compiles: YES
Checking if "va_lists can be copied as values" runs: YES
Checking if "ISO C99 varargs macros in C" compiles: YES
Checking if "ISO C99 varargs macros in C++" compiles: YES
Checking if "GNUC varargs macros" compiles: YES
Has header "alloca.h": NO
Has header "sys/poll.h": NO
Has header "sys/types.h": YES
Has header "winsock2.h": YES
Computing int of "AF_UNIX": 1
Computing int of "AF_INET": 2
Computing int of "AF_INET6": 23
Computing int of "MSG_OOB": 1
Computing int of "MSG_PEEK": 2
Computing int of "MSG_DONTROUTE": 4
Checking if "atomic ops" links: YES
Checking if "stack grows check" runs: NO (1)
Found pkg-config: C:/msys64/mingw64/bin/pkg-config.exe (0.29.2)
Native dependency libpcre found: YES 8.42
Checking if "Windows system PCRE is a static build" links: YES
Library m found: YES
Native dependency libffi found: YES 3.3-rc0
Native dependency zlib found: YES 1.2.11
Checking for function "ngettext" : NO
Library intl found: YES
Program xgettext found: YES (C:\msys64\mingw64\bin/xgettext.EXE)
Library ws2_32 found: YES
Checking if "OpenBSD strlcpy/strlcat" runs: DID NOT COMPILE
Program bash found: YES (C:\msys64\usr\bin/bash.EXE)
Program m4 found: YES (C:\msys64\usr\bin/m4.EXE)
Program sh found: YES (C:\msys64\usr\bin/sh.EXE)
Configuring glibconfig.h using configuration
Compiler for C supports arguments -Wno-format-nonliteral -Wformat-nonliteral: YES
Compiler for C supports arguments -Wno-duplicated-branches -Wduplicated-branches: YES
Configuring glib.rc using configuration
Library winmm found: YES
Configuring libglib-2.0.so.0.5702.0-gdb.py using configuration
Configuring gobject.rc using configuration
Configuring glib-genmarshal using configuration
Program C:/msys64/home/user/gimp_libs/glib/_build/gobject/glib-genmarshal found: YES (C:/msys64/mingw64/bin/python3.exe C:/msys64/home/user/gimp_libs/glib/_build/gobject/glib-genmarshal)
Configuring glib-mkenums using configuration
Program C:/msys64/home/user/gimp_libs/glib/_build/gobject/glib-mkenums found: YES (C:/msys64/mingw64/bin/python3.exe C:/msys64/home/user/gimp_libs/glib/_build/gobject/glib-mkenums)
Configuring libgobject-2.0.so.0.5702.0-gdb.py using configuration
Configuring gthread.rc using configuration
Configuring gmoduleconf.h using configuration
Configuring gmodule.rc using configuration
Configuring gnetworking.h using configuration
Configuring gdbus-codegen using configuration
Program C:/msys64/home/user/gimp_libs/glib/_build/gio/gdbus-2.0/codegen/gdbus-codegen found: YES (C:/msys64/mingw64/bin/python3.exe C:/msys64/home/user/gimp_libs/glib/_build/gio/gdbus-2.0/codegen/gdbus-codegen)
Configuring config.py using configuration
Library shlwapi found: YES
Library dnsapi found: YES
Configuring gio.rc using configuration
Native dependency libelf found: YES 0.8.13
Configuring glib-gettextize using configuration
Configuring config.h using configuration
Build targets in project: 163
Found ninja-1.8.2 at 'C:\msys64\mingw64\bin/ninja.EXE'
Edited by Ghost User