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.. |
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 |
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... |
Well, I got my 2.6.0 kernel compiled by making a symlink in /usr/include to /usr/src/linux/include/asm-generic.
Peace... |
Quote:
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 |
Quote:
Quote:
(I know, Readme are so boring... But reading them helps you avoid troubles before they even come out.) |
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.. |
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:
this one Quote:
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. |
Quote:
Still, it's a mystery to me why I had the symlink problems to begin with. :) Peace... |
All times are GMT -5. The time now is 10:04 PM. |