<div dir="ltr"><br>Hello,<br><br>I have found an error during the make step of diffutils (Chapter 6 of CLFS).<br>There is a deviation respect of the original book, I'm trying to install<br>version 3.6 instead of 3.3.<br><br>In fact, I'm trying to build CLFS with the most updated versions of the<br>programs. The installation according to Chapters 5 and 6 (with updated<br>versions) seems to work fine, except for diffutils and texinfo (that I'll<br>comment in another thread). Please see the details below.<br><br>Thank you in advanced for your help.<br><br>Daniel Gutiérrez<br>------------------<br><br>3.0.0-SYSVINIT<br>Linux 4.13.0-36-generic 16.04.1-Ubuntu x86_64 GNU/Linux<br><br>CLFS_HOST="x86_64-cross-linux-gnu"<br>CLFS_TARGET="x86_64-unknown-linux-gnu"<br>CLFS_TARGET32="i686-pc-linux-gnu"<br><br>./configure \<br>--prefix=/tools \<br>--build=${CLFS_HOST} \<br>--host=${CLFS_TARGET}<br><br>xstrtol-error.c: In function 'xstrtol_error':<br>xstrtol-error.c:84:26: error: invalid use of undefined type 'struct rpl_option'<br>     option = long_options[opt_idx].name;<br>                          ^<br>xstrtol-error.c:84:26: error: dereferencing pointer to incomplete <br>type 'const struct rpl_option'<br>In file included from ./getopt.h:85:0,<br>                 from xstrtol.h:22,<br>                 from xstrtol-error.c:20:<br>xstrtol-error.c: At top level:<br>./config.h:2070:25: warning: 'struct rpl_option' declared inside parameter <br>list will not be visible outside of this definition or declaration<br> #define __GETOPT_PREFIX rpl_<br>                         ^<br>./getopt-pfx-core.h:38:44: note: in expansion of macro '__GETOPT_PREFIX'<br> #  define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y)<br>                                            ^~~~~~~~~~~~~~~<br>xstrtol-error.c:92:1: error: conflicting types for 'xstrtol_fatal'<br> xstrtol_fatal (enum strtol_error err,<br> ^~~~~~~~~~~~~<br>In file included from xstrtol-error.c:20:0:<br>xstrtol.h:69:16: note: previous declaration of 'xstrtol_fatal' was here<br> _Noreturn void xstrtol_fatal (enum strtol_error,<br>                ^~~~~~~~~~~~~<br>xstrtol-error.c: In function 'xstrtol_fatal':<br>xstrtol-error.c:96:35: warning: passing argument 4 of 'xstrtol_error' <br>from incompatible pointer type [-Wincompatible-pointer-types]<br>   xstrtol_error (err, opt_idx, c, long_options, arg, exit_failure);<br>                                   ^~~~~~~~~~~~<br>xstrtol-error.c:47:1: note: expected 'const struct rpl_option *' but <br>argument is of type 'const struct rpl_option *'<br> xstrtol_error (enum strtol_error err,<br> ^~~~~~~~~~~~~<br>Makefile:1822: recipe for target 'xstrtol-error.o' failed<br>make[2]: *** [xstrtol-error.o] Error 1<br>make[2]: *** Waiting for unfinished jobs....<br>make[2]: Leaving directory '/mnt/clfs/sources/diffutils-3.6/lib'<br>Makefile:1577: recipe for target 'all' failed<br>make[1]: *** [all] Error 2<br>make[1]: Leaving directory '/mnt/clfs/sources/diffutils-3.6/lib'<br>Makefile:1337: recipe for target 'all-recursive' failed<br>make: *** [all-recursive] Error 1<br><br><br></div>