Hi, On Sun, Oct 27, 2024 at 03:48:54PM +0100, Radosław Korzeniewski wrote: > Hi, > > pt., 25 paź 2024 o 13:35 Thomas Beierlein <tom...@gentoo.org> napisał(a): > > > Hello, > > > > building bacula-15.0.2 here on Gentoo with > > '-Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto' > > failes with the following error: > > >> ..... > > JCR is handcrafted differently for every component (#ifdef DIRECTOR_DAEMON, > #ifdef FILE_DAEMON, #ifdef STORAGE_DAEMON) having a common part at the > beginning of the struct. > Looks like file daemon compilation is not separated enough from other > component builds.
Have not check completely but a first look shows some problems with include order - first jcr.h directly followed by filed.h which includes jcr.h but with FILE_DAEMON set before. > > > > > > See https://bugs.gentoo.org/940695 for original bug and > > https://940695.bugs.gentoo.org/attachment.cgi?id=904745 for full > > build log. > > > > > Any chance you can report this bug at: https://gitlab.bacula.org/ ? > See Issue 2734 there. Regards, Thomas. -- _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel