error: too many arguments to function ‘nm_device_wifi_p2p_start_find’
Created by: cunidev
I'm getting this error from Ninja on the latest Fedora 29, and all deps are apparently already installed.
[r@aragorn gnome-screencast]$ meson build
The Meson build system
Version: 0.49.2
Source dir: /home/r/gnome-screencast
Build dir: /home/r/gnome-screencast/build
Build type: native build
Project name: gnome-screencast
Project version: 0.1.0
Native C compiler: cc (gcc 8.2.1 "cc (GCC) 8.2.1 20181215 (Red Hat 8.2.1-6)")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Configuring gnome-screencast-config.h using configuration
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program appstream-util found: YES (/usr/bin/appstream-util)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Found pkg-config: /usr/bin/pkg-config (1.5.3)
Dependency gstreamer-video-1.0 found: YES 1.14.4
Dependency gstreamer-rtsp-1.0 found: YES 1.14.4
Dependency gstreamer-rtsp-server-1.0 found: YES 1.14.4
Dependency gio-2.0 found: YES 2.58.3
Dependency gtk+-3.0 found: YES 3.24.1
Dependency libnm found: YES 1.15.2
Dependency gstreamer-1.0 found: YES 1.14.4
Dependency libpulse-mainloop-glib found: YES 12.2-rebootstrapped
Program build-aux/meson/postinstall.py found: YES (/home/r/gnome-screencast/build-aux/meson/postinstall.py)
Build targets in project: 11
Found ninja-1.8.2 at /usr/bin/ninja
[r@aragorn gnome-screencast]$ cd build
[r@aragorn build]$ ninja
[3/33] Compiling C object 'src/wfd/b3fab4b@@wfd-server@sta/wfd-params.c.o'.
../src/wfd/wfd-params.c:11:22: warning: ‘params_m3_optional’ defined but not used [-Wunused-variable]
static const gchar * params_m3_optional[] = {
^~~~~~~~~~~~~~~~~~
[7/33] Compiling C object 'src/wfd/b3fab4b@@wfd-server@sta/wfd-media.c.o'.
../src/wfd/wfd-media.c:16:20: warning: ‘properties’ defined but not used [-Wunused-variable]
static GParamSpec *properties[N_PROPS];
^~~~~~~~~~
[8/33] Compiling C object 'src/wfd/b3fab4b@@wfd-server@sta/wfd-server.c.o'.
../src/wfd/wfd-server.c: In function ‘wfd_server_get_property’:
../src/wfd/wfd-server.c:55:14: warning: unused variable ‘self’ [-Wunused-variable]
WfdServer *self = WFD_SERVER (object);
^~~~
../src/wfd/wfd-server.c: In function ‘wfd_server_set_property’:
../src/wfd/wfd-server.c:70:14: warning: unused variable ‘self’ [-Wunused-variable]
WfdServer *self = WFD_SERVER (object);
^~~~
At top level:
../src/wfd/wfd-server.c:19:20: warning: ‘properties’ defined but not used [-Wunused-variable]
static GParamSpec *properties[N_PROPS];
^~~~~~~~~~
[9/33] Compiling C object 'src/wfd/b3f...wfd-server@sta/wfd-media-factory.c.o'.
../src/wfd/wfd-media-factory.c: In function ‘wfd_media_factory_construct’:
../src/wfd/wfd-media-factory.c:548:18: warning: variable ‘client’ set but not used [-Wunused-but-set-variable]
GstRTSPClient *client;
^~~~~~
../src/wfd/wfd-media-factory.c: In function ‘wfd_media_factory_finalize’:
../src/wfd/wfd-media-factory.c:573:20: warning: unused variable ‘self’ [-Wunused-variable]
WfdMediaFactory *self = (WfdMediaFactory *) object;
^~~~
../src/wfd/wfd-media-factory.c: In function ‘wfd_media_factory_get_property’:
../src/wfd/wfd-media-factory.c:584:20: warning: unused variable ‘self’ [-Wunused-variable]
WfdMediaFactory *self = WFD_MEDIA_FACTORY (object);
^~~~
../src/wfd/wfd-media-factory.c: In function ‘wfd_media_factory_set_property’:
../src/wfd/wfd-media-factory.c:599:20: warning: unused variable ‘self’ [-Wunused-variable]
WfdMediaFactory *self = WFD_MEDIA_FACTORY (object);
^~~~
At top level:
../src/wfd/wfd-media-factory.c:33:20: warning: ‘properties’ defined but not used [-Wunused-variable]
static GParamSpec *properties[N_PROPS];
^~~~~~~~~~
[10/33] Compiling C object 'src/wfd/b3fab4b@@wfd-server@sta/wfd-client.c.o'.
../src/wfd/wfd-client.c: In function ‘wfd_client_get_property’:
../src/wfd/wfd-client.c:81:14: warning: unused variable ‘self’ [-Wunused-variable]
WfdClient *self = WFD_CLIENT (object);
^~~~
../src/wfd/wfd-client.c: In function ‘wfd_client_set_property’:
../src/wfd/wfd-client.c:96:14: warning: unused variable ‘self’ [-Wunused-variable]
WfdClient *self = WFD_CLIENT (object);
^~~~
../src/wfd/wfd-client.c: In function ‘wfd_client_make_path_from_uri’:
../src/wfd/wfd-client.c:371:27: warning: comparison between ‘GstRTSPMsgType’ {aka ‘enum <anonymous>’} and ‘enum <anonymous>’ [-Wenum-compare]
(ctx->request->type != GST_RTSP_PLAY ||
^~
../src/wfd/wfd-client.c:372:27: warning: comparison between ‘GstRTSPMsgType’ {aka ‘enum <anonymous>’} and ‘enum <anonymous>’ [-Wenum-compare]
ctx->request->type != GST_RTSP_PAUSE))
^~
At top level:
../src/wfd/wfd-client.c:38:20: warning: ‘properties’ defined but not used [-Wunused-variable]
static GParamSpec *properties[N_PROPS];
^~~~~~~~~~
[25/33] Compiling C object 'src/25a663...screencast@exe/screencast-portal.c.o'.
../src/screencast-portal.c: In function ‘screencast_portal_get_property’:
../src/screencast-portal.c:469:21: warning: unused variable ‘self’ [-Wunused-variable]
ScreencastPortal *self = SCREENCAST_PORTAL (object);
^~~~
../src/screencast-portal.c: In function ‘screencast_portal_set_property’:
../src/screencast-portal.c:484:21: warning: unused variable ‘self’ [-Wunused-variable]
ScreencastPortal *self = SCREENCAST_PORTAL (object);
^~~~
At top level:
../src/screencast-portal.c:40:20: warning: ‘properties’ defined but not used [-Wunused-variable]
static GParamSpec *properties[N_PROPS];
^~~~~~~~~~
[29/33] Compiling C object 'src/25a663...encast@exe/screencast-pulseaudio.c.o'.
../src/screencast-pulseaudio.c: In function ‘screencast_pulseaudio_get_property’:
../src/screencast-pulseaudio.c:304:25: warning: unused variable ‘self’ [-Wunused-variable]
ScreencastPulseaudio *self = SCREENCAST_PULSEAUDIO (object);
^~~~
../src/screencast-pulseaudio.c: In function ‘screencast_pulseaudio_set_property’:
../src/screencast-pulseaudio.c:319:25: warning: unused variable ‘self’ [-Wunused-variable]
ScreencastPulseaudio *self = SCREENCAST_PULSEAUDIO (object);
^~~~
At top level:
../src/screencast-pulseaudio.c:44:20: warning: ‘properties’ defined but not used [-Wunused-variable]
static GParamSpec *properties[N_PROPS];
^~~~~~~~~~
[30/33] Compiling C object 'src/25a663...@exe/screencast-wfd-p2p-provider.c.o'.
FAILED: src/25a6634@@gnome-screencast@exe/screencast-wfd-p2p-provider.c.o
cc -Isrc/25a6634@@gnome-screencast@exe -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/libdrm -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/libnm -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/home/r/gnome-screencast/build -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -g -pthread -D_REENTRANT -MD -MQ 'src/25a6634@@gnome-screencast@exe/screencast-wfd-p2p-provider.c.o' -MF 'src/25a6634@@gnome-screencast@exe/screencast-wfd-p2p-provider.c.o.d' -o 'src/25a6634@@gnome-screencast@exe/screencast-wfd-p2p-provider.c.o' -c ../src/screencast-wfd-p2p-provider.c
../src/screencast-wfd-p2p-provider.c: In function ‘device_restart_find_timeout’:
../src/screencast-wfd-p2p-provider.c:128:3: error: too many arguments to function ‘nm_device_wifi_p2p_start_find’
nm_device_wifi_p2p_start_find (NM_DEVICE_WIFI_P2P (provider->nm_device), NULL, NULL, NULL, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/libnm/NetworkManager.h:54,
from ../src/screencast-wfd-p2p-provider.h:21,
from ../src/screencast-wfd-p2p-provider.c:20:
/usr/include/libnm/nm-device-wifi-p2p.h:62:26: note: declared here
void nm_device_wifi_p2p_start_find (NMDeviceWifiP2P *device,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/screencast-wfd-p2p-provider.c: In function ‘screencast_wfd_p2p_provider_set_property’:
../src/screencast-wfd-p2p-provider.c:167:11: error: too many arguments to function ‘nm_device_wifi_p2p_start_find’
nm_device_wifi_p2p_start_find (NM_DEVICE_WIFI_P2P (provider->nm_device), NULL, NULL, NULL, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/libnm/NetworkManager.h:54,
from ../src/screencast-wfd-p2p-provider.h:21,
from ../src/screencast-wfd-p2p-provider.c:20:
/usr/include/libnm/nm-device-wifi-p2p.h:62:26: note: declared here
void nm_device_wifi_p2p_start_find (NMDeviceWifiP2P *device,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/screencast-wfd-p2p-provider.c:183:11: error: too many arguments to function ‘nm_device_wifi_p2p_start_find’
nm_device_wifi_p2p_start_find (NM_DEVICE_WIFI_P2P (provider->nm_device), NULL, NULL, NULL, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/libnm/NetworkManager.h:54,
from ../src/screencast-wfd-p2p-provider.h:21,
from ../src/screencast-wfd-p2p-provider.c:20:
/usr/include/libnm/nm-device-wifi-p2p.h:62:26: note: declared here
void nm_device_wifi_p2p_start_find (NMDeviceWifiP2P *device,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[32/33] Compiling C object 'src/25a663...cast@exe/screencast-wfd-p2p-sink.c.o'.
ninja: build stopped: subcommand failed.