2 port build failures using poudriere (each involves glib)

From: David Wolfskill <david_at_catwhisker.org>
Date: Sat, 26 Nov 2022 15:58:05 UTC
I note that the devel/glib20 port was just updated from 2.74.1 to
2.74.2 recently.

Ports that failed to build were graphics/gegl and net/wireshark.

Copies of logs are in
https://www.catwhisker.org/~david/FreeBSD/ports/2022-11-26/

Those for stable/12 are in the "12" subdirectory; similarly for "13."

Ports tree is at main-n601354-c492d0dd0415.  For stable/12,
stable/12-n235873-d95de59e943; for stable/13,
stable/13-n253148-124c19b0d879

graphics/gegl:  Things seem generally OK, up to:
FAILED: operations/common-cxx/gegl-common-cxx.so.p/denoise-dct.cc.o
c++ -Ioperations/common-cxx/gegl-common-cxx.so.p -Ioperations/common-cxx -I../operations/common-cxx -I. -I.. -Igegl -I../gegl -Igegl/buffer -I../gegl/buffer -Igegl/graph -I../gegl/graph -Igegl/module -I../gegl/module -Igegl/opencl -I../gegl/opencl -Igegl/operation -I../gegl/operation -Igegl/process -I../gegl/process -Igegl/property-types -I../gegl/property-types -Iopencl -I/usr/local/include/babl-0.1 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/json-glib-1.0 -fno-color-diagnostics -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=gnu++14 -O3 -DHAVE_CONFIG_H -Ofast -Winit-self -Wmissing-declarations -Wpointer-arith -Wno-deprecated-declarations -ftree-vectorize -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -isystem /usr/local/include -fPIC -pthread -DGEGL_OP_BUNDLE -MD -MQ operations/common-cxx/gegl-common-cxx.so.p/denoise-dct.cc.o -MF operations/common-cxx/gegl-common-cxx.so.p/denoise-dct.cc.o.d -o operations/common-cxx/gegl-common-cxx.so.p/denoise-dct.cc.o -c ../operations/common-cxx/denoise-dct.cc
In file included from ../operations/common-cxx/denoise-dct.cc:47:
../gegl/gegl-op.h:719:20: error: no matching function for call to 'strcmp'
  if (set_value && g_str_equal (value, set_value))
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/glib-2.0/glib/ghash.h:165:30: note: expanded from macro 'g_str_equal'
#define g_str_equal(v1, v2) (strcmp ((gconstpointer) (v1), (gconstpointer) (v2)) == 0)
                             ^~~~~~
/usr/include/string.h:86:6: note: candidate function not viable: cannot convert argument of incomplete type 'gconstpointer' (aka 'const void *') to 'const char *' for 1st argument
int      strcmp(const char *, const char *) __pure;
         ^
1 error generated.
[ 30% 413/1264] 


