I have found an error during the make step of diffutils (Chapter 6 of CLFS).
There is a deviation respect of the original book, I'm trying to install
version 3.6 instead of 3.3.

In fact, I'm trying to build CLFS with the most updated versions of the
programs. The installation according to Chapters 5 and 6 (with updated
versions) seems to work fine, except for diffutils and texinfo (that I'll
comment in another thread). Please see the details below.

Thank you in advanced for your help.

Daniel GutiƩrrez

Linux 4.13.0-36-generic 16.04.1-Ubuntu x86_64 GNU/Linux


./configure \
--prefix=/tools \
--build=${CLFS_HOST} \

xstrtol-error.c: In function 'xstrtol_error':
xstrtol-error.c:84:26: error: invalid use of undefined type 'struct
     option = long_options[opt_idx].name;
xstrtol-error.c:84:26: error: dereferencing pointer to incomplete
type 'const struct rpl_option'
In file included from ./getopt.h:85:0,
                 from xstrtol.h:22,
                 from xstrtol-error.c:20:
xstrtol-error.c: At top level:
./config.h:2070:25: warning: 'struct rpl_option' declared inside parameter
list will not be visible outside of this definition or declaration
 #define __GETOPT_PREFIX rpl_
./getopt-pfx-core.h:38:44: note: in expansion of macro '__GETOPT_PREFIX'
xstrtol-error.c:92:1: error: conflicting types for 'xstrtol_fatal'
 xstrtol_fatal (enum strtol_error err,
In file included from xstrtol-error.c:20:0:
xstrtol.h:69:16: note: previous declaration of 'xstrtol_fatal' was here
 _Noreturn void xstrtol_fatal (enum strtol_error,
xstrtol-error.c: In function 'xstrtol_fatal':
xstrtol-error.c:96:35: warning: passing argument 4 of 'xstrtol_error'
from incompatible pointer type [-Wincompatible-pointer-types]
   xstrtol_error (err, opt_idx, c, long_options, arg, exit_failure);
xstrtol-error.c:47:1: note: expected 'const struct rpl_option *' but
argument is of type 'const struct rpl_option *'
 xstrtol_error (enum strtol_error err,
Makefile:1822: recipe for target 'xstrtol-error.o' failed
make[2]: *** [xstrtol-error.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/mnt/clfs/sources/diffutils-3.6/lib'
Makefile:1577: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/mnt/clfs/sources/diffutils-3.6/lib'
Makefile:1337: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
Clfs-support mailing list

Reply via email to