You are not logged in.

#1 2005-07-04 08:24:43

zolookas
Member
Registered: 2005-06-03
Posts: 44

Kernel compiling

I think i need kernel headers. Can someone specify location from where i can download it for arch linux? I have tried pacman -S kernel-headers.

[root@arch linux-2.6.12.2]# make menuconfig
  HOSTCC  scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:153,
                 from /usr/include/limits.h:144,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/limits.h:122,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/syslimits.h:7,
                 from /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/include/limits.h:11,
                 from scripts/basic/fixdep.c:113:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/sys/socket.h:35,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/arpa/inet.h:23,
                 from scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:304:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:201: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:201: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:201: error: for each function it appears in.)
scripts/basic/fixdep.c:201: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:297: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:297: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
[root@arch linux-2.6.12.2]#

Offline

#2 2005-07-04 08:28:58

dtw
Forum Fellow
From: London, UK
Registered: 2004-08-03
Posts: 4,428
Website

Re: Kernel compiling

if you are trying to compile the kernel?  how are you doing it at the moment?

Offline

#3 2005-07-04 08:31:30

zolookas
Member
Registered: 2005-06-03
Posts: 44

Re: Kernel compiling

dibblethewrecker wrote:

if you are trying to compile the kernel?  how are you doing it at the moment?

tar xvjf linux-2.6.12.2.tar.bz2
cd linux-2.6.12.2
make menuconfig
<errors here>

Offline

#4 2005-07-04 10:03:36

zolookas
Member
Registered: 2005-06-03
Posts: 44

Re: Kernel compiling

So where can i get kernel-headers?

Offline

#5 2005-07-04 12:51:03

Karma XXL
Member
From: Budapest, Hungary
Registered: 2005-06-13
Posts: 91

Re: Kernel compiling

Reinstall glibc.


Ailen:
Kernel: Linux 2.6.14-rc4-ck1 #1 PREEMPT
Built on: Mon Oct 17 14:51:37 CEST 2005
Hardware: Mobile AMD Sempron(tm) Processor 2800+ AuthenticAMD
WM: E17 snapshot 20051016

Offline

#6 2005-07-04 14:37:28

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Kernel compiling

A kernel compile from a complete tar.gz/bz2 of the kernel includes the kernel headers appropriate.

You have made a configuration error of some sort which is causing the kernel to fail compiling, I suggest you wipe your config and grab the Arch one from abs and *slowly* and *carefully* cull what you dont need, keeping what you arent sure about.

Offline

#7 2005-07-04 16:01:16

Karma XXL
Member
From: Budapest, Hungary
Registered: 2005-06-13
Posts: 91

Re: Kernel compiling

iphitus wrote:

A kernel compile from a complete tar.gz/bz2 of the kernel includes the kernel headers appropriate.

You have made a configuration error of some sort which is causing the kernel to fail compiling, I suggest you wipe your config and grab the Arch one from abs and *slowly* and *carefully* cull what you dont need, keeping what you arent sure about.

We have solved the problem on MSN. It was filesystem-related - the /usr/include/linux and /usr/include/asm directories were unreachable. After an fsck.jfs and some rm-ing, then reinstalling glibc fixed it (so was I told).


Ailen:
Kernel: Linux 2.6.14-rc4-ck1 #1 PREEMPT
Built on: Mon Oct 17 14:51:37 CEST 2005
Hardware: Mobile AMD Sempron(tm) Processor 2800+ AuthenticAMD
WM: E17 snapshot 20051016

Offline

Board footer

Powered by FluxBB