[opensuse-packaging] Package RDAC kernel module
Hi,
I'm packaging the RDAC (http://www.lsi.com/rdac/ds4000.html) module for
different versions of suse in the OBS.
(http://build.opensuse.org/package/show?package=rdac&project=home%3Aleo_eraly)
I made my spec file according to the Novell Guidelines but the build fails
with the following error
gcc -D__KERNEL__ -I/lib/modules/2.6.16.46-0.7-xen/build/include
mppLnx26_spinlock_size.c -o mppLnx_Spinlock_Size
In file included from mppLnx26_spinlock_size.c:46:
/usr/include/linux/version.h:2:2: error: #error
"======================================================="
/usr/include/linux/version.h:3:2: error: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: error: #error "files directly for the
compilation of kernel modules."
/usr/include/linux/version.h:5:2: error: #error ""
/usr/include/linux/version.h:6:2: error: #error "glibc now uses kernel
header files from a well-defined"
/usr/include/linux/version.h:7:2: error: #error "working kernel version
(as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: error: #error "These files are glibc
internal and may not match the"
/usr/include/linux/version.h:9:2: error: #error "currently running
kernel. They should only be"
/usr/include/linux/version.h:10:2: error: #error "included via other
system header files - user space"
/usr/include/linux/version.h:11:2: error: #error "programs should not
directly include
On Mon, Aug 06, Leo Eraly wrote:
gcc -D__KERNEL__ -I/lib/modules/2.6.16.46-0.7-xen/build/include mppLnx26_spinlock_size.c -o mppLnx_Spinlock_Size
...
What is the correct way to solve this more permanent? Submit a patch upstream? Fix the package ? .... ?
Fix the broken userspace application that wants to include kernel headers. This isn't a problem with the kernel but with your package sources. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Jan Blunck wrote:
On Mon, Aug 06, Leo Eraly wrote:
gcc -D__KERNEL__ -I/lib/modules/2.6.16.46-0.7-xen/build/include mppLnx26_spinlock_size.c -o mppLnx_Spinlock_Size
...
What is the correct way to solve this more permanent? Submit a patch upstream? Fix the package ? .... ?
Fix the broken userspace application that wants to include kernel headers. This isn't a problem with the kernel but with your package sources.
Thx! Modifiying the mppLnx26_spinlock_size.c did the trick for the userland utility but the build of the kernel module fails because scsi/scsi_request.h was removed from the kernel in SP1. Again something upstream needs to fix. Kind regards, Leo -- Leo Eraly <leo at unstable dot be> --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tue, Aug 07, Leo Eraly wrote:
Jan Blunck wrote:
gcc -D__KERNEL__ -I/lib/modules/2.6.16.46-0.7-xen/build/include mppLnx26_spinlock_size.c -o mppLnx_Spinlock_Size ... What is the correct way to solve this more permanent? Submit a patch upstream? Fix the package ? .... ? Fix the broken userspace application that wants to include kernel
On Mon, Aug 06, Leo Eraly wrote: headers. This isn't a problem with the kernel but with your package sources.
Thx! Modifiying the mppLnx26_spinlock_size.c did the trick for the userland utility but the build of the kernel module fails because scsi/scsi_request.h was removed from the kernel in SP1.
Again something upstream needs to fix.
No. Again this is an issue of the driver.
Commit: beb40487508290f5d6565598c60a3f44261beef2
Author: Christoph Hellwig
Jan Blunck wrote:
On Tue, Aug 07, Leo Eraly wrote:
Jan Blunck wrote:
gcc -D__KERNEL__ -I/lib/modules/2.6.16.46-0.7-xen/build/include mppLnx26_spinlock_size.c -o mppLnx_Spinlock_Size ... What is the correct way to solve this more permanent? Submit a patch upstream? Fix the package ? .... ? Fix the broken userspace application that wants to include kernel
On Mon, Aug 06, Leo Eraly wrote: headers. This isn't a problem with the kernel but with your package sources. Thx! Modifiying the mppLnx26_spinlock_size.c did the trick for the userland utility but the build of the kernel module fails because scsi/scsi_request.h was removed from the kernel in SP1.
Again something upstream needs to fix.
No. Again this is an issue of the driver.
Yeah , with upstream I was referring to the developers of the RDAC driver.
Commit: beb40487508290f5d6565598c60a3f44261beef2 Author: Christoph Hellwig
Sat, 10 Jun 2006 18:01:03 +0200 [SCSI] remove scsi_request infrastructure
With Achim patch the last user (gdth) is switched away from scsi_request so we an kill it now. Also disables some code in i2o_scsi that was broken since the sg driver stopped using scsi_requests.
Signed-off-by: Christoph Hellwig
Signed-off-by: James Bottomley This went into SP1 because of a requested SCSI backport. Go on and fix the driver.
I will. Thanks for helping me out. Kind regards, Leo -- Leo Eraly <leo at unstable dot be> --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tuesday, 7. August 2007, Jan Blunck wrote:
gcc -D__KERNEL__ -I/lib/modules/2.6.16.46-0.7-xen/build/include mppLnx26_spinlock_size.c -o mppLnx_Spinlock_Size Fix the broken userspace application
its a kernel module! it looks more like the /include symlink is not set correctly. -- RPMLINT information under http://en.opensuse.org/Packaging/RpmLint --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tue, Aug 07, Dirk Mueller wrote:
On Tuesday, 7. August 2007, Jan Blunck wrote:
gcc -D__KERNEL__ -I/lib/modules/2.6.16.46-0.7-xen/build/include mppLnx26_spinlock_size.c -o mppLnx_Spinlock_Size Fix the broken userspace application
its a kernel module! it looks more like the /include symlink is not set correctly.
Very interesting kernel module. Not everything that defines __KERNEL__ is a kernel module. Hey, but it is still very early morning :) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Dirk Mueller
-
Jan Blunck
-
Leo Eraly