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