[MacPorts] #70738: gimp2 fails to build with gcc14: error: passing argument 2 of 'gimp_image_get_resolution' from incompatible pointer type
MacPorts
noreply at macports.org
Fri Jan 17 15:46:26 UTC 2025
#70738: gimp2 fails to build with gcc14: error: passing argument 2 of
'gimp_image_get_resolution' from incompatible pointer type
---------------------------+----------------------
Reporter: barracuda156 | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.1
Resolution: | Keywords:
Port: gimp2 |
---------------------------+----------------------
Comment (by barracuda156):
Still broken:
{{{
Making all in file-sgi
make[3]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38
/plug-ins/file-sgi'
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I../.. -I../..
-I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
-I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/cairo -I/opt/local/include/atk-1.0
-I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0
-I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
-I/opt/local/include/fribidi -I/opt/local/include/cairo
-I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/freetype2 -I/opt/local/include/libpng16
-I/opt/local/include/gegl-0.4 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/json-glib-1.0 -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include/babl-0.1
-I/opt/local/include -I/opt/local/include -DGIMP_DISABLE_DEPRECATED
-DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -pipe
-Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-
after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-
prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-
definition -Wmissing-format-attribute -Wformat-security -Wlogical-op
-Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type -MT
sgi.o -MD -MP -MF .deps/sgi.Tpo -c -o sgi.o sgi.c
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I../.. -I../..
-I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
-I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/cairo -I/opt/local/include/atk-1.0
-I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0
-I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
-I/opt/local/include/fribidi -I/opt/local/include/cairo
-I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/freetype2 -I/opt/local/include/libpng16
-I/opt/local/include/gegl-0.4 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/json-glib-1.0 -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include/babl-0.1
-I/opt/local/include -I/opt/local/include -DGIMP_DISABLE_DEPRECATED
-DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -pipe
-Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-
after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-
prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-
definition -Wmissing-format-attribute -Wformat-security -Wlogical-op
-Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type -MT
sgi-lib.o -MD -MP -MF .deps/sgi-lib.Tpo -c -o sgi-lib.o sgi-lib.c
mv -f .deps/sgi-lib.Tpo .deps/sgi-lib.Po
mv -f .deps/sgi.Tpo .deps/sgi.Po
/bin/sh ../../libtool --tag=CC --mode=link /opt/local/bin/gcc-mp-14
-pipe -Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall
-Wdeclaration-after-statement -Wmissing-prototypes -Werror=missing-
prototypes -Wstrict-prototypes -Wmissing-declarations -Winit-self
-Wpointer-arith -Wold-style-definition -Wmissing-format-attribute
-Wformat-security -Wlogical-op -Wtype-limits -fno-common -fdiagnostics-
show-option -Wreturn-type -L/opt/local/lib
-Wl,-headerpad_max_install_names -arch ppc -o file-sgi sgi.o sgi-lib.o
../../libgimp/libgimpui-2.0.la ../../libgimpwidgets/libgimpwidgets-2.0.la
../../libgimpconfig/libgimpconfig-2.0.la
../../libgimpmath/libgimpmath-2.0.la ../../libgimp/libgimp-2.0.la
../../libgimpcolor/libgimpcolor-2.0.la
../../libgimpbase/libgimpbase-2.0.la -L/opt/local/lib -lgtk-x11-2.0
-lgdk-x11-2.0 -lpangocairo-1.0 -lXrender -lXinerama -lXi -lXrandr
-lXcursor -lXcomposite -lXdamage -lXfixes -lX11 -lXext -latk-1.0 -lcairo
-lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0
-lglib-2.0 -lintl -lharfbuzz -lfontconfig -lfreetype -L/opt/local/lib
-lgegl-0.4 -lgegl-npd-0.4 -lgmodule-2.0 -ljson-glib-1.0 -lgio-2.0
-lgobject-2.0 -lglib-2.0 -lintl -lbabl-0.1 -lintl -Wl,-framework
-Wl,CoreFoundation -ljpeg
libtool: link: /opt/local/bin/gcc-mp-14 -pipe -Os -Wno-deprecated-
declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-after-statement
-Wmissing-prototypes -Werror=missing-prototypes -Wstrict-prototypes
-Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition
-Wmissing-format-attribute -Wformat-security -Wlogical-op -Wtype-limits
-fno-common -fdiagnostics-show-option -Wreturn-type
-Wl,-headerpad_max_install_names -arch ppc -o .libs/file-sgi sgi.o sgi-
lib.o -Wl,-framework -Wl,CoreFoundation -L/opt/local/lib
../../libgimp/.libs/libgimpui-2.0.dylib
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimp/.libs/libgimp-2.0.dylib
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimpwidgets/.libs/libgimpwidgets-2.0.dylib
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimpmodule/.libs/libgimpmodule-2.0.dylib
../../libgimpwidgets/.libs/libgimpwidgets-2.0.dylib
../../libgimpconfig/.libs/libgimpconfig-2.0.dylib
../../libgimpmath/.libs/libgimpmath-2.0.dylib
../../libgimp/.libs/libgimp-2.0.dylib
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimpconfig/.libs/libgimpconfig-2.0.dylib
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimpmath/.libs/libgimpmath-2.0.dylib
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimpcolor/.libs/libgimpcolor-2.0.dylib
../../libgimpcolor/.libs/libgimpcolor-2.0.dylib
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimpbase/.libs/libgimpbase-2.0.dylib
/opt/local/lib/liblcms2.dylib
../../libgimpbase/.libs/libgimpbase-2.0.dylib -lgexiv2 -lm
/opt/local/lib/libgtk-x11-2.0.dylib /opt/local/lib/libgdk-x11-2.0.dylib
-lpangocairo-1.0 /opt/local/lib/libXrender.dylib
/opt/local/lib/libXinerama.dylib /opt/local/lib/libXi.dylib
/opt/local/lib/libXrandr.dylib /opt/local/lib/libXcursor.dylib
/opt/local/lib/libXcomposite.dylib /opt/local/lib/libXdamage.dylib
/opt/local/lib/libXfixes.dylib /opt/local/lib/libX11.dylib
/opt/local/lib/libXext.dylib -latk-1.0 /opt/local/lib/libcairo.dylib
-lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 -lharfbuzz
/opt/local/lib/libfontconfig.dylib /opt/local/lib/libfreetype.dylib
-lgegl-0.4 -lgegl-npd-0.4 -lgmodule-2.0 -ljson-glib-1.0 -lgio-2.0
-lgobject-2.0 -lglib-2.0 -lbabl-0.1 -lintl -ljpeg -pthread -framework
Cocoa
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38
/plug-ins/file-sgi'
Making all in file-tiff
make[3]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38
/plug-ins/file-tiff'
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I../.. -I../..
-I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
-I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/cairo -I/opt/local/include/atk-1.0
-I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0
-I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
-I/opt/local/include/fribidi -I/opt/local/include/cairo
-I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/freetype2 -I/opt/local/include/libpng16
-I/opt/local/include/gegl-0.4 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/json-glib-1.0 -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include/babl-0.1
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include -I/opt/local/include -DGIMP_DISABLE_DEPRECATED
-DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -pipe
-Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-
after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-
prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-
definition -Wmissing-format-attribute -Wformat-security -Wlogical-op
-Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type -MT
file-tiff.o -MD -MP -MF .deps/file-tiff.Tpo -c -o file-tiff.o file-tiff.c
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I../.. -I../..
-I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
-I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/cairo -I/opt/local/include/atk-1.0
-I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0
-I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
-I/opt/local/include/fribidi -I/opt/local/include/cairo
-I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/freetype2 -I/opt/local/include/libpng16
-I/opt/local/include/gegl-0.4 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/json-glib-1.0 -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include/babl-0.1
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include -I/opt/local/include -DGIMP_DISABLE_DEPRECATED
-DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -pipe
-Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-
after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-
prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-
definition -Wmissing-format-attribute -Wformat-security -Wlogical-op
-Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type -MT
file-tiff-io.o -MD -MP -MF .deps/file-tiff-io.Tpo -c -o file-tiff-io.o
file-tiff-io.c
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I../.. -I../..
-I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
-I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/cairo -I/opt/local/include/atk-1.0
-I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0
-I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
-I/opt/local/include/fribidi -I/opt/local/include/cairo
-I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/freetype2 -I/opt/local/include/libpng16
-I/opt/local/include/gegl-0.4 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/json-glib-1.0 -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include/babl-0.1
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include -I/opt/local/include -DGIMP_DISABLE_DEPRECATED
-DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -pipe
-Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-
after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-
prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-
definition -Wmissing-format-attribute -Wformat-security -Wlogical-op
-Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type -MT
file-tiff-load.o -MD -MP -MF .deps/file-tiff-load.Tpo -c -o file-tiff-
load.o file-tiff-load.c
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I../.. -I../..
-I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
-I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/cairo -I/opt/local/include/atk-1.0
-I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0
-I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
-I/opt/local/include/fribidi -I/opt/local/include/cairo
-I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include/freetype2 -I/opt/local/include/libpng16
-I/opt/local/include/gegl-0.4 -I/opt/local/include/gio-unix-2.0
-I/opt/local/include/json-glib-1.0 -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include/babl-0.1
-I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
-I/opt/local/include -I/opt/local/include -DGIMP_DISABLE_DEPRECATED
-DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE -pipe
-Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-
after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-
prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-
definition -Wmissing-format-attribute -Wformat-security -Wlogical-op
-Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type -MT
file-tiff-save.o -MD -MP -MF .deps/file-tiff-save.Tpo -c -o file-tiff-
save.o file-tiff-save.c
file-tiff-load.c: In function 'load_image':
file-tiff-load.c:1372:56: error: passing argument 2 of
'gimp_image_get_resolution' from incompatible pointer type
[-Wincompatible-pointer-types]
1372 | gimp_image_get_resolution (*image, &xres,
&yres);
| ^~~~~
| |
| gfloat *
{aka float *}
In file included from ../../libgimp/gimp_pdb_headers.h:55,
from ../../libgimp/gimp.h:66,
from file-tiff-load.c:52:
../../libgimp/gimpimage_pdb.h:179:86: note: expected 'gdouble *' {aka
'double *'} but argument is of type 'gfloat *' {aka 'float *'}
179 |
gdouble *xresolution,
|
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
file-tiff-load.c:1372:63: error: passing argument 3 of
'gimp_image_get_resolution' from incompatible pointer type
[-Wincompatible-pointer-types]
1372 | gimp_image_get_resolution (*image, &xres,
&yres);
|
^~~~~
| |
|
gfloat * {aka float *}
../../libgimp/gimpimage_pdb.h:180:86: note: expected 'gdouble *' {aka
'double *'} but argument is of type 'gfloat *' {aka 'float *'}
180 |
gdouble *yresolution);
|
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
make[3]: *** [file-tiff-load.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/file-tiff.Tpo .deps/file-tiff.Po
mv -f .deps/file-tiff-io.Tpo .deps/file-tiff-io.Po
mv -f .deps/file-tiff-save.Tpo .deps/file-tiff-save.Po
make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38
/plug-ins/file-tiff'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38
/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38'
make: *** [all] Error 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/70738#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list