From: Andreas Gruenbacher <agruen@suse.de>
To: 4Front Technologies <dev@opensound.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Stop the Linux kernel madness
Date: Fri, 18 Jun 2004 17:48:11 +0200 [thread overview]
Message-ID: <1087573691.19400.116.camel@winden.suse.de> (raw)
In-Reply-To: <40D23701.1030302@opensound.com>
Hello,
On Fri, 2004-06-18 at 02:27, 4Front Technologies wrote:
> Our commercial OSS drivers work perfectly with Linux 2.6.5, 2.6.6, 2.6.7
> and they are failing to install with SuSE's 2.6.5 kernel. The reason is that
> they have gone and changed the kernel headers which mean that nothing works.
Not really. The 2.6 kernel series allow to put output files in a
different directory than the sources -- see the O= option; there is a
little documentation in the main Makefile. Without the O= option, the
kernel sources and object files needed to compile external modules will
reside in the same directory. With the O= option, they will reside in
different directories. This means that a single /lib/modules/$(uname
-r)/build symlink is not sufficient anymore. Therefore we have the build
symlink pointing to the output files, and a new source symlink pointing
to the real source tree. This change hasn't found its way into mainline
yet, which is unfortunate. For the discussion, see
http://marc.theaimsgroup.com/?l=linux-kernel&m=108628265102121&w=2 and
follow-ups. I keep pinging Sam Ravnborg (the kbuild maintainer), but
apparently he is busy with other projects at the moment.
In addition, there is an extra Makefile in /lib/modules/$(uname
-r)/build that has the usual targets needed for module building, so the
traditional way of building modules (make -C /lib/modules/$(uname
-r)/build modules SUBDIRS=$(pwd)) still works. There is no need to build
scripts, scripts_basic, or whatever in that directory.
Based on this difference, there are two principal ways to build external
modules since 2.6.7 (and through back-porting also in the current SUSE
kernels, which are based on 2.6.5). We chose to ship the kernel sources
in /usr/src/linux in a (mostly) unconfigured state, and put the output
files needed for building external modules below /usr/src/linux-obj/.
This means that you have several choices:
- Configure the kernel sources in /usr/src/linux as you wish.
- Use one of the standard SUSE configurations.
I have written a HOWTO describing how to work with the SUSE kernel
sources, which is available as /usr/src/linux/README.SUSE in our
packages. An up-to-date online version is available at
http://www.suse.de/~agruen/kernel-doc/.
> For instance our kernel interface module doesn't compile anymore we see the following
> errors:
>
> > make -C /lib/modules/`uname -r`/build scripts scripts_basic include/linux/version.h
> > make[1]: Entering directory `/usr/src/linux-2.6.5-7.75-obj/i386/bigsmp'
> > make[1]: Nothing to be done for `scripts'.
> > make[1]: *** No rule to make target `scripts_basic'. Stop.
> > make[1]: Leaving directory `/usr/src/linux-2.6.5-7.75-obj/i386/bigsmp'
> > make: *** [ossbuild] Error 2
> >
> > Trying to compile using INCLUDE=/lib/modules/2.6.5-7.75-bigsmp/build/include
> > In file included from /usr/include/asm/smp.h:18,
> > from /usr/include/linux/smp.h:17,
> > from /usr/include/linux/sched.h:23,
> > from /usr/include/linux/module.h:10,
> > from src/sndshield.c:49:
> > /usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
> > In file included from /usr/include/asm/smp.h:18,
> > from /usr/include/linux/smp.h:17,
> > from /usr/include/linux/sched.h:23,
> > from /usr/include/linux/module.h:10,
>
>
>
> Why is this happening?. It's working fine with Linux 2.6.5 and also worked with
> Linux 2.6.4 kernels from SuSE 9.1
Sincerely,
--
Andreas Gruenbacher <agruen@suse.de>
SUSE Labs, SUSE LINUX AG
next prev parent reply other threads:[~2004-06-18 15:55 UTC|newest]
Thread overview: 181+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-18 0:09 4Front Technologies
2004-06-18 0:20 ` Kyle McMartin
2004-06-18 14:51 ` Jesper Juhl
2004-06-18 14:54 ` Jesper Juhl
2004-06-19 2:36 ` Horst von Brand
2004-06-18 0:21 ` Martin J. Bligh
2004-06-18 0:27 ` 4Front Technologies
2004-06-18 0:31 ` Christoph Hellwig
2004-06-18 5:51 ` Martin J. Bligh
2004-06-18 10:39 ` Bernd Petrovitsch
2004-06-18 15:48 ` Andreas Gruenbacher [this message]
2004-06-18 17:30 ` Martin Schlemmer
2004-06-18 17:53 ` 4Front Technologies
2004-06-18 18:28 ` Timothy Miller
2004-06-18 18:23 ` 4Front Technologies
2004-06-18 18:54 ` Kyle Moffett
2004-06-18 20:31 ` Hannu Savolainen
2004-06-18 21:37 ` Kyle Moffett
2004-06-18 19:08 ` Valdis.Kletnieks
2004-06-18 19:43 ` Timothy Miller
2004-06-18 19:02 ` Andreas Dilger
2004-06-18 20:12 ` 4Front Technologies
2004-06-18 19:36 ` Andreas Dilger
2004-06-18 19:40 ` Valdis.Kletnieks
2004-06-18 20:29 ` David Lang
2004-06-18 20:54 ` Valdis.Kletnieks
2004-06-20 12:56 ` Hannu Savolainen
2004-06-20 22:11 ` David Lang
2004-06-21 1:16 ` 4Front Technologies
2004-06-21 7:07 ` Hannu Savolainen
2004-06-21 7:25 ` Xavier Bestel
2004-06-21 8:27 ` Hannu Savolainen
2004-06-21 13:12 ` Denis Vlasenko
2004-06-22 2:06 ` Andrea Arcangeli
2004-06-22 7:54 ` Hannu Savolainen
2004-06-22 11:19 ` Denis Vlasenko
2004-06-22 16:48 ` 4Front Technologies
2004-06-22 17:46 ` V13
2004-06-19 16:35 ` Jari Ruusu
2004-06-18 20:46 ` Sam Ravnborg
2004-06-18 20:59 ` 4Front Technologies
2004-06-18 22:59 ` Thomas Gleixner
2004-06-19 16:36 ` Jari Ruusu
2004-06-19 18:01 ` Roman Zippel
2004-06-19 21:12 ` Martin Schlemmer
2004-06-20 15:43 ` Jari Ruusu
2004-06-18 0:39 ` Andrew Morton
2004-06-18 1:29 ` Nicholas S. Wourms
2004-06-18 8:27 ` Jens Axboe
2004-06-18 14:43 ` Rik van Riel
2004-06-18 15:13 ` William Lee Irwin III
2004-06-18 15:33 ` Jan-Benedict Glaw
2004-06-18 17:17 ` Paul Jakma
2004-06-18 18:24 ` Jan-Benedict Glaw
2004-06-18 19:02 ` Tim Bird
2004-06-18 19:45 ` Timothy Miller
2004-06-18 19:46 ` Jan-Benedict Glaw
2004-06-18 20:05 ` Rik van Riel
2004-06-18 20:08 ` Jan-Benedict Glaw
2004-06-18 21:03 ` jsimmons
2004-06-18 21:10 ` Jan-Benedict Glaw
2004-06-18 21:13 ` Jens Axboe
2004-06-18 21:38 ` Jan-Benedict Glaw
2004-06-18 23:18 ` jsimmons
2004-06-19 8:19 ` Jan-Benedict Glaw
2004-06-19 3:34 ` Horst von Brand
2004-06-22 13:24 ` Jan-Benedict Glaw
2004-06-18 22:05 ` viro
2004-06-18 22:10 ` Jan-Benedict Glaw
2004-06-19 12:42 ` Francois Romieu
2004-06-19 13:55 ` Jan-Benedict Glaw
2004-06-20 10:21 ` Geert Uytterhoeven
2004-06-22 19:34 ` jsimmons
2004-06-18 20:20 ` Tim Bird
2004-06-18 20:50 ` Jan-Benedict Glaw
2004-06-18 20:05 ` Jan-Benedict Glaw
2004-06-18 20:03 ` Rik van Riel
2004-06-19 12:09 ` John Jasen
2004-06-19 12:29 ` lkml
[not found] ` <2c0942db040618100264ea6b7d@mail.gmail.com>
2004-06-18 17:27 ` Ray Lee
2004-06-18 20:51 ` Andrew Morton
2004-06-18 21:03 ` Rik van Riel
2004-06-18 21:26 ` Jan-Benedict Glaw
2004-06-18 21:17 ` Jens Axboe
2004-06-19 20:59 ` Lars Marowsky-Bree
2004-06-18 0:44 ` viro
2004-06-18 1:00 ` 4Front Technologies
2004-06-18 1:20 ` Roman Zippel
2004-06-18 1:33 ` 4Front Technologies
2004-06-18 10:12 ` Roman Zippel
2004-06-18 17:37 ` Hannu Savolainen
2004-06-18 20:26 ` Roman Zippel
2004-06-18 21:52 ` Jeff Garzik
2004-06-18 22:26 ` Matt Domsch
2004-06-18 23:13 ` 4Front Technologies
2004-06-19 8:44 ` Hannu Savolainen
2004-06-19 2:59 ` Horst von Brand
2004-06-18 9:57 ` Petr Vandrovec
2004-06-18 13:47 ` Olaf Hering
2004-06-18 14:03 ` Petr Vandrovec
2004-06-18 14:59 ` Duncan Sands
2004-06-18 1:20 ` viro
2004-06-18 1:25 ` Thomas Gleixner
2004-06-18 1:31 ` Nick Piggin
2004-06-18 1:37 ` 4Front Technologies
2004-06-18 1:41 ` Nick Piggin
2004-06-18 2:17 ` Erik Harrison
2004-06-18 7:45 ` John Bradford
2004-06-18 9:05 ` Jan-Benedict Glaw
2004-06-18 1:34 ` Bernd Eckenfels
2004-06-18 10:51 ` Giuseppe Bilotta
2004-06-18 8:48 ` Flavio Stanchina
2004-06-18 10:25 ` Matthias Andree
2004-06-20 5:28 ` Ryan Anderson
2004-06-20 8:13 ` Jaroslav Kysela
2004-06-22 15:17 ` Matthias Andree
2004-06-22 18:22 ` Bill Davidsen
2004-06-18 15:42 ` Timothy Miller
2004-06-18 1:07 ` thinkliberty
2004-06-18 1:12 ` 4Front Technologies
2004-06-18 1:21 ` CaT
2004-06-18 1:37 ` Bastiaan Spandaw
2004-06-18 1:46 ` 4Front Technologies
2004-06-18 2:06 ` Thomas Gleixner
[not found] ` <40D259DD.6020604@opensound.com>
2004-06-18 22:53 ` Thomas Gleixner
2004-06-18 5:54 ` Jan-Benedict Glaw
2004-06-18 8:50 ` Helge Hafting
2004-06-18 11:05 ` Redeeman
2004-06-18 15:25 ` Jeff Garzik
2004-06-18 15:51 ` Timothy Miller
2004-06-18 16:53 ` Alex Goddard
2004-06-18 15:46 ` Timothy Miller
2004-06-18 6:40 ` Arjan van de Ven
2004-06-18 8:10 ` Clemens Schwaighofer
2004-06-18 15:34 ` Timothy Miller
[not found] ` <mailman.1087541100.18231.linux-kernel2news@redhat.com>
2004-06-18 19:47 ` Pete Zaitcev
2004-06-19 16:35 ` Jari Ruusu
2004-06-19 20:52 ` Lars Marowsky-Bree
2004-06-20 15:43 ` Jari Ruusu
2004-06-20 20:44 ` Andreas Gruenbacher
-- strict thread matches above, loose matches on Subject: below --
2006-10-08 4:43 2.6.19-rc1: known regressions (v2) Trond Myklebust
2006-10-08 4:55 ` Adrian Bunk
[not found] ` <1160283948.10192.3.camel@lade.trondhjem.org>
2006-10-08 6:39 ` Adrian Bunk
2006-10-08 7:45 ` Pekka Enberg
2006-10-08 17:28 ` Adrian Bunk
2006-10-08 17:34 ` Jan-Benedict Glaw
2006-10-08 17:59 ` Adrian Bunk
2006-10-08 18:04 ` Jan-Benedict Glaw
2006-10-08 18:15 ` Adrian Bunk
2006-10-08 18:22 ` Jan-Benedict Glaw
2006-10-09 1:49 ` Horst H. von Brand
2004-06-22 14:38 Stop the Linux kernel madness Petr Vandrovec
2004-06-22 15:12 ` Jan-Benedict Glaw
2004-06-22 17:32 ` Christoph Hellwig
2004-06-22 18:42 ` Jan-Benedict Glaw
2004-06-22 19:52 ` Petr Vandrovec
2004-06-23 14:58 ` Timothy Miller
2004-06-23 15:03 ` Christoph Hellwig
2004-06-23 16:03 ` Petr Vandrovec
2004-06-23 18:26 ` Vojtech Pavlik
2004-06-23 18:27 ` Lars Marowsky-Bree
2004-05-28 1:55 ftp.kernel.org Ricky Beam
2004-05-28 2:29 ` ftp.kernel.org Martin J. Bligh
2004-05-28 4:21 ` ftp.kernel.org Ricky Beam
2004-05-28 8:41 ` ftp.kernel.org Mark Watts
2004-05-28 6:21 ` ftp.kernel.org Chris Shoemaker
2004-05-28 15:01 ` ftp.kernel.org Theodore Ts'o
2004-05-28 16:32 ` ftp.kernel.org Andreas Dilger
2004-05-29 15:30 ` ftp.kernel.org Daniel Egger
2004-05-30 0:29 ` ftp.kernel.org H. Peter Anvin
2004-05-30 9:43 ` ftp.kernel.org Andrew Walrond
2004-06-13 22:22 ` ftp.kernel.org Pedro Larroy
2004-05-28 19:08 ` ftp.kernel.org Chris Shoemaker
2004-05-28 22:15 ` ftp.kernel.org H. Peter Anvin
2004-05-28 8:55 ` ftp.kernel.org Jan-Benedict Glaw
2004-05-28 11:10 ` ftp.kernel.org Mark Watts
2004-05-28 13:57 ` ftp.kernel.org Keith Owens
2004-05-28 22:16 ` ftp.kernel.org H. Peter Anvin
2004-05-29 21:05 ` ftp.kernel.org Horst von Brand
2004-05-30 6:52 ` ftp.kernel.org H. Peter Anvin
2004-05-28 22:17 ` ftp.kernel.org H. Peter Anvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1087573691.19400.116.camel@winden.suse.de \
--to=agruen@suse.de \
--cc=dev@opensound.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome