[MacPorts] #66174: gtk3-devel build failed due to incompatible pointer types (gint64 != int64_t). (was: port: gtk3-devel build failed due to incompatible pointer types (gint64 != int64_t).)

MacPorts noreply at macports.org
Sun Nov 6 21:55:51 UTC 2022


#66174: gtk3-devel build failed due to incompatible pointer types (gint64 !=
int64_t).
-------------------------+----------------------
  Reporter:  bll123      |      Owner:  mascguy
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.0
Resolution:              |   Keywords:
      Port:  gtk3-devel  |
-------------------------+----------------------
Changes (by jmroot):

 * status:  new => assigned
 * owner:  (none) => mascguy


Old description:

> Building gtk3-devel
>
> Ventura, command line tools 14.1
>
> The 14.x clang compilers on MacOS are creating errors and warnings about
> mismatched types even when sizeof (long) == sizeof (long long).  Or in
> this case, sizeof (gint64) == sizeof (int64_t).
>
> libtool: compile:  /usr/bin/clang -arch x86_64 -DHAVE_CONFIG_H -I.
> -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DG_LOG_USE_STRUCTURED=1 -DGDK_COMPILATION
> -I../.. -I../../gdk -I../../gdk -fvisibility=hidden -DG_ENABLE_DEBUG
> -DG_DISABLE_CAST_CHECKS -DGLIB_MIN_REQUIRED_VERSION=GLIB_VERSION_2_56
> -DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_58
> -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz
> -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz
> -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/cairo
> -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo
> -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
> -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
> -I/opt/local/include/libpng16 -I/opt/local/include/fribidi
> -I/opt/local/include -DX_LOCALE
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -pipe -Os
> -fstrict-aliasing
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch
> x86_64 -Wall -MT gdkmonitor-x11.lo -MD -MP -MF .deps/gdkmonitor-x11.Tpo
> -c gdkmonitor-x11.c -o gdkmonitor-x11.o >/dev/null 2>&1
> gdkglcontext-x11.c:107:43: warning: incompatible pointer types passing
> 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long
> long *') [-Wincompatible-pointer-types]
>       glXGetSyncValuesOML (dpy, drawable, &ust, &msc, &sbc);
>                                           ^~~~
> gdkglcontext-x11.c:107:49: warning: incompatible pointer types passing
> 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long
> long *') [-Wincompatible-pointer-types]
>       glXGetSyncValuesOML (dpy, drawable, &ust, &msc, &sbc);
>                                                 ^~~~
> gdkglcontext-x11.c:107:55: warning: incompatible pointer types passing
> 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long
> long *') [-Wincompatible-pointer-types]
>       glXGetSyncValuesOML (dpy, drawable, &ust, &msc, &sbc);
>                                                       ^~~~
> gdkglcontext-x11.c:110:25: warning: incompatible pointer types passing
> 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long
> long *') [-Wincompatible-pointer-types]
>                         &ust, &msc, &sbc);
>                         ^~~~
> gdkglcontext-x11.c:110:31: warning: incompatible pointer types passing
> 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long
> long *') [-Wincompatible-pointer-types]
>                         &ust, &msc, &sbc);
>                               ^~~~
> gdkglcontext-x11.c:110:37: warning: incompatible pointer types passing
> 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long
> long *') [-Wincompatible-pointer-types]
>                         &ust, &msc, &sbc);
>                                     ^~~~

New description:

 Building gtk3-devel

 Ventura, command line tools 14.1

 The 14.x clang compilers on MacOS are creating errors and warnings about
 mismatched types even when sizeof (long) == sizeof (long long).  Or in
 this case, sizeof (gint64) == sizeof (int64_t).
 {{{
 libtool: compile:  /usr/bin/clang -arch x86_64 -DHAVE_CONFIG_H -I. -I../..
 -DG_LOG_DOMAIN=\"Gdk\" -DG_LOG_USE_STRUCTURED=1 -DGDK_COMPILATION -I../..
 -I../../gdk -I../../gdk -fvisibility=hidden -DG_ENABLE_DEBUG
 -DG_DISABLE_CAST_CHECKS -DGLIB_MIN_REQUIRED_VERSION=GLIB_VERSION_2_56
 -DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_58
 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz
 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz
 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/cairo
 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
 -I/opt/local/include/libpng16 -I/opt/local/include/fribidi
 -I/opt/local/include -DX_LOCALE
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -pipe -Os
 -fstrict-aliasing
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch
 x86_64 -Wall -MT gdkmonitor-x11.lo -MD -MP -MF .deps/gdkmonitor-x11.Tpo -c
 gdkmonitor-x11.c -o gdkmonitor-x11.o >/dev/null 2>&1
 gdkglcontext-x11.c:107:43: warning: incompatible pointer types passing
 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long
 *') [-Wincompatible-pointer-types]
       glXGetSyncValuesOML (dpy, drawable, &ust, &msc, &sbc);
                                           ^~~~
 gdkglcontext-x11.c:107:49: warning: incompatible pointer types passing
 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long
 *') [-Wincompatible-pointer-types]
       glXGetSyncValuesOML (dpy, drawable, &ust, &msc, &sbc);
                                                 ^~~~
 gdkglcontext-x11.c:107:55: warning: incompatible pointer types passing
 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long
 *') [-Wincompatible-pointer-types]
       glXGetSyncValuesOML (dpy, drawable, &ust, &msc, &sbc);
                                                       ^~~~
 gdkglcontext-x11.c:110:25: warning: incompatible pointer types passing
 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long
 *') [-Wincompatible-pointer-types]
                         &ust, &msc, &sbc);
                         ^~~~
 gdkglcontext-x11.c:110:31: warning: incompatible pointer types passing
 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long
 *') [-Wincompatible-pointer-types]
                         &ust, &msc, &sbc);
                               ^~~~
 gdkglcontext-x11.c:110:37: warning: incompatible pointer types passing
 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long
 *') [-Wincompatible-pointer-types]
                         &ust, &msc, &sbc);
                                     ^~~~
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/66174#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list