#1075233 loqui: ftbfs with GCC-14

Package:
src:loqui
Source:
src:loqui
Submitter:
Matthias Klose
Date:
2025-08-11 15:24:23 UTC
Severity:
normal
Tags:
#1075233#5
Date:
2024-07-03 12:35:12 UTC
From:
To:
[This bug is targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/loqui_0.7.0-2.1_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html

[...]
../libloqui/loqui-utils.h:66:13: warning: Deprecated pre-processor symbol: replace with "const"
   66 | G_CONST_RETURN gchar *loqui_utils_remove_return_code(gchar *str);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../libloqui/loqui-utils.h:95:13: warning: Deprecated pre-processor symbol: replace with "const"
   95 | G_CONST_RETURN gchar* loqui_utils_remove_ipv6_prefix_ffff(const gchar *str);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
loqui-profile-factory.c:81:13: warning: Deprecated pre-processor symbol: replace with "const"
   81 | LOQUI_DEFINE_INTERFACE_METHOD_CALLER_ARG0_WITH_RETURN(LoquiProfileFactory, loqui_profile_factory, get_profile_type_name_static, G_CONST_RETURN gchar *)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
loqui-profile-factory.c: In function ‘loqui_profile_factory_get_profile_type_name_static’:
loqui-profile-factory.c:81:13: warning: Deprecated pre-processor symbol: replace with "const"
libtool: compile:  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 -I/usr/include/libmount -I/usr/include/blkid -pthread -I/usr/include -I.. -DG_LOG_DOMAIN=\"libloqui\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -Wall -Wredundant-decls -Wmissing-declarations -Wmissing-prototypes -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c loqui-property-profile.c  -fPIC -DPIC -o .libs/loqui-property-profile.o
libtool: compile:  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 -I/usr/include/libmount -I/usr/include/blkid -pthread -I/usr/include -I.. -DG_LOG_DOMAIN=\"libloqui\" -Wdate-time -D_FORTIFY_SOURCE=2 -g -Wall -Wredundant-decls -Wmissing-declarations -Wmissing-prototypes -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c loqui-profile-factory.c -o loqui-profile-factory.o >/dev/null 2>&1
In file included from loqui-generic-profile-factory.h:36,
                 from loqui-generic-profile-factory.c:37:
../libloqui/loqui-profile-factory.h:48:13: warning: Deprecated pre-processor symbol: replace with "const"
   48 | G_CONST_RETURN gchar *loqui_profile_factory_get_profile_type_name_static(LoquiProfileFactory *self);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from loqui-generic-profile-factory.gob:31:
loqui-utils.h:66:13: warning: Deprecated pre-processor symbol: replace with "const"
   66 | G_CONST_RETURN gchar *loqui_utils_remove_return_code(gchar *str);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
loqui-utils.h:95:13: warning: Deprecated pre-processor symbol: replace with "const"
   95 | G_CONST_RETURN gchar* loqui_utils_remove_ipv6_prefix_ffff(const gchar *str);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
loqui-generic-profile-factory.gob: In function ‘___Loqui_Profile_Factory_init’:
loqui-generic-profile-factory.gob:51:45: error: assignment to ‘gchar * (*)(LoquiProfileFactory *)’ {aka ‘char * (*)(struct _LoquiProfileFactory *)’} from incompatible pointer type ‘const gchar * (*)(LoquiProfileFactory *)’ {aka ‘const char * (*)(struct _LoquiProfileFactory *)’} [-Wincompatible-pointer-types]
   51 |         private const gchar *
      |                                             ^
loqui-generic-profile-factory.c: In function ‘loqui_generic_profile_factory_init’:
loqui-generic-profile-factory.c:178:20: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
  178 |         o->_priv = G_TYPE_INSTANCE_GET_PRIVATE(o,LOQUI_TYPE_GENERIC_PROFILE_FACTORY,LoquiGenericProfileFactoryPrivate);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
loqui-generic-profile-factory.c: In function ‘loqui_generic_profile_factory_class_init’:
loqui-generic-profile-factory.c:190:9: warning: ‘g_type_class_add_private’ is deprecated [-Wdeprecated-declarations]
  190 |         g_type_class_add_private(c,sizeof(LoquiGenericProfileFactoryPrivate));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
                 from /usr/include/glib-2.0/gobject/gbinding.h:31,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from loqui-generic-profile-factory.h:26:
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
 1497 | void     g_type_class_add_private       (gpointer                    g_class,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
make[5]: *** [Makefile:699: loqui-generic-profile-factory.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
In file included from loqui-property-profile.gob:31:
loqui-utils.h:66:13: warning: Deprecated pre-processor symbol: replace with "const"
   66 | G_CONST_RETURN gchar *loqui_utils_remove_return_code(gchar *str);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
loqui-utils.h:95:13: warning: Deprecated pre-processor symbol: replace with "const"
   95 | G_CONST_RETURN gchar* loqui_utils_remove_ipv6_prefix_ffff(const gchar *str);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
loqui-property-profile.gob: In function ‘___Loqui_Profile_init’:
loqui-property-profile.gob:64:39: error: assignment to ‘GParamSpec * (*)(LoquiProfile *, const gchar *, const gchar *)’ {aka ‘struct _GParamSpec * (*)(struct _LoquiProfile *, const char *, const char *)’} from incompatible pointer type ‘const GParamSpec * (*)(LoquiProfile *, const gchar *, const gchar *)’ {aka ‘const struct _GParamSpec * (*)(struct _LoquiProfile *, const char *, const char *)’} [-Wincompatible-pointer-types]
   64 |         private const GParamSpec *get_profile_value_spec(LoquiProfile *profile, const gchar *key, const gchar *type_hint) {
      |                                       ^
make[5]: *** [Makefile:699: loqui-property-profile.lo] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/libloqui'
make[4]: *** [Makefile:714: all-recursive] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/libloqui'
make[3]: *** [Makefile:559: all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/libloqui'
make[2]: *** [Makefile:530: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:418: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:15: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2