net/wireshark:  Things seem generally OK, up to:
FAILED: ui/qt/CMakeFiles/qtui.dir/io_graph_dialog.cpp.o
/usr/bin/c++ -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DWS_DISABLE_ASSERT -DWS_DISABLE_DEBUG -I/wrkdirs/usr/ports/net/wireshark/work/.build/ui/qt/qtui_autogen/include -I/wrkdirs/usr/ports/net/wireshark/work/.build -I/wrkdirs/usr/ports/net/wireshark/work/wireshark-4.0.1 -I/wrkdirs/usr/ports/net/wireshark/work/wireshark-4.0.1/include -isystem /usr/local/include/glib-2.0 -isystem /usr/local/lib/glib-2.0/include -isystem /usr/local/include/qt5 -isystem /usr/local/include/qt5/QtCore -isystem /usr/local/lib/qt5/mkspecs/freebsd-clang -isystem /usr/local/include/qt5/QtGui -isystem /usr/local/include/qt5/QtPrintSupport -isystem /usr/local/include/qt5/QtWidgets -isystem /usr/local/include/qt5/QtConcurrent -isystem /usr/local/include/qt5/QtMultimedia -isystem /usr/local/include/qt5/QtNetwork -isystem /wrkdirs/usr/ports/net/wireshark/work/.build/ui/qt -isystem /wrkdirs/usr/ports/net/wireshark/work/wireshark-4.0.1/ui/qt -Qunused-arguments -Wall -Wextra -Wendif-labels -Wpointer-arith -Wformat-security -fwrapv -fno-strict-overflow -Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas -Wno-overlength-strings -Wno-long-long -Wheader-guard -Wcomma -Wshorten-64-to-32 -Wredundant-decls -Wframe-larger-than=32768 -fcolor-diagnostics -Wextra-semi -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -fmacro-prefix-map=/wrkdirs/usr/ports/net/wireshark/work/wireshark-4.0.1/= -fmacro-prefix-map=/wrkdirs/usr/ports/net/wireshark/work/.build/= -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include  -DNDEBUG -fPIC -std=c++11 -MD -MT ui/qt/CMakeFiles/qtui.dir/io_graph_dialog.cpp.o -MF ui/qt/CMakeFiles/qtui.dir/io_graph_dialog.cpp.o.d -o ui/qt/CMakeFiles/qtui.dir/io_graph_dialog.cpp.o -c /wrkdirs/usr/ports/net/wireshark/work/wireshark-4.0.1/ui/qt/io_graph_dialog.cpp
/wrkdirs/usr/ports/net/wireshark/work/wireshark-4.0.1/ui/qt/io_graph_dialog.cpp:199:13: error: no matching function for call to 'strcmp'
        if (g_str_equal(cstr,str)) {
            ^~~~~~~~~~~~~~~~~~~~~
/usr/local/include/glib-2.0/glib/ghash.h:165:30: note: expanded from macro 'g_str_equal'
#define g_str_equal(v1, v2) (strcmp ((gconstpointer) (v1), (gconstpointer) (v2)) == 0)
                             ^~~~~~
/usr/include/string.h:82:6: note: candidate function not viable: cannot convert argument of incomplete type 'gconstpointer' (aka 'const void *') to 'const char *' for 1st argument
int      strcmp(const char *, const char *) __pure;
         ^
/wrkdirs/usr/ports/net/wireshark/work/wireshark-4.0.1/ui/qt/io_graph_dialog.cpp:261:1: error: no matching function for call to 'strcmp'
UAT_VS_DEF(io_graph, style, io_graph_settings_t, guint32, 0, "Line")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/net/wireshark/work/wireshark-4.0.1/epan/uat.h:663:7: note: expanded from macro 'UAT_VS_DEF'
                if (g_str_equal(cstr,str)) { \
                    ^~~~~~~~~~~~~~~~~~~~~
/usr/local/include/glib-2.0/glib/ghash.h:165:30: note: expanded from macro 'g_str_equal'
#define g_str_equal(v1, v2) (strcmp ((gconstpointer) (v1), (gconstpointer) (v2)) == 0)
                             ^~~~~~
/usr/include/string.h:82:6: note: candidate function not viable: cannot convert argument of incomplete type 'gconstpointer' (aka 'const void *') to 'const char *' for 1st argument
int      strcmp(const char *, const char *) __pure;
         ^
/wrkdirs/usr/ports/net/wireshark/work/wireshark-4.0.1/ui/qt/io_graph_dialog.cpp:262:1: error: no matching function for call to 'strcmp'
UAT_VS_DEF(io_graph, yaxis, io_graph_settings_t, guint32, 0, "Packets")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/net/wireshark/work/wireshark-4.0.1/epan/uat.h:663:7: note: expanded from macro 'UAT_VS_DEF'
                if (g_str_equal(cstr,str)) { \
                    ^~~~~~~~~~~~~~~~~~~~~
/usr/local/include/glib-2.0/glib/ghash.h:165:30: note: expanded from macro 'g_str_equal'
#define g_str_equal(v1, v2) (strcmp ((gconstpointer) (v1), (gconstpointer) (v2)) == 0)
                             ^~~~~~
/usr/include/string.h:82:6: note: candidate function not viable: cannot convert argument of incomplete type 'gconstpointer' (aka 'const void *') to 'const char *' for 1st argument
int      strcmp(const char *, const char *) __pure;
         ^
3 errors generated.
[ 91% 2284/2466]


Peace,
david
-- 
David H. Wolfskill                              david@catwhisker.org
"attempts made by certain countries to rewrite and reshape world history
are becoming increasingly aggressive, ultimately and obviously seeking
to divide our society, take away our guiding lines and eventually weaken
Russia."  -- V. Putin, obviously referring to his own efforts

See https://www.catwhisker.org/~david/publickey.gpg for my public key.