Skip to content

Deprecation warnings fail the build #7

@apteryks

Description

@apteryks

Hi,

When building using the latest commit, 5eaf8c9, against a recent telepathy-glib (version 0.24.2), the build fails with errors like:

checking for
   dbus-1 >= 1.1.0
   dbus-glib-1 >= 0.82
   gio-2.0
   glib-2.0 >= 2.32
   gobject-2.0
   libxml-2.0
   sqlite3
   telepathy-glib >= 0.21.2
... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating doc/Makefile
config.status: creating doc/reference/Makefile
config.status: creating doc/reference/libtelepathy-logger/Makefile
config.status: creating extensions/Makefile
config.status: creating extensions/tpl-extensions.pc
config.status: creating po/Makefile.in
config.status: creating src/Makefile
config.status: creating telepathy-logger/Makefile
config.status: creating telepathy-logger/telepathy-logger-0.2.pc
config.status: creating telepathy-logger/telepathy-logger-0.2-uninstalled.pc
config.status: creating tools/Makefile
config.status: creating tests/Makefile
config.status: creating tests/dbus/Makefile
config.status: creating tests/lib/Makefile
config.status: creating tests/suppressions/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po/stamp-it commands

Configure summary:

	Compiler....................:  gcc
	Compiler Flags..............:  -g -O2  -Wall -Wextra -Wformat-security -Winit-self -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wno-missing-field-initializers -Wno-unused-parameter -Werror -Wno-error=missing-field-initializers -Wno-error=unused-parameter -D_POSIX_SOURCE -std=c99
	Prefix......................:  /gnu/store/kwv3s2cyfpg3li8dhbkj00vjvbyrl34j-telepathy-logger-0.8.2-0.5eaf8c9
	Coding style checks.........:  yes
	Bugreporting URL............:  https://bugs.freedesktop.org/buglist.cgi?product=Telepathy&component=logger
	Public extensions library...:  no
	Introspection support.......:  yes


phase `configure' succeeded after 1.5 seconds
starting phase `patch-generated-file-shebangs'
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `build'
make  all-recursive
make[1]: Entering directory '/tmp/guix-build-telepathy-logger-0.8.2-0.5eaf8c9.drv-0/source'
Making all in tools
make[2]: Entering directory '/tmp/guix-build-telepathy-logger-0.8.2-0.5eaf8c9.drv-0/source/tools'
sed -e 's![@]abs_top_builddir[@]!/tmp/guix-build-telepathy-logger-0.8.2-0.5eaf8c9.drv-0/source!' telepathy-glib-env.in > telepathy-glib-env
chmod +x telepathy-glib-env
make[2]: Leaving directory '/tmp/guix-build-telepathy-logger-0.8.2-0.5eaf8c9.drv-0/source/tools'
Making all in extensions
make[2]: Entering directory '/tmp/guix-build-telepathy-logger-0.8.2-0.5eaf8c9.drv-0/source/extensions'
/gnu/store/7h0mnlwalw23j9jmvz5n1i5mqkgb4d06-coreutils-9.1/bin/mkdir -p _gen
/gnu/store/7h0mnlwalw23j9jmvz5n1i5mqkgb4d06-coreutils-9.1/bin/mkdir -p _gen
  GEN      _gen/all.xml
  GEN      _gen/misc.xml
  GEN      _gen/gtypes-body.h
  GEN      _gen/interfaces.h
  GEN      _gen/enums.h
  GEN      _gen/register-dbus-glib-marshallers-body.h
  GEN      _gen/cli-misc-body.h
  GEN      _gen/svc-misc.c
make  all-am
make[3]: Entering directory '/tmp/guix-build-telepathy-logger-0.8.2-0.5eaf8c9.drv-0/source/extensions'
  CC       extensions-cli.lo
  CC       extensions.lo
  CC       _gen/svc-misc.lo
In file included from /gnu/store/2k2m88crfq4ysn56f59nkm51xgw0fc6q-telepathy-glib-0.24.2/include/telepathy-1.0/telepathy-glib/telepathy-glib.h:83,
                 from ./_gen/svc-misc.h:3,
                 from _gen/svc-misc.c:1:
/gnu/store/2k2m88crfq4ysn56f59nkm51xgw0fc6q-telepathy-glib-0.24.2/include/telepathy-1.0/telepathy-glib/debug-sender.h:72:5: error: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations]
   72 |     GTimeVal *timestamp,
      |     ^~~~~~~~
In file included from /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/glib/galloca.h:34,
                 from /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/glib.h:32,
                 from /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/gobject/gbinding.h:30,
                 from /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/glib-object.h:24,
                 from ./_gen/svc-misc.h:1,
                 from _gen/svc-misc.c:1:
/gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
In file included from /gnu/store/2k2m88crfq4ysn56f59nkm51xgw0fc6q-telepathy-glib-0.24.2/include/telepathy-1.0/telepathy-glib/telepathy-glib.h:83,
                 from ./_gen/svc-misc.h:3,
                 from _gen/svc-misc.c:1:
/gnu/store/2k2m88crfq4ysn56f59nkm51xgw0fc6q-telepathy-glib-0.24.2/include/telepathy-1.0/telepathy-glib/debug-sender.h:78:5: error: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations]
   78 |     GTimeVal *timestamp,
      |     ^~~~~~~~
In file included from /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/glib/galloca.h:34,
                 from /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/glib.h:32,
                 from /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/gobject/gbinding.h:30,
                 from /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/glib-object.h:24,
                 from ./_gen/svc-misc.h:1,
                 from _gen/svc-misc.c:1:
/gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
In file included from /gnu/store/2k2m88crfq4ysn56f59nkm51xgw0fc6q-telepathy-glib-0.24.2/include/telepathy-1.0/telepathy-glib/telepathy-glib.h:83,
                 from ./_gen/svc-misc.h:3,
                 from _gen/svc-misc.c:1:
/gnu/store/2k2m88crfq4ysn56f59nkm51xgw0fc6q-telepathy-glib-0.24.2/include/telepathy-1.0/telepathy-glib/debug-sender.h:86:5: error: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Werror=deprecated-declarations]
   86 |     GTimeVal *timestamp,
      |     ^~~~~~~~
In file included from /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/glib/galloca.h:34,
                 from /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/glib.h:32,
                 from /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/gobject/gbinding.h:30,
                 from /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/glib-object.h:24,
                 from ./_gen/svc-misc.h:1,
                 from _gen/svc-misc.c:1:
/gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
  580 | struct _GTimeVal
      |        ^~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:633: _gen/svc-misc.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/tmp/guix-build-telepathy-logger-0.8.2-0.5eaf8c9.drv-0/source/extensions'
make[2]: *** [Makefile:503: all] Error 2
make[2]: Leaving directory '/tmp/guix-build-telepathy-logger-0.8.2-0.5eaf8c9.drv-0/source/extensions'
make[1]: *** [Makefile:496: all-recursive] Error 1
make[1]: Leaving directory '/tmp/guix-build-telepathy-logger-0.8.2-0.5eaf8c9.drv-0/source'
make: *** [Makefile:427: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions