When I try, I get this error:
>>> emerge sys-apps/portage-2.0.13 to /
>>> Unpacking source...
>>> Source unpacked.
In file included from /usr/include/errno.h:36,
/usr/include/bits/errno.h:25:26: linux/errno.h: No such file or directory
In file included from /usr/include/bits/posix1_lim.h:126,
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
sandbox.c: In function `main':
sandbox.c:343: `PATH_MAX' undeclared (first use in this function)
sandbox.c:343: (Each undeclared identifier is reported only once
sandbox.c:343: for each function it appears in.)
sandbox.c:452: `ENOENT' undeclared (first use in this function)
sandbox.c:460: `EACCES' undeclared (first use in this function)
make: *** [sandbox] Error 1
It looks like you removed your linux-headers?
I did, in fact, remove them. I version I had was for the 2.4.18 kernel but I am
uisng the 2.4.19 kernel. However, there does not appear to be a kernel-sources
ebuild for 2.4.19. Does that kernel just use the same headers as 2.4.19 then?
Installing the linux-headers ebuild solved the problem.