Hi listmates, Can anyone tell me what this means? # make oldconfig 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 I am trying to compile kernel 2.6.30 source obtained from openSuSE. I have downloaded and installed all the compilers, etc., that are suggested in the Package list 'Kernel Development' as well as the normal stuff in the Basic Development package. I am currently on a 11.1 machine with the latest updates (that I am aware of ). TIA Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
At Wed, 9 Sep 2009 03:17:08 -0400, Richard wrote:
/usr/include/bits/socket.h:334:24: error: asm/socket.h: No such file or directory
This means your installed kernel sources are broken (incomplete). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed September 9 2009 4:13:58 am Heinz Diehl wrote:
At Wed, 9 Sep 2009 03:17:08 -0400, Richard wrote:
/usr/include/bits/socket.h:334:24: error: asm/socket.h: No such file or directory
This means your installed kernel sources are broken (incomplete).
... which seems strange because I downloaded/installed from download.opensuse.org using both zypper and Yast2 (at different times) and also another test from kernels.org, I think it was. I get the same error from all of them. Stuff is in /usr/src/<kernel version>, where it was put by the downloaded RPMs. I also downloaded the SYMs and debug info. I reinstalled all of the gcc* and other stuff in the basic development pattern and ensured that bin86, gcc, gcc43...etc, all worked individually. No 'makefile <arg>' works, from a simple 'make' to any of the 'make *config' variants work, all ending with the 'error: asm....' as above. I just can't think of what part of kernel sources might be missing and why. TIA Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, Sep 9, 2009 at 09:20, Richard<ricreig@gmail.com> wrote:
On Wed September 9 2009 4:13:58 am Heinz Diehl wrote:
At Wed, 9 Sep 2009 03:17:08 -0400, Richard wrote:
/usr/include/bits/socket.h:334:24: error: asm/socket.h: No such file or directory
This means your installed kernel sources are broken (incomplete). ... which seems strange because I downloaded/installed from download.opensuse.org using both zypper and Yast2 (at different times) and also another test from kernels.org, I think it was. I get the same error from all of them. Stuff is in /usr/src/<kernel version>, where it was put by the downloaded RPMs. I also downloaded the SYMs and debug info. I reinstalled all of the gcc* and other stuff in the basic development pattern and ensured that bin86, gcc, gcc43...etc, all worked individually. No 'makefile <arg>' works, from a simple 'make' to any of the 'make *config' variants work, all ending with the 'error: asm....' as above. I just can't think of what part of kernel sources might be missing and why.
TIA Richard -- Two things before getting to your problem. 1 - please hit your enter/return key round about the 80 character mark. It makes your posts easier to read. 2 - your .sig separator should be 2 dashes, a space then return ('-- ').
In the include directory, you will find various 'asm-xxx' directories. Try making a sym link to the one you are compiling for e.g. ln -s ../asm-alpha ../asm This might or might not work. I haven't needed to compile a kernel in the last 3 years so I'm not to scratch with this stuff. HTH ne... -- Registered Linux User # 125653 (http://counter.li.org) Now accepting personal mail for GMail invites. Samuel Goldwyn - "I'm willing to admit that I may not always be right, but I am never wrong." - http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed September 9 2009 4:34:38 am ne... wrote:
On Wed, Sep 9, 2009 at 09:20, Richard<ricreig@gmail.com> wrote:
On Wed September 9 2009 4:13:58 am Heinz Diehl wrote:
At Wed, 9 Sep 2009 03:17:08 -0400, Richard wrote:
/usr/include/bits/socket.h:334:24: error: asm/socket.h: No such file or directory
This means your installed kernel sources are broken (incomplete).
<snip>
In the include directory, you will find various 'asm-xxx' directories. Try making a sym link to the one you are compiling for e.g. ln -s ../asm-alpha ../asm
This might or might not work. I haven't needed to compile a kernel in the last 3 years so I'm not to scratch with this stuff.
Thanks for the hint, but no combination of links would work. I put 'ln -s ../asm-generic ../asm in ... /bin /usr/bin /usr/src/<kernel I was trying to build>/ /usr/src/<kernel I was trying to build>/include /usr/src/<kernel I was trying to build>/include/asm-generic ...and a few others ...replaced '../asm-generic' with the name of the assembler ... 'ln -s /usr/bin/as86 ./asm' and variations of that theme Unfortunately, the error message was the same with all tries. No difference. I tried with 4 other kernel source directories, one of which was created by extracting from a *.tgz tarball. Nada, still the *exact* same error message when using 'make <anything>' I'm stumped, but I thank you for your responses. --- TIA Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Richard wrote:
On Wed September 9 2009 4:34:38 am ne... wrote:
On Wed, Sep 9, 2009 at 09:20, Richard<ricreig@gmail.com> wrote:
On Wed September 9 2009 4:13:58 am Heinz Diehl wrote:
At Wed, 9 Sep 2009 03:17:08 -0400, Richard wrote:
/usr/include/bits/socket.h:334:24: error: asm/socket.h: No such file or directory This means your installed kernel sources are broken (incomplete).
<snip>
In the include directory, you will find various 'asm-xxx' directories. Try making a sym link to the one you are compiling for e.g. ln -s ../asm-alpha ../asm
This might or might not work. I haven't needed to compile a kernel in the last 3 years so I'm not to scratch with this stuff.
Thanks for the hint, but no combination of links would work. I put 'ln -s ../asm-generic ../asm in ...
/bin /usr/bin /usr/src/<kernel I was trying to build>/ /usr/src/<kernel I was trying to build>/include /usr/src/<kernel I was trying to build>/include/asm-generic ...and a few others
...replaced '../asm-generic' with the name of the assembler ... 'ln -s /usr/bin/as86 ./asm' and variations of that theme
Unfortunately, the error message was the same with all tries. No difference.
I tried with 4 other kernel source directories, one of which was created by extracting from a *.tgz tarball. Nada, still the *exact* same error message when using 'make <anything>'
I'm stumped, but I thank you for your responses.
--- TIA Richard
Ok, so you are in total thrash mode here, putting links all over the place where they don't belong. Its seriously time to consider a do-over. Un-install the sources clean up the directories and start again. Have you checked your "sys" environmental thingie? the message: /usr/include/bits/socket.h:334:24: error: asm/socket.h: seems to suggest its looking for a asm subdirectory in /usr/include/bits/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed September 9 2009 2:53:29 pm you wrote:
Richard wrote:
On Wed September 9 2009 4:34:38 am ne... wrote:
On Wed, Sep 9, 2009 at 09:20, Richard<ricreig@gmail.com> wrote:
On Wed September 9 2009 4:13:58 am Heinz Diehl wrote:
At Wed, 9 Sep 2009 03:17:08 -0400, Richard wrote:
/usr/include/bits/socket.h:334:24: error: asm/socket.h: No such file or directory This means your installed kernel sources are broken (incomplete).
<snip>
In the include directory, you will find various 'asm-xxx' directories. Try making a sym link to the one you are compiling for e.g. ln -s ../asm-alpha ../asm
This might or might not work. I haven't needed to compile a kernel in the last 3 years so I'm not to scratch with this stuff.
Thanks for the hint, but no combination of links would work. I put 'ln -s ../asm-generic ../asm in ...
/bin /usr/bin /usr/src/<kernel I was trying to build>/ /usr/src/<kernel I was trying to build>/include /usr/src/<kernel I was trying to build>/include/asm-generic ...and a few others
...replaced '../asm-generic' with the name of the assembler ... 'ln -s /usr/bin/as86 ./asm' and variations of that theme
Unfortunately, the error message was the same with all tries. No difference.
I tried with 4 other kernel source directories, one of which was created by extracting from a *.tgz tarball. Nada, still the *exact* same error message when using 'make <anything>'
I'm stumped, but I thank you for your responses.
--- TIA Richard
Thanks for the reply John,
Ok, so you are in total thrash mode here, putting links all over the place where they don't belong.
I removed each link after trying and receiving the failure. Either the link is being put in the wrong place, or the link I was trying to create was pointing to the wrong thing :(
Its seriously time to consider a do-over. Un-install the sources clean up the directories and start again.
First, is /usr/src/<kernel source files> the right path? 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?
Have you checked your "sys" environmental thingie? the message: /usr/include/bits/socket.h:334:24: error: asm/socket.h: seems to suggest its looking for a asm subdirectory in /usr/include/bits/
contents of /usr/src/linux ---> ptr to lrwxrwxrwx 1 root root 12 2009-09-09 01:06 linux -> linux-2.6.30 drwxrwxrwx 24 root root 4096 2009-06-09 23:05 arch drwxrwxrwx 2 root root 4096 2009-06-09 23:05 block -rwxrwxrwx 1 root root 18693 2009-06-09 23:05 COPYING -rwxrwxrwx 1 root root 93847 2009-06-09 23:05 CREDITS drwxrwxrwx 3 root root 4096 2009-06-09 23:05 crypto drwxrwxrwx 83 root root 12288 2009-06-09 23:05 Documentation drwxrwxrwx 84 root root 4096 2009-06-09 23:05 drivers drwxrwxrwx 33 root root 4096 2009-06-09 23:05 firmware drwxrwxrwx 70 root root 4096 2009-06-09 23:05 fs drwxrwxrwx 20 root root 4096 2009-09-09 05:12 include drwxrwxrwx 2 root root 4096 2009-06-09 23:05 init drwxrwxrwx 2 root root 4096 2009-06-09 23:05 ipc -rwxrwxrwx 1 root root 2430 2009-06-09 23:05 Kbuild drwxrwxrwx 6 root root 4096 2009-06-09 23:05 kernel drwxrwxrwx 6 root root 4096 2009-06-09 23:05 lib -rwxrwxrwx 1 root root 148271 2009-06-09 23:05 MAINTAINERS -rwxrwxrwx 1 root root 55126 2009-06-09 23:05 Makefile -rwxrwxrwx 1 root root 55126 2009-06-09 23:05 Makefile.bkorig drwxrwxrwx 2 root root 4096 2009-06-09 23:05 mm drwxrwxrwx 47 root root 4096 2009-06-09 23:05 net -rwxrwxrwx 1 root root 17080 2009-06-09 23:05 README -rwxrwxrwx 1 root root 3172 2009-06-09 23:05 REPORTING-BUGS drwxrwxrwx 7 root root 4096 2009-06-09 23:05 samples drwxrwxrwx 12 root root 4096 2009-06-09 23:05 scripts drwxrwxrwx 7 root root 4096 2009-06-09 23:05 security drwxrwxrwx 21 root root 4096 2009-06-09 23:05 sound drwxrwxrwx 2 root root 4096 2009-06-09 23:05 usr drwxrwxrwx 3 root root 4096 2009-06-09 23:05 virt I don't see a /asm/ directory anywhere? I tried to find */asm/* with no results searching the entire 2.5TB on my raid as well as all of / (root) and NFS mounts. I have an assembler 'bin86' installed which supplies /bin/as86. I also have yasm installed which provides /bin/yasm. I can successfully compile stuff on my 10.3 machine but this was the first time I have tried on the 11.1 machine in my other room. As I want to upgrade the 10.3 machine soon, and as it has a 'Rocket Raid' controller, not supported directly by SuSE, I have to recompile it's driver and do a modprobe to install it, then a mkinitd to include it when I reboot. Without that module, I lose half of my 2.5 TB disk space. That machine has 9 drives on it, 4 on the RR controller and 5 on the MBd controller, 4 IDE and 1 SATA. Has worked well for years. I wanted to get another controller and expand my bedroom computer to 2.5TB from 1.0TB it has now. The RR controller works really well and if I can compile the driver, I will do the upgrade. Compiling the kernel is optional, but it gives me a chance to remove support for devices and other unneeded features. I normally start off with a 'make oldconfig' to get a file that has all the working options, then I can go through it and zap/change things and then compile the kernel, install it as an alternate, for testing, and if it works the way I want, then I can insert the RR driver and mkinitd it so when I reboot, if I have the new RR controller, my 2nd raidd will be online by the time it finishes rebooting, and with the smaller, but still funtional kernel. I just tried to 'make' a couple of small projects....all end with the same error. Removing the sources doesn't seem to be the answer. I just am at a loss as to *why* make wants to do anything with asm.sockets in the first place BEFORE doing anything other than creating a copy of the old configs in the existing kernel. It won't even do a 'make clean' without the error. I have tried to reinstall ALL software by reloading the RPMs and forceing the install and replacing whatever files it perceives as already installed. --- TIA Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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. All that should be in any howto about compiling a 2.6 kernel. -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
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
Hello, On Wed, 09 Sep 2009, Richard wrote:
On Wed September 9 2009 5:39:41 pm David Haller wrote: athelon:/usr/src/linux # make *config
That should have been a 'make cloneconfig' or 'make oldconfig' or 'make menuconfig'. [..]
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
As you get that (see your other mail) also after 'make oldconfig prepare', I think that might be /usr/include/asm. Please show a ls -ld /usr/include/asm* You should have the 'asm', as that's linked in the postinstall scriptlet of linux-kernel-headers, and you've got that package installed. -dnh -- Well I wish you'd just tell me rather than try to engage my enthusiasm. -- Marvin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thanks for the reply David, ... On Thu September 10 2009 12:21:07 pm David Haller wrote:
Hello,
On Wed, 09 Sep 2009, Richard wrote:
On Wed September 9 2009 5:39:41 pm David Haller wrote: athelon:/usr/src/linux # make *config
That should have been a 'make cloneconfig' or 'make oldconfig' or 'make menuconfig'.
Yes, that is what I tried, the "*" in the above was saying I tried all the varients of "<*>config", eg, 'clone', 'old', etc. Sorry I wasn't clear.
[..]
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
As you get that (see your other mail) also after 'make oldconfig prepare', I think that might be /usr/include/asm. Please show a
ls -ld /usr/include/asm*
ricreig@athelon:~> ls -ld /usr/include/asm* lrwxrwxrwx 1 root root 26 2009-09-09 01:05 /usr/include/asm -> /usr/src/linux/include/asm drwxr-xr-x 2 root root 4096 2009-08-20 05:28 /usr/include/asm-arm drwxr-xr-x 2 root root 4096 2009-08-20 05:29 /usr/include/asm-generic drwxr-xr-x 2 root root 4096 2009-08-20 05:29 /usr/include/asm-ia64 drwxr-xr-x 2 root root 4096 2009-08-20 05:29 /usr/include/asm-parisc drwxr-xr-x 2 root root 4096 2009-08-20 05:29 /usr/include/asm-powerpc drwxr-xr-x 2 root root 4096 2009-08-20 05:28 /usr/include/asm-s390 drwxr-xr-x 2 root root 4096 2009-08-20 05:29 /usr/include/asm-x86 ricreig@athelon:~>
You should have the 'asm', as that's linked in the postinstall scriptlet of linux-kernel-headers, and you've got that package installed.
-dnh
Yes, that's why I'm so flustered. As far as I know, this machine is essentially configured the same as my 10.3 machine, which works. I routinely compile Kernels and drivers on that machine, but as I wanted to upgrade the 10.3 machines to 11.1 or higher, I figured I needed to ensure I could compile Kernels and driver modules (which I need absolutely due to an erstwhile unsupported hardware raid controller on my main (now 10.3) raid server which has 9 drives on it, 4 of which are a software raid using my old IDE drives and the rest are SATA drives on the controller card. Both of the machines (the 10.3 and this 11.1) are using the same MBd and both have 4G of memory and a minimum of 450W Power supply and UPSs for the "Florida Bump and Light" power requirements. They also have gigabit network connections up to (but not through) the cable modem box. I have an 8 port SMC router connecting my equipment and all ports are in use so I may have to get a larger (ports) SMC. The 10.3 and this one both run 24x7 and except for hurricanes, I never reboot the 10.3 and only rarely reboot the 11.1 in my bedroom. The other machines also run 24x7 and I don't reboot them either. One has been up since Hurricane Charlie some years back. I am truly at a loss as to why this 11.1 machine won't compile stuff. I have upgraded it and reinstalled all packages, upgrading where they were available. I always "upgrade" even existing packages by forcing replacement of files. I only started to try to do compiles recently so never ran into this problem before on this machine. Any ideas are most welcome. --- Thanks In Advance - eg TIA Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello, On Thu, 10 Sep 2009, Richard wrote:
On Thu September 10 2009 12:21:07 pm David Haller wrote:
On Wed, 09 Sep 2009, Richard wrote:
On Wed September 9 2009 5:39:41 pm David Haller wrote: athelon:/usr/src/linux # make *config
That should have been a 'make cloneconfig' or 'make oldconfig' or 'make menuconfig'.
Yes, that is what I tried, the "*" in the above was saying I tried all the varients of "<*>config", eg, 'clone', 'old', etc. Sorry I wasn't clear.
Ah. Ok. I suggest 'make cloneconfig', that get's the config of the running kernel out of /proc/config.gz.
ricreig@athelon:~> ls -ld /usr/include/asm* lrwxrwxrwx 1 root root 26 2009-09-09 01:05 /usr/include/asm -> /usr/src/linux/include/asm
Ok, that's why. There's two symlinks used: /usr/src/linux-obj/$ARCH/$TYPE/include/asm -> asm-x86 and /usr/src/linux-obj/$ARCH/$TYPE/include2/asm -> ../../../../linux-$VERSION/include/asm-x86 but there's _no_ symlink /usr/src/linux/include/asm, i.e. your link in /usr/include also points to nothing. So: remove /usr/include/asm and symlink the correct /usr/include/asm-$ARCH HTH, -dnh -- I believe the technical term is "Oops!" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David Haller wrote:
Hello,
On Thu, 10 Sep 2009, Richard wrote:
On Thu September 10 2009 12:21:07 pm David Haller wrote:
On Wed, 09 Sep 2009, Richard wrote:
On Wed September 9 2009 5:39:41 pm David Haller wrote: athelon:/usr/src/linux # make *config That should have been a 'make cloneconfig' or 'make oldconfig' or 'make menuconfig'.
Yes, that is what I tried, the "*" in the above was saying I tried all the varients of "<*>config", eg, 'clone', 'old', etc. Sorry I wasn't clear.
Ah. Ok. I suggest 'make cloneconfig', that get's the config of the running kernel out of /proc/config.gz.
ricreig@athelon:~> ls -ld /usr/include/asm* lrwxrwxrwx 1 root root 26 2009-09-09 01:05 /usr/include/asm -> /usr/src/linux/include/asm
Ok, that's why.
There's two symlinks used:
/usr/src/linux-obj/$ARCH/$TYPE/include/asm -> asm-x86 and /usr/src/linux-obj/$ARCH/$TYPE/include2/asm -> ../../../../linux-$VERSION/include/asm-x86
but there's _no_ symlink /usr/src/linux/include/asm, i.e. your link in /usr/include also points to nothing.
So: remove /usr/include/asm and symlink the correct /usr/include/asm-$ARCH
But he should NOT be creating these symlinks. The make process will take care of that as long as he has $ARCH and $TYPE set. People should never have to run around making symlinks in distributed source. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu September 10 2009 6:18:02 pm John Andersen wrote:
David Haller wrote:
Hello,
On Thu, 10 Sep 2009, Richard wrote:
On Thu September 10 2009 12:21:07 pm David Haller wrote: <snip> Ok, that's why.
There's two symlinks used:
/usr/src/linux-obj/$ARCH/$TYPE/include/asm -> asm-x86 and /usr/src/linux-obj/$ARCH/$TYPE/include2/asm -> ../../../../linux-$VERSION/include/asm-x86
but there's _no_ symlink /usr/src/linux/include/asm, i.e. your link in /usr/include also points to nothing.
So: remove /usr/include/asm and symlink the correct /usr/include/asm-$ARCH
But he should NOT be creating these symlinks.
I didn't create those symlinks, something else did. I don't know what or when, but I didn't make any symlinks except for the ones I tried per a previous suggestion, and when they failed, I removed them. The one(s) mentioned By David were there, put there by something else. Until he suggested to look in that directory, I had no clue they were even there, however they *looked* reasonable so I left them alone as I knew I hadn't made them myself.
The make process will take care of that as long as he has $ARCH and $TYPE set. People should never have to run around making symlinks in distributed source.
Never on any machine have I had to set any environ variables, and I have NOT set $ARCH or $TYPE. I am not even sure where the best place to define them would be nor what they should contain. I am using AMD-64 (2 x 32 cores) and use 32bit versions of SuSE rather than the 64bit which still has too many problems though getting better. Do you have a suggestion? Remember when I first starated this, I started with 'make clean proper' then tried the 'make cloneconfig' and others but ALL of them created the error message BEFORE I started applying the suggestions (including symlinks which I had never had to do before). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello, On Thu, 10 Sep 2009, Richard wrote: [..]
David Haller wrote: [..]
There's two symlinks used:
/usr/src/linux-obj/$ARCH/$TYPE/include/asm -> asm-x86 and /usr/src/linux-obj/$ARCH/$TYPE/include2/asm -> ../../../../linux-$VERSION/include/asm-x86 [..] Never on any machine have I had to set any environ variables, and I have NOT set $ARCH or $TYPE.
They're not ENV-Variables, just placeholders here, to replaced by the arch and kernel-type (default, pae, xen, ...) chosen by you. And you should not need to do anything about those.
I am using AMD-64 (2 x 32 cores)
That's actually wrong. "Bitness" has nothing to do with the number of cores. You can have 1 to many 32bit cores or 1 to many 64bit cores ... If you're using a Athlon X2 / Phenom X2, you have two 64bit cores.
and use 32bit versions of SuSE rather than the 64bit which still has too many problems though getting better. Do you have a suggestion?
For you (using 32bit SUSE on AMD64), it'll be the same as for me: x86. That means: rpm -Vf /usr/include/asm-x86 && \ rm /usr/include/asm && \ ln -s asm-x86 /usr/include/asm Then, cleanup your linux-obj (again) and try again. -dnh --
From a syslog: ISAKMP (0:16): deleting SA reason "He's expired! He's lost his perch! He's an ex-parrot!" state (R) QM_IDLE -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello, On Thu, 10 Sep 2009, John Andersen wrote:
David Haller wrote:
So: remove /usr/include/asm and symlink the correct /usr/include/asm-$ARCH
But he should NOT be creating these symlinks.
The make process will take care of that as long as he has $ARCH and $TYPE set. People should never have to run around making symlinks in distributed source.
It won't. You confuse /usr/include/asm with /usr/src/linux-obj/$ARCH/$TYPE/include2/asm and /usr/src/linux/include/asm The 'make' inside the kernel-source will never change /usr/include/asm! And, as long as you use an obj-dir, you'll never get a correct asm-symlink in /usr/src/linux/include (it is created in linux-obj!). The alternative to my suggestion would be to remove /usr/include/asm and (remove and) reinstall linux-kernel-headers. And as long as you're removing the symlink, you can set the correct one as well, I think. Have you looked at 'rpm -q --scripts linux-kernel-headers'? That postinstall scriptlet is written in a way, so that /usr/include/asm is not changed if it points to /usr/src/linux/include/asm. I think. And I think that is right and decent that way, because the script should assume, that someone creating such a link knows what he's doing. And BTW: I prefer my /usr/include/asm (and /usr/include/linux) pointing to the correct include/asm (/linux) of my current "mainly" running kernel[1]. Which should be the one I've got the matching linux-kernel-headers package installed. So, the symlink /usr/include/asm should point to [/usr/include/]asm-$ARCH (belonging to the -headers RPM). -dnh [1] old discussion. It's a matter of when incompatibilities are discovered via compiler / runtime warnings/errors. BTW: SUSE now uses a "hybrid" of the former positions, which were: a) /usr/include/{asm,linux,scsi} should directories, containing the kernel-headers the glibc was compiled against b) /usr/include/{asm,linux,scsi} should be symlinks, pointing to the headers of the current (mainly running) kernel Each has it's pros and cons. openSUSE uses: b2) an extra header package for the current "main" / "stable" kernel to be installed. And symlinked to in the %postinstall scriptlet. -- "True multitasking is being able to type and pet the cat in your lap at the same time" [S. McAndrewSmith] -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed September 9 2009 9:55:50 pm Rajko M. wrote: On Thu September 10 2009 10:22:42 pm David Haller wrote: On Thu, 10 Sep 2009, John Andersen wrote:
asm-symlink in /usr/src/linux/include (it is created in linux-obj!).
The alternative to my suggestion would be to remove /usr/include/asm
<snip>
[1] old discussion. It's a matter of when incompatibilities are discovered via compiler / runtime warnings/errors. BTW: SUSE now uses a "hybrid" of the former positions, which were: a) /usr/include/{asm,linux,scsi} should directories, containing the kernel-headers the glibc was compiled against b) /usr/include/{asm,linux,scsi} should be symlinks, pointing to the headers of the current (mainly running) kernel Each has it's pros and cons. openSUSE uses:
b2) an extra header package for the current "main" / "stable" kernel to be installed. And symlinked to in the %postinstall scriptlet.
Thank you all, esp. Greg Freemyer John Andersen David Haller Rajko M. A combination of all of your suggestions solved the issue. =================================================================== athelon:/usr/src/linux-2.6.27.29-0.1 # make clean CLEAN /usr/src/linux-2.6.27.29-0.1 CLEAN .tmp_versions athelon:/usr/src/linux-2.6.27.29-0.1 # make mrproper CLEAN scripts/basic CLEAN scripts/kconfig CLEAN include/config CLEAN .config .config.old include/asm include/linux/autoconf.h include/linux/version.h include/linux/utsrelease.h athelon:/usr/src/linux-2.6.27.29-0.1 # make cloneconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/basic/hash HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/kxgettext.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf Cloning configuration file /proc/config.gz # # configuration written to .config # athelon:/usr/src/linux-2.6.27.29-0.1 # ls -l include/asm ls: cannot access include/asm: No such file or directory #expected athelon:/usr/src/linux-2.6.27.29-0.1 # make prepare scripts/kconfig/conf -s arch/x86/Kconfig CHK include/linux/version.h UPD include/linux/version.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 CC kernel/bounds.s GEN include/linux/bounds.h CC arch/x86/kernel/asm-offsets.s GEN include/asm/asm-offsets.h CALL scripts/checksyscalls.sh athelon:/usr/src/linux-2.6.27.29-0.1 # ls -l include/asm lrwxrwxrwx 1 root root 7 2009-09-11 00:37 include/asm -> asm-x86 # works athelon:/usr/src/linux-2.6.27.29-0.1 # ====================================================================== The rest of the compile seemed to work. Now I'll give the latest kernel a shot. FWIW, I went through ALL of /etc and /usr/src and /usr/include, etc, and removed ALL links that in any way appeared to be associated with compiling or the assembler, writing them down in case I didn't get them back. Then I reinstalled everything from Devel patterns in Yast and also Kernel devel, even though I had already done that several times. That was to put back any installable links the packages might provide. Now it works the way it did in 10.3 so I can just sit fat-dumb-happy (still stupid because at my age, learning is no longer possible) (say happy birthday to me, I turned 66 :) ) --- Thank you Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 09 September 2009 20:46:35 Richard wrote:
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
Above is correct link.
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
But above is wrong. linux-obj should point to linux-2.6.30-obj directory, not to be a directory. Check that linux-obj contain build environment for linux-2.6.30 and if yes, change directory name to linux-2.6.30-obj, but taking that you get errors it is probably not the case. If not remove directory and install kernel-<flavor>-devel package for 2.6.30 and it will create correct symlink. Although, I would recommend to use the latest kernel from http://download.opensuse.org/factory/repo/oss . It has, as usually, few more bugs solved. But, also check where point links /lib/modules/2.6.27.29-0.1-pae/build and /lib/modules/2.6.27.29-0.1-pae/sources (for my current kernel). Here, openSUSE 11.1: build -> /usr/src/linux-2.6.27.29-0.1-obj/i386/pae source -> /usr/src/linux-2.6.27.29-0.1 That is what scripts for building modules will look for, unless you provide sources manually. The kernel compilation should not look for them. BTW, when my Nvidia module compilation failed the Nvidia script was looking for /lib/modules/`uname -r`/build , but that link was pointing to nothing. After installing kernel-syms that pulled in kernel-desktop-devel that link was OK, and compilation succeeded. In the meantime I checked content of kernel-desktop-devel package and it really contained symlink to linux-<version>-obj directory and that directory (and some /boot files), so you don't really need kernel-syms, but just kernel devel package for the kernel flavor that you want to use. -- Regards, Rajko People of openSUSE editor. Latest interviews: http://news.opensuse.org/category/people-of-opensuse/ About us: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
ne... wrote:
In the include directory, you will find various 'asm-xxx' directories. Try making a sym link to the one you are compiling for e.g. ln -s ../asm-alpha ../asm
Anytime someone recommends doing this you know right away they are on the wrong track. You should never run around making symlinks in the source tree. You might accidentally make it work, but its still wrong. Its not done that way. ARCH environmental may be wrong (or may exist when it need not). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed September 9 2009 3:06:07 pm John Andersen wrote:
ne... wrote:
In the include directory, you will find various 'asm-xxx' directories. Try making a sym link to the one you are compiling for e.g. ln -s ../asm-alpha ../asm
Anytime someone recommends doing this you know right away they are on the wrong track.
You should never run around making symlinks in the source tree. You might accidentally make it work, but its still wrong. Its not done that way. ARCH environmental may be wrong (or may exist when it need not).
Well, after trying each 'ln -s ...', if it didn't work, I removed the link and tried again with different directory combinations, and replacing the target/source with other 'logical' replacements, like using the names of the directories in /include that began with 'asm-*' and replacing the 'asm' with the /bin/<name of assembler> which in my case is 'as86' with 'yasm' available. I also tried to compile code from my 10.3 machine (a raid controller card driver module) that compiles perfectly on that machine. I get the same error even with a 'make clean' or 'make oldconfig' or even just 'make'. What would you suggest as an alternative to creating links? --- TIA Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 09 September 2009 02:17:08 Richard wrote:
Hi listmates,
Can anyone tell me what this means?
# make oldconfig 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
I am trying to compile kernel 2.6.30 source obtained from openSuSE. I have downloaded and installed all the compilers, etc., that are suggested in the Package list 'Kernel Development' as well as the normal stuff in the Basic Development package.
I am currently on a 11.1 machine with the latest updates (that I am aware of ).
TIA Richard
Install kernel-syms package. Not sure for 2.6.30 source, but 2.6.31 has /usr/src/linux-obj/ directory needed for kernel module compilation in above package. Compiling Nvidia kernel module is standard practice when you run Factory, and 'make oldconfig prepare' didn't work (you can list all make targets in one command). Knowing from error that something is wrong with linux-obj I looked in /usr/src and there was none. On opensuse-kernel list was mentioned before that they plan to take /linux-obj from sources, so that people don't have to install 100+ MB just to compile one module, I knew that time has come, but I didn't know where to look. I asked on opensuse IRC and they told me to install kernel-syms which solved problem. (I could look with YaST Software Management, check Provides, and put above path in search too, but IRC spoils people). -- Regards, Rajko People of openSUSE editor. Last interviews: http://news.opensuse.org/category/people-of-opensuse/ About us: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed September 9 2009 9:55:50 pm Rajko M. wrote:
On Wednesday 09 September 2009 02:17:08 Richard wrote:
Hi listmates,
Can anyone tell me what this means?
# make oldconfig 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
I am trying to compile kernel 2.6.30 source obtained from openSuSE. I have downloaded and installed all the compilers, etc., that are suggested in the Package list 'Kernel Development' as well as the normal stuff in the Basic Development package.
I am currently on a 11.1 machine with the latest updates (that I am aware of ).
TIA Richard
Install kernel-syms package. Not sure for 2.6.30 source, but 2.6.31 has /usr/src/linux-obj/ directory needed for kernel module compilation in above package.
Compiling Nvidia kernel module is standard practice when you run Factory, and 'make oldconfig prepare' didn't work (you can list all make targets in one command). Knowing from error that something is wrong with linux-obj I looked in /usr/src and there was none. On opensuse-kernel list was mentioned before that they plan to take /linux-obj from sources, so that people don't have to install 100+ MB just to compile one module, I knew that time has come, but I didn't know where to look.
I asked on opensuse IRC and they told me to install kernel-syms which solved problem. (I could look with YaST Software Management, check Provides, and put above path in search too, but IRC spoils people).
-- Regards, Rajko
Thankyou Rajko. I already had the SYMS installed... athelon:~ # uname -r 2.6.27.29-0.1-pae athelon:~ # rpm -qa | grep kernel kernel-debug-base-2.6.27.29-0.1.1 kernel-pae-extra-2.6.27.29-0.1.1 nfs-kernel-server-1.1.3-18.2.1 kernel-source-2.6.27.29-0.1.1 kernel-syms-2.6.27.29-0.1.1 <----- Syms installed and agree with kernel ver. linux-kernel-headers-2.6.27-2.28 kernel-pae-2.6.27.29-0.1.1 kernel-source-debuginfo-2.6.27.7-9.1 kernel-docs-2.6.3-3.13.46 kernel-debug-extra-2.6.27.29-0.1.1 kernel-pae-base-2.6.27.29-0.1.1 kernel-debug-2.6.27.29-0.1.1 athelon:~ # cd /usr/src athelon:/usr/src # ls buildkernel-1.06 linux linux-2.6.27.7-9-obj linux.ac samlib-0.2.tar.gz vboxnetadp-3.0.4 buildkernel-1.06.tar.gz linux-2.6.27.29-0.1 linux-2.6.30 packages source vboxnetflt-3.0.4 configs linux-2.6.27.29-0.1-obj linux-obj samlib-0.2 vboxdrv-3.0.4 athelon:/usr/src # cd linux-2.6.27.29-0.1 athelon:/usr/src/linux-2.6.27.29-0.1 # make oldconfig 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: *** [oldconfig] Error 2 athelon:/usr/src/linux-2.6.27.29-0.1 # S.O.S. :( I appreciate the hints. Other than compiling, literally everything on this machine WORKS. I did force an update of ALL installed packages, several times in fact. --- TIA Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 09 September 2009 21:09:33 Richard wrote:
On Wed September 9 2009 9:55:50 pm Rajko M. wrote:
On Wednesday 09 September 2009 02:17:08 Richard wrote:
Hi listmates,
Can anyone tell me what this means?
# make oldconfig 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
I am trying to compile kernel 2.6.30 source obtained from openSuSE. I have downloaded and installed all the compilers, etc., that are suggested in the Package list 'Kernel Development' as well as the normal stuff in the Basic Development package.
I am currently on a 11.1 machine with the latest updates (that I am aware of ).
TIA Richard
Install kernel-syms package. Not sure for 2.6.30 source, but 2.6.31 has /usr/src/linux-obj/ directory needed for kernel module compilation in above package.
Compiling Nvidia kernel module is standard practice when you run Factory, and 'make oldconfig prepare' didn't work (you can list all make targets in one command). Knowing from error that something is wrong with linux-obj I looked in /usr/src and there was none. On opensuse-kernel list was mentioned before that they plan to take /linux-obj from sources, so that people don't have to install 100+ MB just to compile one module, I knew that time has come, but I didn't know where to look.
I asked on opensuse IRC and they told me to install kernel-syms which solved problem. (I could look with YaST Software Management, check Provides, and put above path in search too, but IRC spoils people).
Thankyou Rajko. I already had the SYMS installed...
athelon:~ # uname -r 2.6.27.29-0.1-pae athelon:~ # rpm -qa | grep kernel kernel-debug-base-2.6.27.29-0.1.1 kernel-pae-extra-2.6.27.29-0.1.1 nfs-kernel-server-1.1.3-18.2.1 kernel-source-2.6.27.29-0.1.1 kernel-syms-2.6.27.29-0.1.1 <----- Syms installed and agree with kernel ver. linux-kernel-headers-2.6.27-2.28 kernel-pae-2.6.27.29-0.1.1 kernel-source-debuginfo-2.6.27.7-9.1 kernel-docs-2.6.3-3.13.46 kernel-debug-extra-2.6.27.29-0.1.1 kernel-pae-base-2.6.27.29-0.1.1 kernel-debug-2.6.27.29-0.1.1 athelon:~ # cd /usr/src athelon:/usr/src # ls buildkernel-1.06 linux linux-2.6.27.7-9-obj linux.ac samlib-0.2.tar.gz vboxnetadp-3.0.4 buildkernel-1.06.tar.gz linux-2.6.27.29-0.1 linux-2.6.30 packages source vboxnetflt-3.0.4 configs linux-2.6.27.29-0.1-obj linux-obj samlib-0.2 vboxdrv-3.0.4
athelon:/usr/src # cd linux-2.6.27.29-0.1
athelon:/usr/src/linux-2.6.27.29-0.1 # make oldconfig 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: *** [oldconfig] Error 2 athelon:/usr/src/linux-2.6.27.29-0.1 #
S.O.S. :( I appreciate the hints. Other than compiling, literally everything on this machine WORKS. I did force an update of ALL installed packages, several times in fact.
--- TIAally Richard
Actually it could be kernel-...-devel package for your 2.6.30 kernel, that is missing. It is not kernel-devel for current 11.1 kernel, but the version that you want to compile. Advice to install kernel-syms seems to be a bit overkill, as it pulled in all -devel packages for all kernel flavors that exist in Factory. (Of course I could check that, before, but I'm busy with my M7 installation.) HTH -- Regards, Rajko People of openSUSE editor. Last interviews: http://news.opensuse.org/category/people-of-opensuse/ About us: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 09 September 2009 21:09:33 Richard wrote: ... I see further conversation about symlinks, so my fast response last night, wasn't clear.
kernel-pae-extra-2.6.27.29-0.1.1 nfs-kernel-server-1.1.3-18.2.1 kernel-source-2.6.27.29-0.1.1 kernel-syms-2.6.27.29-0.1.1 <----- Syms installed and agree
Not that version. You need kernel-syms 2.6.30, or 2.6.31, whatever is kernel version that you plan to use. Kernel-syms for 2.6.27 will not pull kernel -devel packages as in 2.6.27 source code contains linux-obj files, and kerenel devel packages don't exist. Kernel devs moved linux-obj to separate package somewhere during Milestones, as you have 2.6.30 you need the same version kernel-<flavor>-devel package. Where <flavor> is desktop, default, xen etc. The advice to use kernel-syms was most probably shortcut that will pull in all flavors kernel development packages and solve my compilation problem in any case. -- Regards, Rajko People of openSUSE editor. Latest interviews: http://news.opensuse.org/category/people-of-opensuse/ About us: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu September 10 2009 8:04:39 pm Rajko M. wrote:
On Wednesday 09 September 2009 21:09:33 Richard wrote: ... I see further conversation about symlinks, so my fast response last night, wasn't clear.
kernel-pae-extra-2.6.27.29-0.1.1 nfs-kernel-server-1.1.3-18.2.1 kernel-source-2.6.27.29-0.1.1 kernel-syms-2.6.27.29-0.1.1 <----- Syms installed and agree
Not that version. You need kernel-syms 2.6.30, or 2.6.31, whatever is kernel version that you plan to use.
Kernel-syms for 2.6.27 will not pull kernel -devel packages as in 2.6.27 source code contains linux-obj files, and kerenel devel packages don't exist.
Kernel devs moved linux-obj to separate package somewhere during Milestones, as you have 2.6.30 you need the same version kernel-<flavor>-devel package. Where <flavor> is desktop, default, xen etc. <snip> Regards, Rajko
kernel-source-2.6.27.29-0.1.1 kernel-syms-2.6.27.29-0.1.1 <----- Syms installed and agree 2.6.27.29.0.1.1 ... and *still* got the same error. While I wanted to compile 2.6.30 originally, I had given up for the moment and was simply trying to get the currently running kernel compiled
However Rajko, when I ran that last test, I *was* trying to compile figureing that IF I could get a sucessful compile, THEN I could go back to 2.6.30 again. On my 10.3 machine, I have NEVER had to set environment variables OR make symlinks or any such to compile either kernels or the device drivers. So, initially, I only had the source for .30 in an RPM (initially) and installed it via zypper and later from a *.tgz. When it didn't work, I switched to the current src version via YAST and pulled in the SYMs at the same time. Same error. That was when I cried 'HELP' here in the forum. Only then did I try the creation of symlinks (but removed each when it didn't change anything). Yes, I'm confused, probably scatterbrained, (and definitately stupid), but I was following a previously good scenerio copied from my notes from sucesssful compilations on my 10.3 machines. I do appreciate the help and suggestions, but so far, no-go. --- Richard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
David Haller
-
Heinz Diehl
-
John Andersen
-
ne...
-
Rajko M.
-
Richard