LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-22-2003, 02:48 PM   #1
Obscure
Member
 
Registered: Apr 2003
Location: Milan
Distribution: Slackware 10 / FreeBSD 5.3
Posts: 175

Rep: Reputation: 32
2.6.0 compiling error


I got this error on my slack 9.0 compiling 2.6 stable after make mrproper:

#make xconfig
HOSTCC scripts/fixdep
SHIPPED scripts/kconfig/zconf.tab.h
HOSTCC scripts/kconfig/conf.o
sed < scripts/kconfig/lkc_proto.h > scripts/kconfig/lkc_defs.h 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
HOSTCC scripts/kconfig/kconfig_load.o
HOSTCC scripts/kconfig/mconf.o
In file included from /usr/include/linux/errno.h:4,
from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from scripts/kconfig/mconf.c:12:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
scripts/kconfig/mconf.c: In function `exec_conf':
scripts/kconfig/mconf.c:243: `EINTR' undeclared (first use in this function)
scripts/kconfig/mconf.c:243: (Each undeclared identifier is reported only once
scripts/kconfig/mconf.c:243: for each function it appears in.)
scripts/kconfig/mconf.c:243: `EAGAIN' undeclared (first use in this function)
make[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [xconfig] Error 2

..Same launching gconfig or menuconfig..
I got qt, gtk and ncurses lib installed...

Before kernel compilation I did this operation:

rm -rf /usr/src/linux/include/asm /usr/include/asm
rm -rf /usr/include/linux /usr/include/scsi
ln -s /usr/src/linux/include/asm-i386/ /usr/src/linux/include/asm
ln -s /usr/src/linux/include/asm-i386/ /usr/include/asm
ln -s /usr/src/linux/include/linux/ /usr/include/linux
ln -s /usr/src/linux/include/scsi/ /usr/include/scsi


What goes wrong??
Tnx VM for help..
 
Old 12-22-2003, 04:35 PM   #2
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 530

Rep: Reputation: 30
Are you logged into Xterminal?
If yes....
I cannot understand why you removed/symlinked those files.
Just configure the kernel as necessary according to your hardware configuration and build the compressed kernel.
Make mrproper is necessary if you already have compiled the kernel at least once and removal of unnecessary/confusionary building files is required.
My suggestion is you go straight to /usr/src/linux.... and from there you compile your kernel per "readme file".
Please also note module_init_tools are required to correctly compile the modules.
Install and run the script before kernel compiling.
Slack 9.0 differently from 9.1 doesn't support the new tools by default

Ciao
facci sapere come andata
 
Old 12-22-2003, 09:16 PM   #3
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
I'm getting the same problems finding headers and I did this:

root@c71414-a:/usr/src# ls -l
total 40
-rw-r--r-- 1 root root 358 May 28 2001 README.reiserfs.diff
lrwxrwxrwx 1 root root 12 Dec 22 19:08 linux -> linux-2.4.23
drwxr-xr-x 3 root root 4096 Mar 30 2001 linux-2.2.19
drwxr-xr-x 14 tom root 4096 Sep 1 20:51 linux-2.4.20
drwxr-xr-x 15 tom root 4096 Sep 1 21:25 linux-2.4.22
drwxr-xr-x 15 tom root 4096 Sep 28 13:01 linux-2.4.22-ac4
drwxr-xr-x 15 tom root 4096 Nov 28 23:02 linux-2.4.23
drwxr-xr-x 14 root root 4096 May 26 2001 linux-2.4.5
-rw-r--r-- 1 root root 315 May 28 2001 linux-2.4.5.reiserfs.diff.gz
drwxr-xr-x 18 tom root 4096 Dec 17 18:59 linux-2.6.0
drwxr-xr-x 7 root root 4096 May 29 2001 rpm
root@c71414-a:/usr/src# rm -f linux
root@c71414-a:/usr/src# ls -l
total 40
-rw-r--r-- 1 root root 358 May 28 2001 README.reiserfs.diff
drwxr-xr-x 3 root root 4096 Mar 30 2001 linux-2.2.19
drwxr-xr-x 14 tom root 4096 Sep 1 20:51 linux-2.4.20
drwxr-xr-x 15 tom root 4096 Sep 1 21:25 linux-2.4.22
drwxr-xr-x 15 tom root 4096 Sep 28 13:01 linux-2.4.22-ac4
drwxr-xr-x 15 tom root 4096 Nov 28 23:02 linux-2.4.23
drwxr-xr-x 14 root root 4096 May 26 2001 linux-2.4.5
-rw-r--r-- 1 root root 315 May 28 2001 linux-2.4.5.reiserfs.diff.gz
drwxr-xr-x 18 tom root 4096 Dec 17 18:59 linux-2.6.0
drwxr-xr-x 7 root root 4096 May 29 2001 rpm
root@c71414-a:/usr/src# ln -s linux-2.6.0 linux
root@c71414-a:/usr/src# cd linux
root@c71414-a:/usr/src/linux# make mrproper
CLEAN scripts/kconfig
CLEAN scripts
RM $(CLEAN_FILES)
Making mrproper in the srctree
RM $(MRPROPER_DIRS) + $(MRPROPER_FILES)
root@c71414-a:/usr/src/linux# make menuconfig
HOSTCC scripts/fixdep
In file included from /usr/include/netinet/in.h:212,
from scripts/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts/fixdep] Error 2
root@c71414-a:/usr/src/linux# make gconfig
HOSTCC scripts/fixdep
In file included from /usr/include/netinet/in.h:212,
from scripts/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts/fixdep] Error 2
root@c71414-a:/usr/src/linux#

This procedure I've used to build the 2.4 kernels, so I don't know what's going on with the 2.6.0 kernel build. I can manually make ths

/usr/src/linux/include/asm-i386 /usr/src/linux/include/asm

link, but the I get the "asm-generic" message the original poster receives.

What am I missing here? Should I be running the kernel build in linux-2.6.0 _before_ I create the symlink from /usr/src/linux to /usr/src/linux-2.6.0?

Thanks....

Peace...
 
Old 12-22-2003, 11:55 PM   #4
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Well, I got my 2.6.0 kernel compiled by making a symlink in /usr/include to /usr/src/linux/include/asm-generic.

Peace...
 
Old 12-23-2003, 05:40 AM   #5
Obscure
Member
 
Registered: Apr 2003
Location: Milan
Distribution: Slackware 10 / FreeBSD 5.3
Posts: 175

Original Poster
Rep: Reputation: 32
Quote:
Originally posted by urka58
Are you logged into Xterminal?
If yes....
I cannot understand why you removed/symlinked those files.
Just configure the kernel as necessary according to your hardware configuration and build the compressed kernel.
Make mrproper is necessary if you already have compiled the kernel at least once and removal of unnecessary/confusionary building files is required.
My suggestion is you go straight to /usr/src/linux.... and from there you compile your kernel per "readme file".
Please also note module_init_tools are required to correctly compile the modules.
Install and run the script before kernel compiling.
Slack 9.0 differently from 9.1 doesn't support the new tools by default

Ciao
facci sapere come andata
Tnx VM 4 help!!
The removed/symlinked are the necessary links that must be exist if you recompile the kernel (http://mrshark.sourceforge.net/)
I've recompiled many kernels and if you don't do this removal/symlink you will recive an error making modules..
Maybe on 2.6 is different...but I tried to compile it just before done this operation and I recived the same make config error..

module_init_tool are not installed...
I got the modutils-2.4.22-i382-1 installed...
I think this is my problem...
I will try...

Tnx Again

Last edited by Obscure; 12-23-2003 at 05:46 AM.
 
Old 12-23-2003, 05:56 AM   #6
kc00l
Member
 
Registered: Oct 2003
Location: France/Italy
Distribution: Slackware Current
Posts: 83

Rep: Reputation: 15
Quote:
Originally posted by Obscure
Tnx VM 4 help!!
The removed/symlinked are the necessary links that must be exist if you recompile the kernel (http://mrshark.sourceforge.net/)
I've recompiled many kernels and if you don't do this removal/symlink you will recive an error making modules..
Maybe on 2.6 is different...but I tried to compile it just before done this operation and I recived the same make config error..

module_init_tool are not installed...
I got the modutils-2.4.22-i382-1 installed...
I think this is my problem...
I will try...

Tnx Again
Yes, that's the problem. Remember to read linux-2.6.0/Documentation/Changes:

Quote:
From linux-2.6.0/Documentation/Changes:

Current Minimal Requirements
============================

Upgrade to at *least* these software revisions before thinking you've
encountered a bug! If you're unsure what version you're currently
running, the suggested command should tell you.

Again, keep in mind that this list assumes you are already
functionally running a Linux 2.4 kernel. Also, not all tools are
necessary on all systems; obviously, if you don't have any PCMCIA (PC
Card) hardware, for example, you probably needn't concern yourself
with pcmcia-cs.

o Gnu C 2.95.3 # gcc --version
o Gnu make 3.78 # make --version
o binutils 2.12 # ld -v
o util-linux 2.10o # fdformat --version
o module-init-tools 0.9.10 # depmod -V
o e2fsprogs 1.29 # tune2fs
o jfsutils 1.1.3 # fsck.jfs -V
o reiserfsprogs 3.6.3 # reiserfsck -V 2>&1|grep reiserfsprogs
o xfsprogs 2.1.0 # xfs_db -V
o pcmcia-cs 3.1.21 # cardmgr -V
o quota-tools 3.09 # quota -V
o PPP 2.4.0 # pppd --version
o isdn4k-utils 3.1pre1 # isdnctrl 2>&1|grep version
o nfs-utils 1.0.5 # showmount --version
o procps 3.1.13 # ps --version
o oprofile 0.5.3 # oprofiled --version
Lo so, che barba leggere i Readme... Ma evita i problemi prima che nascano.

(I know, Readme are so boring... But reading them helps you avoid troubles before they even come out.)
 
Old 12-23-2003, 03:30 PM   #7
Obscure
Member
 
Registered: Apr 2003
Location: Milan
Distribution: Slackware 10 / FreeBSD 5.3
Posts: 175

Original Poster
Rep: Reputation: 32
I resolved my problem and kernel is now compiled...but.....the problem wasn't module_init_tool
Installing it, I got the same problem...
I resolved doing a symlink ln -s /usr/src/linux/include/ /usr/include..

After all the kernel is now working correctly...
Tnx To All..
 
Old 12-24-2003, 05:11 AM   #8
kc00l
Member
 
Registered: Oct 2003
Location: France/Italy
Distribution: Slackware Current
Posts: 83

Rep: Reputation: 15
Lots of people are reporting the same error and solving it by making the same symlinks...
I don't understand... I've never had those errors in any of my kernel compiling sessions and never bother changing/making symlinks to the /usr/include directory... This really fails me.

And why do you say:
Quote:
The removed/symlinked are the necessary links that must be exist if you recompile the kernel
Ok, I see you followed the guide from the website you posted a link of...
this one

Quote:
mv linux linux-2.2.14
ln -s linux-2.2.14 linux
rm -rf /usr/src/linux/include/asm /usr/include/asm
rm -rf /usr/include/linux /usr/include/scsi
ln -s /usr/src/linux/include/asm-i386/ /usr/src/linux/include/asm
ln -s /usr/src/linux/include/asm-i386/ /usr/include/asm
ln -s /usr/src/linux/include/linux/ /usr/include/linux
ln -s /usr/src/linux/include/scsi/ /usr/include/scsi
I've never seen such a procedure... maybe it was necessary for old kernels...
Don't believe in the first guide you read on the internet, always read official kernel README, Documentation/Changes, and TLDP Howtos.
I mean, there's even italian versions of those. And moreover we have a wonderful kernel compiling guide from DaOne in this very forum

Sorry, if I was a bit rude... Mi dispiace, davvero.

Merry Xmas.




Last edited by kc00l; 12-24-2003 at 05:24 AM.
 
Old 12-24-2003, 09:53 AM   #9
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally posted by kc00l
Lots of people are reporting the same error and solving it by making the same symlinks...
I don't understand... I've never had those errors in any of my kernel compiling sessions and never bother changing/making symlinks to the /usr/include directory... This really fails me.
I understand what you mean, but I've posted the output of what I did above so you can see there was a problem. One thing that has been fairly consistent with my kernel builds has been I've been living in the 2.4 "world" ever since I installed Slackware 8 on my system. That came with 2.4.5 and I've been upgrading from that up to 2.4.23. The 2.6.0 kernel has been the first non-2.4 kernel I've installed on my system so that might explain the problems I had, at least.

Still, it's a mystery to me why I had the symlink problems to begin with.

Peace...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while Compiling X shashir Linux - Software 1 09-03-2005 06:36 PM
[C++] Compiling error Ossar Programming 2 06-10-2005 03:32 PM
compiling error demmylls Linux - General 15 12-29-2003 12:31 AM
help with compiling error matt_w_lambert Linux From Scratch 2 09-13-2003 12:31 PM
Compiling Error!! teeno Programming 3 08-20-2001 03:16 AM


All times are GMT -5. The time now is 09:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration