You are not logged in.

#1 2006-06-25 11:40:10

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

can't compile kernel 2.6.17 [SOLVED]

Since last major update I receive following error when trying to compile the new Kernel linux-2.6.17-ARCH.
I would like to apply a patch in order to use Parallels with the 2.6.17 kernel.
I have already reinstalled glibc.
I've also noticed /usr/include/linux and /usr/include/asm directories missing.

Gary


[root@matrix linux]# make menuconfig
  HOSTCC  scripts/basic/fixdep
In Datei, eingefügt von /usr/include/bits/posix1_lim.h:153,
                 von /usr/include/limits.h:145,
                 von /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h:122,
                 von /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/syslimits.h:7,                 von /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include/limits.h:11,
                 von scripts/basic/fixdep.c:113:
/usr/include/bits/local_lim.h:36:26: Fehler: linux/limits.h: Datei oder Verzeichnis nicht gefunden
In Datei, eingefügt von /usr/include/sys/socket.h:35,
                 von /usr/include/netinet/in.h:24,
                 von /usr/include/arpa/inet.h:23,
                 von scripts/basic/fixdep.c:115:
/usr/include/bits/socket.h:304:24: Fehler: asm/socket.h: Datei oder Verzeichnis nicht gefunden
scripts/basic/fixdep.c: In Funktion »use_config«:
scripts/basic/fixdep.c:204: Fehler: »PATH_MAX« nicht deklariert (erste Benutzung in dieser Funktion)
scripts/basic/fixdep.c:204: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal aufgeführt
scripts/basic/fixdep.c:204: Fehler: für jede Funktion in der er auftritt.)
scripts/basic/fixdep.c:204: Warnung: Variable »s« wird nicht verwendet
scripts/basic/fixdep.c: In Funktion »parse_dep_file«:
scripts/basic/fixdep.c:300: Fehler: »PATH_MAX« nicht deklariert (erste Benutzung in dieser Funktion)
scripts/basic/fixdep.c:300: Warnung: Variable »s« wird nicht verwendet
make[1]: *** [scripts/basic/fixdep] Fehler 1
make: *** [scripts_basic] Fehler 2

Offline

#2 2006-06-25 12:53:34

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: can't compile kernel 2.6.17 [SOLVED]

Obvious, and hopefully unnecessary, question - have you got the kernel source from kernel.org? Arch does not install the source.

Offline

#3 2006-06-25 14:13:53

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: can't compile kernel 2.6.17 [SOLVED]

No, I tried to compile what I've downloaded with pacman:

/usr/src/linux-2.6.17-ARCH

However, the other kernel sources don't work either:

linux-2.6.16-ARCH
linux-2.6.17-ck
linux-2.6.15-archck

Offline

#4 2006-06-25 15:11:39

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: can't compile kernel 2.6.17 [SOLVED]

As tomk said, the kernel packages don't contain the source. You'll need to download it from kernel.org.

Offline

#5 2006-06-25 16:05:10

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: can't compile kernel 2.6.17 [SOLVED]

I get the exact same error message when compiling source from kernel.org

Offline

#6 2006-06-25 17:03:02

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: can't compile kernel 2.6.17 [SOLVED]

Can you describe what you're doing? I've compiled 2.6.17 a few times here, with no problems.

Offline

#7 2006-06-25 17:22:32

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: can't compile kernel 2.6.17 [SOLVED]

sure:

# cd /usr/src
# tar --bzip2 -xvf linux-2.6.17.1.tar.bz2
# rm /usr/src/linux
# ln -s /usr/src/linux-2.6.17.1 /usr/src/linux
# cd linux
# make menuconfig

I believe this problem exists sich my last update.
Maybe its related to glibc.

Offline

#8 2006-06-26 10:25:30

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: can't compile kernel 2.6.17 [SOLVED]

Try reinstalling kernel-headers, if you forced a downgrade to 2.3.6 a while ago, the overwritten files aren't reinstalled after upgrading to 2.4 again.

Offline

#9 2006-06-26 21:11:32

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: can't compile kernel 2.6.17 [SOLVED]

That's it ...
It's working now.
Thanks

Gary

Offline

Board footer

Powered by FluxBB