On Wed September 9 2009 5:39:41 pm David Haller wrote:
Hello,
On Wed, 09 Sep 2009, Richard wrote:
On Wed September 9 2009 2:53:29 pm you wrote:
Its seriously time to consider a do-over. Un-install the sources clean up the directories and start again.
ACK.
First, is /usr/src/<kernel source files> the right path?
No. Use /lib/modules/$(uname -r)/build/ which is a symlink to the right subdir under /usr/src/linux-obj.
2nd, given the directory structure, what would the correct link be AND where should the link go, eg, the directory to create the link in?
You don't make that link. 'make *config / make prepare' do that for you. And there's also other stuff done in these targets.
...and therin lies the problem: athelon:/usr/src/linux # uname -r 2.6.27.29-0.1-pae athelon:/usr/src/linux # athelon:~ # cd /usr/src athelon:/usr/src # ll total 152 drwxrwxrwx 2 500 500 4096 Jan 20 2002 buildkernel-1.06 -rwxrwxrwx 1 ricreig users 88976 Sep 8 20:53 buildkernel-1.06.tar.gz drwxrwxrwx 2 root root 4096 Sep 8 21:28 configs lrwxrwxrwx 1 root root 12 Sep 9 01:06 linux -> linux-2.6.30 drwxrwxrwx 24 root root 4096 Sep 8 23:07 linux-2.6.27.29-0.1 drwxrwxrwx 3 root root 4096 Aug 16 08:52 linux-2.6.27.29-0.1-obj drwxrwxrwx 3 root root 4096 Jul 24 02:38 linux-2.6.27.7-9-obj drwxrwxrwx 22 root root 4096 Sep 9 18:07 linux-2.6.30 drwxrwxrwx 3 root root 4096 Sep 8 22:49 linux-obj lrwxrwxrwx 1 root root 5 Sep 9 01:06 linux.ac -> linux drwxrwxrwx 7 root root 4096 Dec 9 2008 packages drwxrwxrwx 3 500 500 4096 Sep 16 2001 samlib-0.2 -rwxrwxrwx 1 ricreig users 18609 Sep 8 20:36 samlib-0.2.tar.gz drwxrwxrwx 3 root root 4096 Sep 8 21:28 source lrwxrwxrwx 1 root root 27 Sep 4 11:00 vboxdrv-3.0.4 -> /opt/VirtualBox/src/vboxdrv lrwxrwxrwx 1 root root 30 Sep 4 11:00 vboxnetadp-3.0.4 -> /opt/VirtualBox/src/vboxnetadp lrwxrwxrwx 1 root root 30 Sep 4 11:00 vboxnetflt-3.0.4 -> /opt/VirtualBox/src/vboxnetflt athelon:/usr/src # cd linux athelon:/usr/src/linux # make *config HOSTCC scripts/basic/fixdep In file included from /usr/include/sys/socket.h:40, from /usr/include/netinet/in.h:25, from /usr/include/arpa/inet.h:23, from scripts/basic/fixdep.c:117: /usr/include/bits/socket.h:334:24: error: asm/socket.h: No such file or directory make[1]: *** [scripts/basic/fixdep] Error 1 make: *** [scripts_basic] Error 2 athelon:/usr/src/linux # make config HOSTCC scripts/basic/fixdep In file included from /usr/include/sys/socket.h:40, from /usr/include/netinet/in.h:25, from /usr/include/arpa/inet.h:23, from scripts/basic/fixdep.c:117: /usr/include/bits/socket.h:334:24: error: asm/socket.h: No such file or directory make[1]: *** [scripts/basic/fixdep] Error 1 make: *** [scripts_basic] Error 2 athelon:/usr/src/linux # make prepare HOSTCC scripts/basic/fixdep In file included from /usr/include/sys/socket.h:40, from /usr/include/netinet/in.h:25, from /usr/include/arpa/inet.h:23, from scripts/basic/fixdep.c:117: /usr/include/bits/socket.h:334:24: error: asm/socket.h: No such file or directory make[2]: *** [scripts/basic/fixdep] Error 1 make[1]: *** [scripts_basic] Error 2 make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop. athelon:/usr/src/linux #
All that should be in any howto about compiling a 2.6 kernel.
Yes, that's the way it works in 10.3, which works. In 11.1, it doesn't....even after a reinstall of all the packages. Thanks, Richard
-dnh
-- It is traditional, when loading wire trolleys, to put the most fragile items at the bottom. -- Terry Pratchett, Reaper Man
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org