I'm receiving this error after solving the other related with SIGSTKSZ. I'm using WSL Ubuntu 22.04 on Windows 10.
host-fakeroot 1.25.3 Building
PATH="/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/bin:/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.Ubuntu22.04LTS_2204.1.22.0_x64_79rhkp1fndgsc:/mnt/c/Program Files/Common Files/Oracle/Java/javapath:/mnt/c/windows/system32:/mnt/c/windows:/mnt/c/windows/System32/Wbem:/mnt/c/windows/System32/WindowsPowerShell/v1.0/:/mnt/c/windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/PuTTY/:/mnt/c/Program Files (x86)/Windows Kits/8.1/Windows Performance Toolkit/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/c/Users/juan/AppData/Local/Programs/Python/Python310/Scripts/:/mnt/c/Users/juan/AppData/Local/Programs/Python/Python310/:/mnt/c/Users/juan/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/juan_/AppData/Local/Programs/Microsoft VS Code/bin:/snap/bin" PKG_CONFIG="/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/lib/pkgconfig:/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/share/pkgconfig" /usr/bin/make -j17 -C /home/holoh/buildroot/imx8mp_build/build/buildroot/output/build/host-fakeroot-1.25.3/
make[1]: se entra en el directorio '/home/holoh/buildroot/imx8mp_build/build/buildroot/output/build/host-fakeroot-1.25.3'
/usr/bin/make all-recursive
make[2]: se entra en el directorio '/home/holoh/buildroot/imx8mp_build/build/buildroot/output/build/host-fakeroot-1.25.3'
Making all in doc
make[3]: se entra en el directorio '/home/holoh/buildroot/imx8mp_build/build/buildroot/output/build/host-fakeroot-1.25.3/doc'
make[3]: No se hace nada para 'all'.
make[3]: se sale del directorio '/home/holoh/buildroot/imx8mp_build/build/buildroot/output/build/host-fakeroot-1.25.3/doc'
Making all in scripts
make[3]: se entra en el directorio '/home/holoh/buildroot/imx8mp_build/build/buildroot/output/build/host-fakeroot-1.25.3/scripts'
sed -e 's,[@]prefix[@],/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host,g' -e 's,[@]bindir[@],/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/bin,g' -e 's,[@]libdir[@],/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/lib,g' -e 's,[@]fakeroot_transformed[@],'echo fakeroot | sed -e 's,x,x,'',g' -e 's,[@]faked_transformed[@],'echo faked | sed -e 's,x,x,'',g' -e 's,[@]signal[@],TERM,g' -e 's,[@]SHELL[@],/bin/bash,g' -e 's,[@]VERSION[@],1.25.3,g' -e 's,[@]DLSUFFIX[@],.so,g' -e 's,[@]LDLIBPATHVAR[@],LD_LIBRARY_PATH,g' -e 's,[@]LDPRELOADVAR[@],LD_PRELOAD,g' -e 's,[@]LDPRELOADABS[@],0,g' -e 's,[@]LDEXTRAVAR[@],,g' -e 's,[@]MACOSX_FALSE[@],,g' -e 's,[@]MACOSX_TRUE[@],#,g' < ./fakeroot.in > fakeroot
chmod +x fakeroot
make[3]: se sale del directorio '/home/holoh/buildroot/imx8mp_build/build/buildroot/output/build/host-fakeroot-1.25.3/scripts'
Making all in test
make[3]: se entra en el directorio '/home/holoh/buildroot/imx8mp_build/build/buildroot/output/build/host-fakeroot-1.25.3/test'
make[3]: No se hace nada para 'all'.
make[3]: se sale del directorio '/home/holoh/buildroot/imx8mp_build/build/buildroot/output/build/host-fakeroot-1.25.3/test'
make[3]: se entra en el directorio '/home/holoh/buildroot/imx8mp_build/build/buildroot/output/build/host-fakeroot-1.25.3'
awk -f ./wrapawk < ./wrapfunc.inp
awk -f ./wrapawk < ./wrapfunc.inp
awk -f ./wrapawk < ./wrapfunc.inp
/bin/bash ./libtool --tag=CC --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/include -O2 -I/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/include -c -o communicate.lo communicate.c
/bin/bash ./libtool --tag=CC --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/include -O2 -I/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/include -c -o libfakeroot_inode64.lo libfakeroot_inode64.c
/bin/bash ./libtool --tag=CC --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/include -O2 -I/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/include -c -o libfakeroot_unix2003.lo libfakeroot_unix2003.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/include -O2 -I/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/include -c -o faked.o faked.c
/usr/bin/gcc -DHAVE_CONFIG_H -I. -I/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/include -O2 -I/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/include -c -o simple.o simple.c
awk: awk: awk: ./wrapawk:./wrapawk:./wrapawk:27: 27: 27: aviso: aviso: regexp escape sequence \#' is not a known regexp operatorregexp escape sequence#' is not a known regexp operatoraviso:
regexp escape sequence `#' is not a known regexp operator
faked.c: In function ‘load_database’:
faked.c:658:21: warning: format ‘%llx’ expects argument of type ‘long long unsigned int ’, but argument 2 has type ‘uint64_t ’ {aka ‘long unsigned int *’} [-Wformat=]
658
faked.c:658:30: warning: format ‘%llu’ expects argument of type ‘long long unsigned int ’, but argument 3 has type ‘uint64_t ’ {aka ‘long unsigned int *’} [-Wformat=]
658
faked.c:658:40: warning: format ‘%llo’ expects argument of type ‘long long unsigned int ’, but argument 4 has type ‘uint64_t ’ {aka ‘long unsigned int *’} [-Wformat=]
658
faked.c:658:49: warning: format ‘%llu’ expects argument of type ‘long long unsigned int ’, but argument 5 has type ‘uint64_t ’ {aka ‘long unsigned int *’} [-Wformat=]
658
faked.c:658:58: warning: format ‘%llu’ expects argument of type ‘long long unsigned int ’, but argument 6 has type ‘uint64_t ’ {aka ‘long unsigned int *’} [-Wformat=]
658
faked.c:658:69: warning: format ‘%llu’ expects argument of type ‘long long unsigned int ’, but argument 7 has type ‘uint64_t ’ {aka ‘long unsigned int *’} [-Wformat=]
658
faked.c:658:79: warning: format ‘%llu’ expects argument of type ‘long long unsigned int ’, but argument 8 has type ‘uint64_t ’ {aka ‘long unsigned int *’} [-Wformat=]
658
faked.c: In function ‘debug_stat’:
faked.c:685:31: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘fake_dev_t’ {aka ‘long unsigned int’} [-Wformat=]
685
faked.c:685:36: warning: format ‘%lli’ expects argument of type ‘long long int’, but argument 4 has type ‘fake_ino_t’ {aka ‘long unsigned int’} [-Wformat=]
685
faked.c:685:85: warning: format ‘%lli’ expects argument of type ‘long long int’, but argument 9 has type ‘fake_dev_t’ {aka ‘long unsigned int’} [-Wformat=]
685
In file included from communicate.h:20,
from libfakeroot.c:60:
libfakeroot.c: In function ‘chown’:
libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)
99
^
libfakeroot.c:1277:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
1277
r=INT_NEXT_LSTAT(pathname, &st);
^~~~~~
libtool: link: /usr/bin/ar cru .libs/libmacosx.a .libs/libfakeroot_inode64.o .libs/libfakeroot_unix2003.o
libfakeroot.c: In function ‘rename’:
libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function)
100
^
libfakeroot.c:1307:5: note: in expansion of macro ‘INT_NEXT_LSTAT’
1307
r=INT_NEXT_LSTAT(newpath, &st);
^~~~~~
/usr/bin/ar: u' modifier ignored sinceD' is the default (see `U')
libfakeroot.c: In function ‘renameat’:
libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function)
102
^
libfakeroot.c:1780:5: note: in expansion of macro ‘INT_NEXT_FSTAT’
1780
r=INT_NEXT_FSTAT(fd, &st);
^~~~~~
libtool: link: /usr/bin/ranlib .libs/libmacosx.a
libfakeroot.c: In function ‘listxattr’:
libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)
99
^
libfakeroot.c:1906:5: note: in expansion of macro ‘INT_NEXT_FSTAT’
1906
r=INT_NEXT_FSTAT(fd, &st);
^~~~~~
libfakeroot.c: In function ‘fts_read’:
libfakeroot.c:2012:22: warning: passing argument 1 of ‘send_get_stat64’ from incompatible pointer type [-Wincompatible-pointer-types]
2012
SEND_GET_STAT64(r->fts_statp, _STAT_VER);
~^~~
struct stat *
libfakeroot.c:89:46: note: in definition of macro ‘SEND_GET_STAT64’
89
#define SEND_GET_STAT64(a,b) send_get_stat64(a)
^
In file included from libfakeroot.c:60:
communicate.h:209:44: note: expected ‘struct stat64 ’ but argument is of type ‘struct stat ’
209
extern void send_get_stat64(struct stat64 *buf);
~~~^~~
libfakeroot.c: In function ‘fts_children’:
libfakeroot.c:2035:24: warning: passing argument 1 of ‘send_get_stat64’ from incompatible pointer type [-Wincompatible-pointer-types]
2035
SEND_GET_STAT64(r->fts_statp, _STAT_VER);
~^~~
struct stat *
libfakeroot.c:89:46: note: in definition of macro ‘SEND_GET_STAT64’
89 | #define SEND_GET_STAT64(a,b) send_get_stat64(a)
| ^
In file included from libfakeroot.c:60:
communicate.h:209:44: note: expected ‘struct stat64 ’ but argument is of type ‘struct stat ’
209 | extern void send_get_stat64(struct stat64 *buf);
| ~~~^~~
In file included from communicate.h:20,
from libfakeroot.c:60:
libfakeroot.c: In function ‘statx’:
libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function)
102 | #define INT_NEXT_FSTATAT(a,b,c,d) NEXT_FSTATAT64(_STAT_VER,a,b,c,d)
| ^~~~~
fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’
15 | #define NEXT_FSTATAT64(a,b,c,d,e) next___fxstatat64(a,b,c,d,e)
| ^
libfakeroot.c:2473:5: note: in expansion of macro ‘INT_NEXT_FSTATAT’
2473 | r=INT_NEXT_FSTATAT(dirfd, path, &st, flags);
| ^~~~
make[3]: *** [Makefile:659: libfakeroot.lo] Error 1
I'm receiving this error after solving the other related with SIGSTKSZ. I'm using WSL Ubuntu 22.04 on Windows 10.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’ 9~~~~ libfakeroot.c:99:40: note: each undeclared identifier is reported only once for each function it appears in 99~~~~ fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’ 9~~~~ libfakeroot.c: In function ‘lchown’: libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function) 100~~~~ fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’ 13~~~~~ libtool: link: /usr/bin/gcc -O2 -I/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/include -Wl,-rpath -Wl,/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/lib -o simple simple.o -L/home/holoh/buildroot/imx8mp_build/build/buildroot/output/host/lib -ldl libfakeroot.c: In function ‘fchown’: libfakeroot.c:101:42: error: ‘_STAT_VER’ undeclared (first use in this function) 101~~~~ fakerootconfig.h:11:45: note: in definition of macro ‘NEXT_FSTAT64’ 11~~~~~ libfakeroot.c: In function ‘fchownat’: libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function) 102~~~~ fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’ 15~~~libfakeroot.c: In function ‘chmod’: libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function) 99~~~~ fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’ 9~~~~ libfakeroot.c: In function ‘lchmod’: libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function) 100~~~~ fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’ 13~~~~~ libfakeroot.c: In function ‘fchmod’: libfakeroot.c:101:42: error: ‘_STAT_VER’ undeclared (first use in this function) 101~~~~ fakerootconfig.h:11:45: note: in definition of macro ‘NEXT_FSTAT64’ 11~~~~~ libfakeroot.c: In function ‘fchmodat’: libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function) 102~~~~ fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’ 15~~~libfakeroot.c: In function ‘__xmknod’: libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function) 100~~~~ fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’ 13~~~~~ libfakeroot.c: In function ‘__xmknodat’: libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function) 102~~~~ fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’ 15~~~libfakeroot.c: In function ‘mkdir’: libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function) 99~~~~ fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’ 9~~~~ libfakeroot.c: In function ‘mkdirat’: libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function) 102~~~~ fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’ 15~~~libfakeroot.c: In function ‘unlink’: libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function) 100~~~~ fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’ 13~~~~~ libfakeroot.c: In function ‘unlinkat’: libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function) 102~~~~ fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’ 15~~~libfakeroot.c: In function ‘rmdir’: libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function) 100~~~~ fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’ 13~~~~~ libfakeroot.c: In function ‘remove’: libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function) 100~~~~ fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’ 13~~~~~ libtool: link: /usr/bin/ar cru .libs/libmacosx.a .libs/libfakeroot_inode64.o .libs/libfakeroot_unix2003.o libfakeroot.c: In function ‘rename’: libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function) 100~~~~ fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’ 13~~~~~ /usr/bin/ar:u' modifier ignored since
D' is the default (see `U') libfakeroot.c: In function ‘renameat’: libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function) 102~~~~ fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’ 15~~~libfakeroot.c: In function ‘setxattr’: libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function) 99~~~~ fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’ 9~~~~ libfakeroot.c: In function ‘lsetxattr’: libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function) 100~~~~ fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’ 13~~~~~ libfakeroot.c: In function ‘fsetxattr’: libfakeroot.c:101:42: error: ‘_STAT_VER’ undeclared (first use in this function) 101~~~~ fakerootconfig.h:11:45: note: in definition of macro ‘NEXT_FSTAT64’ 11~~~~~ libfakeroot.c: In function ‘getxattr’: libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function) 99~~~~ fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’ 9~~~~ libfakeroot.c: In function ‘lgetxattr’: libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function) 100~~~~ fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’ 13~~~~~ libfakeroot.c: In function ‘fgetxattr’: libfakeroot.c:101:42: error: ‘_STAT_VER’ undeclared (first use in this function) 101~~~~ fakerootconfig.h:11:45: note: in definition of macro ‘NEXT_FSTAT64’ 11~~~~~ libtool: link: /usr/bin/ranlib .libs/libmacosx.a libfakeroot.c: In function ‘listxattr’: libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function) 99~~~~ fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’ 9~~~~ libfakeroot.c: In function ‘llistxattr’: libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function) 100~~~~ fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’ 13~~~~~ libfakeroot.c: In function ‘flistxattr’: libfakeroot.c:101:42: error: ‘_STAT_VER’ undeclared (first use in this function) 101~~~~ fakerootconfig.h:11:45: note: in definition of macro ‘NEXT_FSTAT64’ 11~~~~~ libfakeroot.c: In function ‘removexattr’: libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function) 99~~~~ fakerootconfig.h:9:43: note: in definition of macro ‘NEXT_STAT64’ 9~~~~ libfakeroot.c: In function ‘lremovexattr’: libfakeroot.c:100:42: error: ‘_STAT_VER’ undeclared (first use in this function) 100~~~~ fakerootconfig.h:13:45: note: in definition of macro ‘NEXT_LSTAT64’ 13~~~~~ libfakeroot.c: In function ‘fremovexattr’: libfakeroot.c:101:42: error: ‘_STAT_VER’ undeclared (first use in this function) 101~~~~ fakerootconfig.h:11:45: note: in definition of macro ‘NEXT_FSTAT64’ 11~~~~~ libfakeroot.c: In function ‘fts_read’: libfakeroot.c:2012:22: warning: passing argument 1 of ‘send_get_stat64’ from incompatible pointer type [-Wincompatible-pointer-types] 2012~~~~~^~~ libfakeroot.c: In function ‘fts_children’: libfakeroot.c:2035:24: warning: passing argument 1 of ‘send_get_stat64’ from incompatible pointer type [-Wincompatible-pointer-types] 2035~~libfakeroot.c:89:46: note: in definition of macro ‘SEND_GET_STAT64’ 89 | #define SEND_GET_STAT64(a,b) send_get_stat64(a) | ^ In file included from libfakeroot.c:60: communicate.h:209:44: note: expected ‘struct stat64 ’ but argument is of type ‘struct stat ’ 209 | extern void send_get_stat64(struct stat64 *buf); |
~~~^~~ In file included from communicate.h:20, from libfakeroot.c:60: libfakeroot.c: In function ‘statx’: libfakeroot.c:102:50: error: ‘_STAT_VER’ undeclared (first use in this function) 102 | #define INT_NEXT_FSTATAT(a,b,c,d) NEXT_FSTATAT64(_STAT_VER,a,b,c,d) | ^~~~~ fakerootconfig.h:15:53: note: in definition of macro ‘NEXT_FSTATAT64’ 15 | #define NEXT_FSTATAT64(a,b,c,d,e) next___fxstatat64(a,b,c,d,e) | ^ libfakeroot.c:2473:5: note: in expansion of macro ‘INT_NEXT_FSTATAT’ 2473 | r=INT_NEXT_FSTATAT(dirfd, path, &st, flags); | ^~~~make[3]: *** [Makefile:659: libfakeroot.lo] Error 1