[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Build error for "env" when building from git
From: |
Erik Auerswald |
Subject: |
Build error for "env" when building from git |
Date: |
Sat, 3 Apr 2021 16:43:21 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Hi,
I have just tried to build coreutils from a git checkout, but the
build failed for "env":
--------8<--------
src/env.c:284:14: warning: implicit declaration of function 'xpalloc';
did you mean 'xcallo'? [-Wimplicit-function-declaration]
ss->argv = xpalloc (ss->argv, &ss->half_alloc, 1,
^~~~~~~
xcalloc
src/env.c:284:12: warning: assignment makes pointer from integer without
a cast [-Wint-conversion]
ss->argv = xpalloc (ss->argv, &ss->half_alloc, 1,
^
CCLD src/env
src/env.o: In function `splitbuf_grow':
/home/auerswald/work/coreutils-git/src/env.c:284: undefined reference to
`xpalloc'
collect2: error: ld returned 1 exit status
Makefile:8867: recipe for target 'src/env' failed
make[2]: *** [src/env] Error 1
-------->8--------
I have found "xpalloc" as a static function under the gnulib/ directory:
--------8<--------
$ nl gnulib/lib/dfa.c | grep -B1 'xpalloc (void'
684 static void *
685 xpalloc (void *pa, idx_t *nitems, idx_t nitems_incr_min,
-------->8--------
I did not see "xpalloc" on the gnulib module list at
https://www.gnu.org/software/gnulib/MODULES.html .
Could it be that some update of gnulib inside coreutils and perhaps
even gnulib itself (to export the "xpalloc" function) is required?
I assume that "git pull" is sufficient to update a working, i.e.,
bootstrapped, git checkout of coreutils, since neither HACKING nor
README-hacking imply otherwise. This git checkout did build when
I was working on the "pr" bug #46422.
Best regards,
Erik
- Build error for "env" when building from git,
Erik Auerswald <=