#1151169 gmrender-resurrect: FTBFS with pupnp 22.1.8

#1151169#5
Date:
2026-10-17 17:20:49 UTC
From:
To:
Source: gmrender-resurrect
Version: 0.3.1-1
Severity: important
Tags: ftbfs sid forky
X-Debbugs-Cc: sramacher@debian.org

Dear maintainer,

gmrende-resurrect FTBFS with pupnp 22.1.8 (which will be available in
experimental soon):

x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -I/usr/include/upnp -DPKG_DATADIR=\"/usr/share/gmediarender\" -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/gmrender-resurrect-0Y5qSZ/gmrender-resurrect-0.3.1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -c -o output.o output.c
upnp_device.c: In function ‘initialize_device’:
upnp_device.c:468:38: error: passing argument 5 of ‘UpnpRegisterRootDevice2’ from incompatible pointer type [-Wincompatible-pointer-types]
  468 |                                      &event_handler, result_device,
      |                                      ^~~~~~~~~~~~~~
      |                                      |
      |                                      int (*)(Upnp_EventType,  const void *, void *) {aka int (*)(enum Upnp_EventType_e,  const void *, void *)}
In file included from upnp_device.c:41:
/usr/include/upnp/upnp.h:868:21: note: expected ‘Upnp_FunPtr’ {aka ‘int (*)(enum Upnp_EventType_e,  void *, void *)’} but argument is of type ‘int (*)(Upnp_EventType,  const void *, void *)’ {aka ‘int (*)(enum Upnp_EventType_e,  const void *, void *)’}
  868 |         Upnp_FunPtr Fun,
      |         ~~~~~~~~~~~~^~~
In file included from upnp_service.h:29,
                 from upnp_device.c:50:
upnp_device.c:393:22: note: ‘event_handler’ declared here
  393 | static UPNP_CALLBACK(event_handler, EventType, event, userdata)
      |                      ^~~~~~~~~~~~~
upnp_compat.h:56:54: note: in definition of macro ‘UPNP_CALLBACK’
   56 | #define UPNP_CALLBACK(NAME, TYPE, EVENT, COOKIE) int NAME(Upnp_EventType TYPE, const void* EVENT, void* COOKIE)
      |                                                      ^~~~
In file included from /usr/include/upnp/upnp.h:499:
/usr/include/upnp/Callback.h:145:15: note: ‘Upnp_FunPtr’ declared here
  145 | typedef int (*Upnp_FunPtr)(
      |               ^~~~~~~~~~~
make[4]: *** [Makefile:419: upnp_device.o] Error 1

See the attached log for details.

Cheers