Compiling on Fedora25
mikee at saxicola.co.uk
Sat Apr 15 10:15:15 EDT 2017
On Sat, 15 Apr 2017 08:32:29 -0500
Rob Gowin <robg at gowin.net> wrote:
> On Sat, Apr 15, 2017 at 3:24 AM, Mike Evans <mikee at saxicola.co.uk> wrote:
> > Compiling using cmake I get a different error messages:
> > In file included from /usr/include/sys/types.h:25:0,
> > from /home/mikee/Projects/gnucash/
> > src/libqof/qof/md5.c:27:
> > /usr/include/features.h:331:4: error: #warning _FORTIFY_SOURCE requires
> > compiling with optimization (-O) [-Werror=cpp]
> > # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
> > ^~~~~~~
> > Any thoughts?
> > Regards Mike E
> Hi Mike,
> Looks like I need to backport this commit on master to maint:
> In the meantime as a workaround, on line 419 of the top level
> CMakeLists.txt file, you can change -D_FORTIFY_SOURCE=2 to
> -U_FORTIFY_SOURCE.to continue.
Many thanks Rob. That fixed the cmake build.
More information about the gnucash-devel