title: "ERROR: UNKNOWN VARIABLE INT64_T_TYPEDEF" MESON BUILD:GTK+3, GTK+4.4.0, GOOBJECT INTROSPECTION BUILD FAILURE
body: <p>I am trying to build GTK 4.4 and GOObject Introspection with the meson build system. Every single attempt at a meson build produces the same error...ERROR: Unknown variable &quot;int64_t_typedef&quot;. The programs I have tried are GTK 4.4, GOObject Introspection 1.68.0, GLIB 2.68.3, Pango 1.48.8. every one gives the above error. I have added stdint.h, inttypes.h, check.h but to no avail. How can I clear this error, even uint_typedef gives the same error. Also during compile I see
  &quot;uintmax_t in stdint.h&quot; compiles: NO
  &quot;uintmax_t in inttypes.h&quot; compiles: NO.
  I know that's not good either. Any ideas how I can clear these errors? The only thing that meson will build is &quot;Hello World&quot; and thats it!
  Nothing GTK 3 or 4 will build without the above errors. Any suggestions would be greatly appreciated.</p>
  <p>FWIW all searches on google, forums etc produce only one hit, and following its suggestions have accomplished nothing but the same errors.</p>
  <p>BASH_OUTPUT for GLIB_2.68.3</p>
  <pre><code>[++SPLINTER++]:&gt;&gt;&gt;pwd
  /opt/glib_2.68.3
  [++SPLINTER++]:&gt;&gt;&gt;meson setup builddir
  The Meson build system
  Version: 0.59.1
  Source dir: /opt/glib_2.68.3
  Build dir: /opt/glib_2.68.3/builddir
  Build type: native build
  Project name: glib
  Project version: 2.69.2
  C compiler for the host machine: cc (gcc 7.5.0 &quot;cc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0&quot;)
  C linker for the host machine: cc ld.bfd 2.30
  C++ compiler for the host machine: c++ (gcc 7.5.0 &quot;c++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0&quot;)
  C++ linker for the host machine: c++ ld.bfd 2.30
  Host machine cpu family: x86_64
  Host machine cpu: x86_64
  Compiler for C supports arguments -fno-strict-aliasing: YES 
  Checking if &quot;GNU C visibility attributes test&quot; compiles: YES 
  Compiler for C supports arguments -fvisibility=hidden: YES 
  Message: Enabling various debug infrastructure
  Has header &quot;alloca.h&quot; : YES 
  Has header &quot;crt_externs.h&quot; : NO 
  Has header &quot;dirent.h&quot; : YES 
  Has header &quot;float.h&quot; : YES 
  Has header &quot;fstab.h&quot; : YES 
  Has header &quot;grp.h&quot; : YES 
  Has header &quot;inttypes.h&quot; : YES 
  Has header &quot;limits.h&quot; : YES 
  Has header &quot;linux/magic.h&quot; : YES 
  Has header &quot;locale.h&quot; : YES 
  Has header &quot;mach/mach_time.h&quot; : NO 
  Has header &quot;memory.h&quot; : YES 
  Has header &quot;mntent.h&quot; : YES 
  Has header &quot;poll.h&quot; : YES 
  Has header &quot;pwd.h&quot; : YES 
  Has header &quot;sched.h&quot; : YES 
  Has header &quot;spawn.h&quot; : YES 
  Has header &quot;stdatomic.h&quot; : YES 
  Has header &quot;stdint.h&quot; : YES 
  Has header &quot;stdlib.h&quot; : YES 
  Has header &quot;string.h&quot; : YES 
  Has header &quot;strings.h&quot; : YES 
  Has header &quot;sys/auxv.h&quot; : YES 
  Has header &quot;sys/event.h&quot; : NO 
  Has header &quot;sys/filio.h&quot; : NO 
  Has header &quot;sys/inotify.h&quot; : YES 
  Has header &quot;sys/mkdev.h&quot; : NO 
  Has header &quot;sys/mntctl.h&quot; : NO 
  Has header &quot;sys/mnttab.h&quot; : NO 
  Has header &quot;sys/mount.h&quot; : YES 
  Has header &quot;sys/param.h&quot; : YES 
  Has header &quot;sys/resource.h&quot; : YES 
  Has header &quot;sys/select.h&quot; : YES 
  Has header &quot;sys/statfs.h&quot; : YES 
  Has header &quot;sys/stat.h&quot; : YES 
  Has header &quot;sys/statvfs.h&quot; : YES 
  Has header &quot;sys/sysctl.h&quot; : YES 
  Has header &quot;sys/time.h&quot; : YES 
  Has header &quot;sys/times.h&quot; : YES 
  Has header &quot;sys/types.h&quot; : YES 
  Has header &quot;sys/uio.h&quot; : YES 
  Has header &quot;sys/vfs.h&quot; : YES 
  Has header &quot;sys/vfstab.h&quot; : NO 
  Has header &quot;sys/vmount.h&quot; : NO 
  Has header &quot;sys/wait.h&quot; : YES 
  Has header &quot;termios.h&quot; : YES 
  Has header &quot;unistd.h&quot; : YES 
  Has header &quot;values.h&quot; : YES 
  Has header &quot;wchar.h&quot; : YES 
  Has header &quot;xlocale.h&quot; : NO 
  Checking if &quot;malloc.h&quot; compiles: YES 
  Has header &quot;linux/netlink.h&quot; : YES 
  Checking if &quot;statx() test&quot; compiles: NO 
  Header &lt;locale.h&gt; has symbol &quot;LC_MESSAGES&quot; : YES 
  Checking whether type &quot;struct stat&quot; has member &quot;st_mtimensec&quot; : NO 
  Checking whether type &quot;struct stat&quot; has member &quot;st_mtim.tv_nsec&quot; : YES 
  Checking whether type &quot;struct stat&quot; has member &quot;st_atimensec&quot; : NO 
  Checking whether type &quot;struct stat&quot; has member &quot;st_atim.tv_nsec&quot; : YES 
  Checking whether type &quot;struct stat&quot; has member &quot;st_ctimensec&quot; : NO 
  Checking whether type &quot;struct stat&quot; has member &quot;st_ctim.tv_nsec&quot; : YES 
  Checking whether type &quot;struct stat&quot; has member &quot;st_birthtime&quot; : NO 
  Checking whether type &quot;struct stat&quot; has member &quot;st_birthtimensec&quot; : NO 
  Checking whether type &quot;struct stat&quot; has member &quot;st_birthtim&quot; : NO 
  Checking whether type &quot;struct stat&quot; has member &quot;st_birthtim.tv_nsec&quot; : NO 
  Checking whether type &quot;struct stat&quot; has member &quot;st_blksize&quot; : NO 
  Checking whether type &quot;struct stat&quot; has member &quot;st_blocks&quot; : NO 
  Checking whether type &quot;struct statfs&quot; has member &quot;f_fstypename&quot; : NO 
  Checking whether type &quot;struct statfs&quot; has member &quot;f_bavail&quot; : NO 
  Checking whether type &quot;struct dirent&quot; has member &quot;d_type&quot; : YES 
  Checking whether type &quot;struct statvfs&quot; has member &quot;f_basetype&quot; : NO 
  Checking whether type &quot;struct statvfs&quot; has member &quot;f_fstypename&quot; : NO 
  Checking whether type &quot;struct tm&quot; has member &quot;tm_gmtoff&quot; : YES 
  Checking whether type &quot;struct tm&quot; has member &quot;__tm_gmtoff&quot; : NO 
  Compiler for C supports arguments -Wduplicated-branches: YES 
  Compiler for C supports arguments -Wimplicit-fallthrough: 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-unused-parameter: YES 
  Compiler for C supports arguments -Wno-bad-function-cast: YES 
  Compiler for C supports arguments -Wno-cast-function-type: NO 
  Compiler for C supports arguments -Wno-pedantic: YES 
  Compiler for C supports arguments -Wno-format-zero-length: 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=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: YES 
  Compiler for C supports link arguments -Wl,-Bsymbolic-functions: YES 
  Checking for function &quot;close_range&quot; : NO 
  Checking for function &quot;endmntent&quot; : YES 
  Checking for function &quot;endservent&quot; : YES 
  Checking for function &quot;epoll_create&quot; : YES 
  Checking for function &quot;fallocate&quot; : YES 
  Checking for function &quot;fchmod&quot; : YES 
  Checking for function &quot;fchown&quot; : YES 
  Checking for function &quot;fdwalk&quot; : NO 
  Checking for function &quot;fsync&quot; : YES 
  Checking for function &quot;getauxval&quot; : YES 
  Checking for function &quot;getc_unlocked&quot; : YES 
  Checking for function &quot;getfsstat&quot; : NO 
  Checking for function &quot;getgrgid_r&quot; : YES 
  Checking for function &quot;getmntent_r&quot; : YES 
  Checking for function &quot;getpwuid_r&quot; : YES 
  Checking for function &quot;getresuid&quot; : YES 
  Checking for function &quot;getvfsstat&quot; : NO 
  Checking for function &quot;gmtime_r&quot; : YES 
  Checking for function &quot;hasmntopt&quot; : YES 
  Checking for function &quot;inotify_init1&quot; : YES 
  Checking for function &quot;issetugid&quot; : NO 
  Checking for function &quot;kevent&quot; : NO 
  Checking for function &quot;kqueue&quot; : NO 
  Checking for function &quot;lchmod&quot; : NO 
  Checking for function &quot;lchown&quot; : YES 
  Checking for function &quot;link&quot; : YES 
  Checking for function &quot;localtime_r&quot; : YES 
  Checking for function &quot;lstat&quot; : YES 
  Checking for function &quot;mbrtowc&quot; : YES 
  Checking for function &quot;memalign&quot; : YES 
  Checking for function &quot;mmap&quot; : YES 
  Checking for function &quot;newlocale&quot; : YES 
  Checking for function &quot;pipe2&quot; : YES 
  Checking for function &quot;poll&quot; : YES 
  Checking for function &quot;prlimit&quot; : YES 
  Checking for function &quot;readlink&quot; : YES 
  Checking for function &quot;recvmmsg&quot; : YES 
  Checking for function &quot;sendmmsg&quot; : YES 
  Checking for function &quot;setenv&quot; : YES 
  Checking for function &quot;setmntent&quot; : YES 
  Checking for function &quot;strerror_r&quot; : YES 
  Checking for function &quot;strnlen&quot; : YES 
  Checking for function &quot;strsignal&quot; : YES 
  Checking for function &quot;strtod_l&quot; : YES 
  Checking for function &quot;strtoll_l&quot; : YES 
  Checking for function &quot;strtoull_l&quot; : YES 
  Checking for function &quot;symlink&quot; : YES 
  Checking for function &quot;timegm&quot; : YES 
  Checking for function &quot;unsetenv&quot; : YES 
  Checking for function &quot;uselocale&quot; : YES 
  Checking for function &quot;utimes&quot; : YES 
  Checking for function &quot;valloc&quot; : YES 
  Checking for function &quot;vasprintf&quot; : YES 
  Checking for function &quot;vsnprintf&quot; : YES 
  Checking for function &quot;wcrtomb&quot; : YES 
  Checking for function &quot;wcslen&quot; : YES 
  Checking for function &quot;wcsnlen&quot; : YES 
  Checking for function &quot;sysctlbyname&quot; : NO 
  Checking for function &quot;statvfs&quot; : YES 
  Checking for function &quot;statfs&quot; : YES 
  Checking for function &quot;if_indextoname&quot; : YES 
  Checking for function &quot;if_nametoindex&quot; : YES 
  Checking for function &quot;splice&quot; : YES 
  Checking for function &quot;stpcpy&quot; : YES 
  Checking for function &quot;posix_memalign&quot; : YES 
  Checking for function &quot;posix_spawn&quot; : YES 
  Checking if &quot;strerror_r() returns char *&quot; compiles: YES 
  Checking for function &quot;snprintf&quot; : YES 
  Checking for function &quot;strcasecmp&quot; : YES 
  Checking for function &quot;strncasecmp&quot; : YES 
  Header &lt;sys/sysmacros.h&gt; has symbol &quot;major&quot; : YES 
  Header &lt;dlfcn.h&gt; has symbol &quot;RTLD_LAZY&quot; : YES 
  Header &lt;dlfcn.h&gt; has symbol &quot;RTLD_NOW&quot; : YES 
  Header &lt;dlfcn.h&gt; has symbol &quot;RTLD_GLOBAL&quot; : YES 
  Header &lt;dlfcn.h&gt; has symbol &quot;RTLD_NEXT&quot; : YES 
  Message: Checking whether to use statfs or statvfs .. statvfs
  Checking for function &quot;mkostemp&quot; : YES 
  Checking if &quot;futex(2) system call&quot; links: YES 
  Checking if &quot;eventfd(2) system call&quot; links: NO 
  Checking if &quot;__uint128_t available&quot; compiles: YES 
  Checking if &quot;clock_gettime&quot; links: YES 
  Checking if &quot;dlopen() and dlsym() in system libraries&quot; links: NO 
  Checking if &quot;dlopen() and dlsym() in libdl&quot; links: YES 
  Library dl found: YES
  Checking if &quot;open() option O_DIRECTORY&quot; compiles: YES 
  Checking if &quot;fcntl() option F_FULLFSYNC&quot; compiles: NO 
  Checking if &quot;C99 vsnprintf&quot; runs: YES
  Checking if &quot;C99 snprintf&quot; runs: YES
  Checking if &quot;Unix98 printf positional parameters&quot; runs: YES
  Checking if &quot;nl_langinfo and CODESET&quot; links: YES 
  Checking if &quot;nl_langinfo (PM_STR)&quot; links: YES 
  Checking if &quot;nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)&quot; links: YES 
  Checking if &quot;nl_langinfo (ALTMON_n)&quot; links: YES 
  Checking if &quot;nl_langinfo (_NL_ABALTMON_n)&quot; links: YES 
  Checking if &quot;nl_langinfo and _NL_TIME_CODESET&quot; links: YES 
  Checking if &quot;signed&quot; compiles: YES 
  Header &lt;stddef.h&gt; has symbol &quot;ptrdiff_t&quot; : YES 
  Checking if &quot;sig_atomic_t&quot; links: NO 
  Checking if &quot;long long&quot; compiles: YES 
  Checking if &quot;long double&quot; compiles: YES
  Header &lt;stddef.h&gt; has symbol &quot;wchar_t&quot; : YES
  Header &lt;wchar.h&gt; has symbol &quot;wint_t&quot; : YES
  Checking if &quot;uintmax_t in inttypes.h&quot; compiles: NO
  Checking if &quot;uintmax_t in stdint.h&quot; compiles: NO
  Checking for size of &quot;char&quot; : 1
  Checking for size of &quot;short&quot; : 2
  Checking for size of &quot;int&quot; : 4
  Checking for size of &quot;void*&quot; : 8
  Checking for size of &quot;long&quot; : 8
  Checking for size of &quot;long long&quot; : 8
  Checking for size of &quot;size_t&quot; : 8
  Checking for size of &quot;ssize_t&quot; : 8
  Checking if &quot;int64_t is long&quot; compiles: NO
  Checking if &quot;int64_t is long long&quot; compiles: NO
  Checking for alignment of &quot;char&quot; : 1
  Checking for alignment of &quot;short&quot; : 2
  Checking for alignment of &quot;int&quot; : 4
  Checking for alignment of &quot;void*&quot; : 8
  Checking for alignment of &quot;long&quot; : 8
  Checking for alignment of &quot;long long&quot; : 8
  Checking for alignment of &quot;size_t&quot; : 8
  Checking for size of &quot;wchar_t&quot; : 4
  
  meson.build:1415:3: ERROR: Unknown variable &quot;int64_t_typedef&quot; 
  
  A full log can be found at /opt/glib_2.68.3/builddir/meson-logs/meson-log.txt
  [++SPLINTER++]:&gt;&gt;&gt;
  </code></pre>
  <p>Any suggestions about how to deal with int64_t_typedef I'd love to hear it.</p>
  <p>UPDATE: As of 08252021 Replacing the C types.h and inttypes.h to the C++ headers has cleared the INT64_T_TYPEDEF and UINT64_T_TYPEDEF errors. The C versions that I had locally were absent of the INT64_T and UINT64_ type definitions. So that mystery is at least put to rest. The next error is now:</p>
  <p>ERROR: Problem encountered: Could not find required includes for ARPA C_IN. This is where it is now. Any suggestions about ARPA and C_IN, which in my case is nonexistant, so is directory ARPA.</p>
  <p>Anyone who cares to suggest I'm all ears.</p>
  <p>BTW I did try the compiler config test, as suggested by PMOD and everything looks good:) thanks for the input!</p>