Opened 19 months ago

Last modified 19 months ago

#66174 closed defect

port: gtk3-devel build failed due to incompatible pointer types (gint64 != int64_t). — at Initial Version

Reported by: bll123 (Brad Lanam) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc:
Port: gtk3-devel

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);

~

Change History (0)

Note: See TracTickets for help on using tickets.