Commit 63531558 authored by Jens Georg's avatar Jens Georg

Swtich to new GUPnP API

parent 761854fe
......@@ -11,7 +11,7 @@ AC_STDC_HEADERS
AC_PROG_LIBTOOL
AC_FUNC_MMAP
PKG_CHECK_MODULES(LIBGUPNP, glib-2.0 >= 2.26 gobject-2.0 >= 2.26 gssdp-1.0 gupnp-1.0 >= 0.18 gthread-2.0)
PKG_CHECK_MODULES(LIBGUPNP, glib-2.0 >= 2.26 gobject-2.0 >= 2.26 gssdp-1.2 gupnp-1.2 >= 0.18 gthread-2.0)
# glib-genmarshal
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
......
......@@ -5,7 +5,7 @@ includedir=${pcfiledir}/
Name: gupnp-igd-1.0
Description: GUPnP Simple IGD library
Requires: gupnp-1.0
Requires: gupnp-1.2
Version: @VERSION@
Libs: ${libdir}/libgupnp-av-1.0.la
Cflags: -I${includedir}
......
......@@ -5,7 +5,7 @@ includedir=@includedir@
Name: gupnp-igd-1.0
Description: GUPnP Simple IGD library
Requires: gupnp-1.0
Requires: gupnp-1.2
Version: @VERSION@
Libs: -L${libdir} -lgupnp-igd-1.0
Cflags: -I${includedir}/gupnp-igd-1.0
......
......@@ -60,7 +60,7 @@ GUPnPIgd_1_0_gir_VERSION = 1.0
GUPnPIgd_1_0_gir_LIBS = $(lib_LTLIBRARIES)
GUPnPIgd_1_0_gir_FILES = $(libgupnp_igd_1_0_la_SOURCES) $(libgupnp_igd_inc_HEADERS)
GUPnPIgd_1_0_gir_INCLUDES=GObject-2.0
GUPnPIgd_1_0_gir_PACKAGES=gupnp-1.0
GUPnPIgd_1_0_gir_PACKAGES=gupnp-1.2
GUPnPIgd_1_0_gir_CFLAGS=-I$(srcdir) -I$(top_srcdir)
if HAVE_INTROSPECTION
......
......@@ -273,13 +273,14 @@ run_gupnp_simple_igd_test (GMainContext *mainctx, GUPnPSimpleIgd *igd,
GUPnPDeviceInfo *subdev1;
GUPnPDeviceInfo *subdev2;
const gchar *xml_path = ".";
GError *error = NULL;
g_signal_connect (igd, "context-available",
G_CALLBACK (ignore_non_localhost), NULL);
if (mainctx)
g_main_context_push_thread_default (mainctx);
context = gupnp_context_new (NULL, "lo", 0, NULL);
context = gupnp_context_new ("lo", 0, NULL);
g_assert (context);
if (g_getenv ("XML_PATH"))
......@@ -293,8 +294,9 @@ run_gupnp_simple_igd_test (GMainContext *mainctx, GUPnPSimpleIgd *igd,
gupnp_context_host_path (context, "WANPPPConnection.xml", "/WANPPPConnection.xml");
*/
dev = gupnp_root_device_new (context, "InternetGatewayDevice.xml", xml_path);
dev = gupnp_root_device_new (context, "InternetGatewayDevice.xml", xml_path, &error);
g_assert (dev);
g_assert (error == NULL);
subdev1 = gupnp_device_info_get_device (GUPNP_DEVICE_INFO (dev),
"urn:schemas-upnp-org:device:WANDevice:1");
......
  • I've been trying to use this patch but seems like gupnp-igd is now behind some glib changes

    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.2 -I/usr/include/gupnp-1.2 -pthread -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -c gupnp-simple-igd-thread.c  -fPIC -DPIC -o .libs/gupnp-simple-igd-thread.o
    In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                     from /usr/include/glib-2.0/glib.h:32,
                     from ../libgupnp-igd/gupnp-simple-igd.h:26,
                     from gupnp-simple-igd-thread.h:26,
                     from gupnp-simple-igd-thread.c:37:
    /usr/include/glib-2.0/glib/gthread.h: In function 'g_rec_mutex_locker_new':
    /usr/include/glib-2.0/glib/gthread.h:390:3: warning: 'g_rec_mutex_lock' is deprecated: Not available before 2.32 [-Wdeprecated-declarations]
      390 |   g_rec_mutex_lock (rec_mutex);
          |   ^~~~~~~~~~~~~~~~
    /usr/include/glib-2.0/glib/gthread.h:196:17: note: declared here
      196 | void            g_rec_mutex_lock                (GRecMutex      *rec_mutex);
          |                 ^~~~~~~~~~~~~~~~
    /usr/include/glib-2.0/glib/gthread.h: In function 'g_rec_mutex_locker_free':
    /usr/include/glib-2.0/glib/gthread.h:405:3: warning: 'g_rec_mutex_unlock' is deprecated: Not available before 2.32 [-Wdeprecated-declarations]
      405 |   g_rec_mutex_unlock ((GRecMutex *) locker);
          |   ^~~~~~~~~~~~~~~~~~
    /usr/include/glib-2.0/glib/gthread.h:200:17: note: declared here
      200 | void            g_rec_mutex_unlock              (GRecMutex      *rec_mutex);
          |                 ^~~~~~~~~~~~~~~~~~
    gupnp-simple-igd-thread.c: In function 'gupnp_simple_igd_thread_constructor':
    gupnp-simple-igd-thread.c:318:25: warning: variable 'self' set but not used [-Wunused-but-set-variable]
      318 |   GUPnPSimpleIgdThread *self;
          |                         ^~~~
    make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    make[2]: *** [Makefile:428: all] Error 2
    

    Any other progress has been made to port gupnp-igd to gssdp-1.2, gupnp-1.2 and latest glib?

  • Try to call configure with --disable-werror, that should do it for a test

  • + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --disable-silent-rules --bindir=/usr/bin --datadir=/usr/share --exec-prefix=/usr --includedir=/usr/include --infodir=/usr/share/info --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --mandir=/usr/share/man --prefix=/usr --sbindir=/usr/sbin --sharedstatedir=/var/lib --sysconfdir=/etc --disable-werror --disable-static --disable-python --enable-introspection
    configure: WARNING: unrecognized options: --disable-werror
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether make supports the include directive... yes (GNU style)
    checking for x86_64-redhat-linux-gnu-gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables... 
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking dependency style of gcc... none
    checking for library containing strerror... none required
    checking for x86_64-redhat-linux-gnu-gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking whether gcc understands -c and -o together... (cached) yes
    checking dependency style of gcc... (cached) none
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking build system type... x86_64-redhat-linux-gnu
    checking host system type... x86_64-redhat-linux-gnu
    checking how to print strings... printf
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... gcc-nm
    checking the name lister (gcc-nm) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for x86_64-redhat-linux-gnu-objdump... no
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for x86_64-redhat-linux-gnu-dlltool... no
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for x86_64-redhat-linux-gnu-ar... gcc-ar
    checking for archiver @FILE support... @
    checking for x86_64-redhat-linux-gnu-strip... no
    checking for strip... strip
    checking for x86_64-redhat-linux-gnu-ranlib... gcc-ranlib
    checking command to parse gcc-nm output from gcc object... ok
    checking for sysroot... no
    checking for a working dd... /usr/bin/dd
    checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
    checking for x86_64-redhat-linux-gnu-mt... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... no
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    checking for stdlib.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for sys/param.h... yes
    checking for getpagesize... yes
    checking for working mmap... yes
    checking for x86_64-redhat-linux-gnu-pkg-config... /usr/bin/x86_64-redhat-linux-gnu-pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for LIBGUPNP... yes
    checking whether make supports nested variables... (cached) yes
    checking for gtk-doc... yes
    checking for gtkdoc-check... gtkdoc-check.test
    checking for gtkdoc-check... /usr/bin/gtkdoc-check
    checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
    checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf
    checking whether to build gtk-doc documentation... no
    checking for GTKDOC_DEPS... yes
    checking for gobject-introspection... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libgupnp-igd/Makefile
    config.status: creating python/Makefile
    config.status: creating tests/Makefile
    config.status: creating tests/gtest/Makefile
    config.status: creating tests/examples/Makefile
    config.status: creating doc/Makefile
    config.status: creating doc/version.xml
    config.status: creating gupnp-igd-1.0.pc
    config.status: creating gupnp-igd-1.0-uninstalled.pc
    config.status: creating config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
    configure: WARNING: unrecognized options: --disable-werror
    + /usr/bin/make -O -j4
    /usr/bin/make  all-recursive
    Making all in libgupnp-igd
    make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    echo "#include \"glib-object.h\"" > gupnp-simple-igd-marshal.c.tmp && \
    echo "#include \"gupnp-simple-igd-marshal.h\"" >> gupnp-simple-igd-marshal.c.tmp && \
    /usr/bin/glib-genmarshal --body --prefix=_gupnp_simple_igd_marshal gupnp-simple-igd-marshal.list >> gupnp-simple-igd-marshal.c.tmp && \
    mv gupnp-simple-igd-marshal.c.tmp gupnp-simple-igd-marshal.c
    INFO: Reading gupnp-simple-igd-marshal.list...
    make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    /usr/bin/glib-genmarshal --header --prefix=_gupnp_simple_igd_marshal gupnp-simple-igd-marshal.list > gupnp-simple-igd-marshal.h.tmp
    INFO: Reading gupnp-simple-igd-marshal.list...
    make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    /usr/bin/make  all-am
    make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.2 -I/usr/include/gupnp-1.2 -pthread  -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -c -o gupnp-simple-igd.lo gupnp-simple-igd.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.2 -I/usr/include/gupnp-1.2 -pthread -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -c gupnp-simple-igd.c  -fPIC -DPIC -o .libs/gupnp-simple-igd.o
    In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                     from /usr/include/glib-2.0/glib.h:32,
                     from gupnp-simple-igd.h:26,
                     from gupnp-simple-igd.c:42:
    /usr/include/glib-2.0/glib/gthread.h: In function 'g_rec_mutex_locker_new':
    /usr/include/glib-2.0/glib/gthread.h:390:3: warning: 'g_rec_mutex_lock' is deprecated: Not available before 2.32 [-Wdeprecated-declarations]
      390 |   g_rec_mutex_lock (rec_mutex);
          |   ^~~~~~~~~~~~~~~~
    /usr/include/glib-2.0/glib/gthread.h:196:17: note: declared here
      196 | void            g_rec_mutex_lock                (GRecMutex      *rec_mutex);
          |                 ^~~~~~~~~~~~~~~~
    /usr/include/glib-2.0/glib/gthread.h: In function 'g_rec_mutex_locker_free':
    /usr/include/glib-2.0/glib/gthread.h:405:3: warning: 'g_rec_mutex_unlock' is deprecated: Not available before 2.32 [-Wdeprecated-declarations]
      405 |   g_rec_mutex_unlock ((GRecMutex *) locker);
          |   ^~~~~~~~~~~~~~~~~~
    /usr/include/glib-2.0/glib/gthread.h:200:17: note: declared here
      200 | void            g_rec_mutex_unlock              (GRecMutex      *rec_mutex);
          |                 ^~~~~~~~~~~~~~~~~~
    In file included from /usr/include/gupnp-1.2/libgupnp/gupnp.h:22,
                     from gupnp-simple-igd.c:52:
    /usr/include/gupnp-1.2/libgupnp/gupnp-acl.h: At top level:
    /usr/include/gupnp-1.2/libgupnp/gupnp-acl.h:27:10: fatal error: libsoup/soup-session.h: No such file or directory
       27 | #include <libsoup/soup-session.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make[3]: *** [Makefile:536: gupnp-simple-igd.lo] Error 1
    make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    make[3]: *** Waiting for unfinished jobs....
    make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.2 -I/usr/include/gupnp-1.2 -pthread  -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -c -o gupnp-enum-types.lo gupnp-enum-types.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.2 -I/usr/include/gupnp-1.2 -pthread -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -c gupnp-enum-types.c  -fPIC -DPIC -o .libs/gupnp-enum-types.o
    make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.2 -I/usr/include/gupnp-1.2 -pthread  -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -c -o gupnp-simple-igd-marshal.lo gupnp-simple-igd-marshal.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.2 -I/usr/include/gupnp-1.2 -pthread -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -c gupnp-simple-igd-marshal.c  -fPIC -DPIC -o .libs/gupnp-simple-igd-marshal.o
    make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    /bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..    -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.2 -I/usr/include/gupnp-1.2 -pthread  -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -c -o gupnp-simple-igd-thread.lo gupnp-simple-igd-thread.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.2 -I/usr/include/gupnp-1.2 -pthread -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -c gupnp-simple-igd-thread.c  -fPIC -DPIC -o .libs/gupnp-simple-igd-thread.o
    In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
                     from /usr/include/glib-2.0/glib.h:32,
                     from ../libgupnp-igd/gupnp-simple-igd.h:26,
                     from gupnp-simple-igd-thread.h:26,
                     from gupnp-simple-igd-thread.c:37:
    /usr/include/glib-2.0/glib/gthread.h: In function 'g_rec_mutex_locker_new':
    /usr/include/glib-2.0/glib/gthread.h:390:3: warning: 'g_rec_mutex_lock' is deprecated: Not available before 2.32 [-Wdeprecated-declarations]
      390 |   g_rec_mutex_lock (rec_mutex);
          |   ^~~~~~~~~~~~~~~~
    /usr/include/glib-2.0/glib/gthread.h:196:17: note: declared here
      196 | void            g_rec_mutex_lock                (GRecMutex      *rec_mutex);
          |                 ^~~~~~~~~~~~~~~~
    /usr/include/glib-2.0/glib/gthread.h: In function 'g_rec_mutex_locker_free':
    /usr/include/glib-2.0/glib/gthread.h:405:3: warning: 'g_rec_mutex_unlock' is deprecated: Not available before 2.32 [-Wdeprecated-declarations]
      405 |   g_rec_mutex_unlock ((GRecMutex *) locker);
          |   ^~~~~~~~~~~~~~~~~~
    /usr/include/glib-2.0/glib/gthread.h:200:17: note: declared here
      200 | void            g_rec_mutex_unlock              (GRecMutex      *rec_mutex);
          |                 ^~~~~~~~~~~~~~~~~~
    gupnp-simple-igd-thread.c: In function 'gupnp_simple_igd_thread_constructor':
    gupnp-simple-igd-thread.c:318:25: warning: variable 'self' set but not used [-Wunused-but-set-variable]
      318 |   GUPnPSimpleIgdThread *self;
          |                         ^~~~
    make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gupnp-igd-0.2.5/libgupnp-igd'
    make[2]: *** [Makefile:428: all] Error 2
    make[1]: *** [Makefile:496: all-recursive] Error 1
    make: *** [Makefile:403: all] Error 2
    
  • [tkloczko@domek gupnp-igd-0.2.5]$ ./configure --help | grep werror
    [tkloczko@domek gupnp-igd-0.2.5]$ 
    

    Looks like there is no such autoconf option.

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment