View Single Post

   
  #4 (permalink)  
Old 02-20-2008, 07:03 PM
Petri Kaukasoina
 
Posts: n/a
Default Re: Which file in which package defines ENOMEM?

Nate Bargmann <n0nb@networksplus.net> wrote:
>Okay, here is the content of that file:
>
>#ifndef _I386_ERRNO_H
>#define _I386_ERRNO_H
>
>#include <asm-generic/errno.h>
>
>#endif


That's not correct.

Try:
ls -ld /usr/include/linux /usr/include/asm-i386 /usr/include/asm

It should output something like this:

lrwxrwxrwx 1 root root 8 Jan 30 2006 /usr/include/asm -> asm-i386
drwxr-xr-x 2 root root 4096 Apr 4 2005 /usr/include/asm-i386
drwxr-xr-x 14 root root 12288 Jun 6 2005 /usr/include/linux

asm-i386 and linux are directories and asm is a link to asm-i386

On the other hand, this would not be correct:

lrwxrwxrwx 1 root root 31 Sep 22 14:39 /usr/include/asm -> /usr/src/linux/include/asm-i386
lrwxrwxrwx 1 root root 31 Sep 22 14:39 /usr/include/linux -> /usr/src/linux/include/linux

where asm and linux are links to kernel source. If you have that then remove
the links:

rm /usr/include/asm /usr/include/linux

and after that (or in any case) get the correct kernel-headers package
(kernel-headers-2.4.31-i386-1.tgz) from the cdrom or from any slackware
mirror site and reinstall it:

upgradepkg --reinstall --install-new kernel-headers-2.4.31-i386-1.tgz
Reply With Quote