Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 4942

Summary: I can no longer upgrade Portage!
Product: Gentoo Linux Reporter: Antonio D'souza <gentoo>
Component: New packagesAssignee: Daniel Robbins (RETIRED) <drobbins>
Severity: normal CC: gentoo
Priority: High    
Version: 1.2   
Hardware: x86   
OS: Linux   
Package list:
Runtime testing required: ---

Description Antonio D'souza 2002-07-13 06:03:09 UTC
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, 
                 from tbz2tool.c:5: 
/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, 
                 from /usr/include/limits.h:144, 
                 from sandbox.c:24: 
/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
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-07-13 12:22:02 UTC
It looks like you removed your linux-headers?
Comment 2 Antonio D'souza 2002-07-13 16:24:27 UTC
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?
Comment 3 Antonio D'souza 2003-01-07 11:52:47 UTC
Installing the linux-headers ebuild solved the problem.