#1145286 freefilesync: FTBFS: /usr/include/glib-2.0/glib/gmem.h:172:3: error: expected id-expression before '(' token

#1145286#5
Date:
2026-08-23 19:57:51 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:freefilesync, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
x86_64-linux-gnu-g++ -Wdate-time -D_FORTIFY_SOURCE=2 -DAPP_NAME_SUFFIX='L" for Debian"' -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -g -std=c++23 -pipe -DWXINTL_NO_GETTEXT_MACRO -I../.. -I../../zenXml -include "zen/i18n.h" -include "zen/warn_static.h" -Wall -Wfatal-errors -Wmissing-include-dirs -Wswitch-enum -Wcast-align -Wnon-virtual-dtor -Wno-unused-function -Wshadow -Wno-maybe-uninitialized -DNDEBUG `wx-config --version=3.2 --cxxflags --debug=no` -pthread `pkgconf --cflags openssl` `pkgconf --cflags libcurl` `pkgconf --cflags libssh2` `pkgconf --cflags gtk+-3.0` -isystem/usr/include/gtk-3.0 `pkgconf --cflags libselinux` -DHAVE_SELINUX `pkgconf --cflags zlib` -c base/multi_rename.cpp -o /tmp/FreeFileSync_Make/ffs/src/base/multi_rename.cpp.o
In file included from ../../zen/error_log.h:12,
                 from ../../zen/extra_log.h:10,
                 from ../../zen/sys_error.h:13,
                 from base/icon_loader.cpp:13:
../../zen/time.h:262:26: warning: macro ‘__DATE__’ might prevent reproducible builds [-Wdate-time]
  262 |     char compileTime[] = __DATE__ " " __TIME__; //e.g. "Aug  1 2017 01:32:26"
      |                          ^~~~~~~~
../../zen/time.h:262:39: warning: macro ‘__TIME__’ might prevent reproducible builds [-Wdate-time]
  262 |     char compileTime[] = __DATE__ " " __TIME__; //e.g. "Aug  1 2017 01:32:26"
      |                                       ^~~~~~~~
In file included from ../../zen/globals.h:13,
                 from ../../zen/i18n.h:10,
                 from <command-line>:
base/icon_loader.cpp: In lambda function:
/usr/include/glib-2.0/glib/gmem.h:172:3: error: expected id-expression before ‘(’ token
  172 |   (__builtin_object_size ((mem), 0) != ((size_t) - 1)) ?                       \
      |   ^
../../zen/scope_guard.h:110:145: note: in definition of macro ‘ZEN_ON_SCOPE_EXIT’
  110 | #define ZEN_ON_SCOPE_EXIT(X)    [[maybe_unused]] auto ZEN_CONCAT(scopeGuard, __LINE__) = zen::makeGuard<zen::ScopeGuardRunMode::onExit   >([&]{ X; });
      |                                                                                                                                                 ^
base/icon_loader.cpp:149:25: note: in expansion of macro ‘g_free’
  149 |     ZEN_ON_SCOPE_EXIT(::g_free(contentType));
      |                         ^~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [Makefile:137: /tmp/FreeFileSync_Make/ffs/src/base/icon_loader.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/<<PKGBUILDDIR>>/FreeFileSync/Source'
dh_auto_build: error: cd FreeFileSync/Source && make -j2 INSTALL="install --strip-program=true" CXX=x86_64-linux-gnu-g\+\+ returned exit code 2
make[1]: *** [debian/rules:48: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:41: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1145286#10
Date:
2026-08-23 21:07:22 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
freefilesync, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1145286@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Fab Stz <fabstz-it@yahoo.fr> (supplier of updated freefilesync package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 23 Aug 2026 22:34:15 +0200
Source: freefilesync
Architecture: source
Version: 13.7-4
Distribution: unstable
Urgency: medium
Maintainer: Fab Stz <fabstz-it@yahoo.fr>
Changed-By: Fab Stz <fabstz-it@yahoo.fr>
Closes: 1145286
Changes:
 freefilesync (13.7-4) unstable; urgency=medium
 .
   * Patches: Add glib2-2.78-free_size-Fix-build-when-g_free-macro-is-defined.patch
     (Closes: #1145286)
Checksums-Sha1:
 41147d287a25920727e7c356abc64165d805b246 2252 freefilesync_13.7-4.dsc
 dee741e815ecfaced2497ca752f3c7fa5e2f9519 23616 freefilesync_13.7-4.debian.tar.xz
 69d8b3019f0cfe6a4b87cff70491a0a1bce933de 5537 freefilesync_13.7-4_source.buildinfo
Checksums-Sha256:
 25e0856d6862a5f2304c188b91eb4fdf4a7858311f8122488f0affde9fa64a2f 2252 freefilesync_13.7-4.dsc
 36901e57c3a2fac2e8be379f4db3eb3ee6bb8f47e94ae1e467329d4cf49e5d7a 23616 freefilesync_13.7-4.debian.tar.xz
 c2a3473f7af0843c5b8bec005a0ca9d5331517d0cdfd9e6d7170dd8f5dcb7f7e 5537 freefilesync_13.7-4_source.buildinfo
Files:
 1e34fc9199a060cd25cc3ba2bde185c1 2252 utils optional freefilesync_13.7-4.dsc
 474bb4355a15ec5ea19de35d3d147d20 23616 utils optional freefilesync_13.7-4.debian.tar.xz
 2ebf5e01cbbd8b7d52a5505c8b733f9a 5537 utils optional freefilesync_13.7-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgBW52p/iQkghvSWBknUCmH1XxUsFAmqLWcYACgkQknUCmH1X
xUuVhA/8DQ4KGYjM2PJkhbhje7cyAU1ZmvVx+XeytwRFpKq8oACge5IAw6yWoBQw
GgaEOA6oEqqC62RHxWWPTCiPAN/dH1a27JIiNvjwVv0j1yXIIoYbk9ycTpYfuyb2
u0w67jAokduXEh5nzfx+Iu4nZKBwkwVsQmKe3dte3ZtS7nFgrC5VyyedgZ6hi/W0
ULrDCyLVDqE4zhYEciJg1QG/YscDcSbvk6CZ4OA0JdfZY06B2ddfdVBckoo12REp
6mJCmMuyowI8tosLY1dJ/G45aGsJC+9bKuSzAAGXBaFkaQUT1yMiZkNL08h9wtIo
90lF08nr3WGvMF99GVbKkat8TpM6nK17xSkFjPvHwmCjAE3hJcQvmKBsCAON1RiZ
Fp3IgiV67CWT22qN65ntrQvFfOSdPn3yYOIT85nuEL0cQclZoRmdLzqnpHXxIOMG
+DWMun6SocZf6z/EAxOkaPA79OOiSOfPnZrRidK3BXTT86IADh9ard/cI5PRqfVv
OtOAD1R9RJ77LwtAQe+4kYXx5l3/iyirlWrjK3INjcDWZgX+m6WEuZc/+bdI3J2f
kPsHPtBgParmakXPoLOSPjWTiroUyJTl2usYsb5M/DB6ABVtn9FDrG4sC+6Cc/a2
vDaTjJdyRTaS7pvsZ3KymxVc2bM2eJ+1VK5q68bbR10NVW0dLqY=
=fDGD
-----END PGP SIGNATURE-----