"G. Branden Robinson" <[email protected]> writes:

> Congratulations on the release!

Thanks!

> I regret that I did not do an evaluation build of the pre-release,
> because I blundered into a compilation error.
>
> $ uname -mrs
> Linux 5.10.0-39-amd64 x86_64
> $ ./configure --prefix=$HOME && make
> ...

This is quite surprising. We (including myself) tested on GNU/Linux
systems around that age and much older.

> src/cut.c: In function 'cut_bytes':
> src/cut.c:815:13: error: implicit declaration of function 'fseterr' 
> [-Werror=implicit-function-declaration]
>   815 |             fseterr (stream);
>       |             ^~~~~~~
> src/cut.c:815:13: error: nested extern declaration of 'fseterr' 
> [-Werror=nested-externs]
> src/cut.c: In function 'cut_fields_bytesearch':
> src/cut.c:1057:23: error: implicit declaration of function 'mbbuf_topup' 
> [-Werror=implicit-function-declaration]
>  1057 |       idx_t n_avail = mbbuf_topup (&mbbuf);
>       |                       ^~~~~~~~~~~
> src/cut.c:1057:23: error: nested extern declaration of 'mbbuf_topup' 
> [-Werror=nested-externs]
> src/cut.c:1058:28: error: 'mbbuf_t' has no member named 'eof'
>  1058 |       search.at_eof = mbbuf.eof;
>       |                            ^
> src/cut.c:1106:15: error: implicit declaration of function 'mbbuf_advance' 
> [-Werror=implicit-function-declaration]
>  1106 |               mbbuf_advance (&mbbuf, n);
>       |               ^~~~~~~~~~~~~
> src/cut.c:1106:15: error: nested extern declaration of 'mbbuf_advance' 
> [-Werror=nested-externs]
> cc1: all warnings being treated as errors
> make[2]: *** [Makefile:13460: src/cut.o] Error 1
> make[2]: Leaving directory '/home/branden/src/GIT/coreutils'
> make[1]: *** [Makefile:24357: all-recursive] Error 1
> make[1]: Leaving directory '/home/branden/src/GIT/coreutils'
> make: *** [Makefile:9592: all] Error 2

I suspect you need to do something like this:

    $ git clean -xdf
    $ git submodule deinit --all --force
    $ ./bootstrap && ./configure && make

Specifically, I think your lib/mbbuf.{c,h} files are out of date. They
look like they are from before Pádraig's cut changes. If so that also
means Gnulib files are certainly outdated as well and may break things.

FWIW, I just built things fine in a Debian 10 Buster container.

Collin

Reply via email to