[GNC] Items while building 5.17
John Ralls
jralls at ceridwen.us
Sun Sep 27 17:38:50 EDT 2026
> On Sep 27, 2026, at 10:13, Stephen M. Butler <stephen.m.butler51 at gmail.com> wrote:
>
> Don't know if the following needs to be addressed or not. Found them while building 5.17 from a git pull on an Ubuntu 26.04.1 LTS using GNU Make 4.4.1 and gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
>
> * -- Performing Test HAVE_OFX_BUG_39 - Failed
>
> * [ 28%] Linking CXX shared library
> ../../../lib/libgnc-backend-xml-utils.so
> /usr/bin/x86_64-linux-gnu-ld.bfd:
> CMakeFiles/gnc-backend-xml-utils.dir/gnc-xml-backend.cpp.o: in
> function `GncXmlBackend::write_to_file(bool)':
> /home/steve/Projects/GnuCash/gnucash/libgnucash/backend/xml/gnc-xml-backend.cpp:390:(.text+0x1c1b):
> *warning: the use of `mktemp' is dangerous, better use `mkstemp' or
> `mkdtemp'*
> [ 28%] Built target gnc-backend-xml-utils
BSD (and so macOS) has been issuing that warning for years. The supposed danger is a bit hypothetical, that some other process might be using the same temporary file name and so might corrupt the data. Neither of the alternatives is a drop-in; in fact they’re sufficiently different that it would take a redesign of the file-compression feature on the XML backend to use one of them.
Regards,
John Ralls
More information about the gnucash-user
mailing list