I'm unable to build Freefilesync 14.9 on Ubuntu 26.04 (resolute) due to this error:
In file included from ../../zen/globals.h:12,
from ../../zen/i18n.h:10,
from <command-line>:
afs/ftp.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:90:145: note: in definition of macro ‘ZEN_ON_SCOPE_EXIT’
90 | #define ZEN_ON_SCOPE_EXIT(X) [[maybe_unused]] auto ZEN_CONCAT(scopeGuard, __LINE__) = zen::makeGuard<zen::ScopeGuardRunMode::onExit >([&]{ X; });
| ^
afs/ftp.cpp:124:25: note: in expansion of macro ‘g_free’
124 | ZEN_ON_SCOPE_EXIT(::g_free(utfStr));
| ^~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [Makefile:144: /tmp/FreeFileSync_Make/ffs/src/afs/ftp.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
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:12:
../../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:12,
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:90:145: note: in definition of macro ‘ZEN_ON_SCOPE_EXIT’
90 | #define ZEN_ON_SCOPE_EXIT(X) [[maybe_unused]] auto ZEN_CONCAT(scopeGuard, __LINE__) = zen::makeGuard<zen::ScopeGuardRunMode::onExit >([&]{ X; });
| ^
Can you help?
Thank you!
Jhonny Oliveira
https://xtradeb.net