Gisle Vanem wrote: > BY preprocessing 'fopen.c', I see the 'rpl_fopen()' > in my case is rather short. Since 'GNULIB_FOPEN_GNU' > seems *not* to be defined, it passes mode to > 'orig_fopen()' with "re" intact. Hence the EINVAL.
This means that apparently the gnulib module 'fopen-gnu' is not included. Which is strange, since diffutils/bootstrap.conf requests the 'exclude' module. > I've no idea who/how '-DGNULIB_FOPEN_GNU' is supposed > to be set. It is supposed to be set through the line gl_MODULE_INDICATOR([fopen-gnu]) in the module description. Can you show how you created your diffutils environment, starting with a fresh 'git clone' as described in https://savannah.gnu.org/git/?group=diffutils ? Also, in which environment did run 'bootstrap' (and thus gnulib-tool)? Bruno