public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: V13 <v13@priest.com>
To: Hannu Savolainen <hannu@opensound.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Stop the Linux kernel madness
Date: Tue, 22 Jun 2004 20:46:20 +0300	[thread overview]
Message-ID: <200406222046.30018.v13@priest.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0406221033350.8222@zeus.compusonic.fi>

[-- Attachment #1: Type: text/plain, Size: 3274 bytes --]

On Tuesday 22 June 2004 10:54, Hannu Savolainen wrote:
> This kind of "breaks" are not so fatal provided that there is some way to
> detect them reliably. Usually it's possible to check LINUX_VERSION_CODE
> and use different approaches depending on the kernel version. However
> this doesn't always work because distribution vendors often back port
> features from the newer kernels into their distribution kernels which
> have older LINUX_VERSION_CODE. A better  approach would be marking them
> with #define HAVE_NEW_something in the header file that implements this
> change.

I believe we are seeing this kind of problems all the time. This is not just a 
kernel 'problem'. Just take a look at the autoconf info page and the tests 
that a portable program has to run.

Of course the makers of (i.e.) glib could just try to find a source tree that 
would compile everywhere but they know that this is impossible so they have 
to run tests like :

(warning: long list)
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for nl_langinfo... yes
checking for nl_langinfo and CODESET... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking for vasprintf... yes
checking for unsetenv... yes
checking for getc_unlocked... yes
checking for C99 vsnprintf... yes
checking for nl_langinfo (CODESET)... yes
checking for OpenBSD strlcpy/strlcat... no
checking for an implementation of va_copy()... yes
checking for an implementation of __va_copy()... yes
checking whether va_lists can be copied by value... yes
checking for RTLD_GLOBAL brokenness... no
checking for preceeding underscore in symbols... no
checking for dlerror... yes
checking size of pthread_t... 4
checking for pthread_attr_setstacksize... yes
checking for minimal/maximal thread priority... 
sched_get_priority_min(SCHED_OTHER)/sched_get_priority_max(SCHED_OTHER)
checking for posix yield function... sched_yield
checking whether to use the PID niceness surrogate for thread priorities... 
yes
checking size of pthread_mutex_t... 24
checking byte contents of PTHREAD_MUTEX_INITIALIZER... 
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
checking value of POLLIN... 1
checking value of POLLOUT... 4
checking value of POLLPRI... 2
checking value of POLLERR... 8
checking value of POLLHUP... 16
checking value of POLLNVAL... 32

.. and many more ..

I don't believe that your source code is more complex than theirs. Maybe the 
solution to your problem is as simple as 'info autoconf'. You know that there 
are more than one ways to compile kernel modules so you just have to test 
each one of them and see which one works. We're talking about no more than 30 
minutes work. After that you may add another distro in the supported 
distributions list of your module.

> Hannu
<<V13>>

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2004-06-22 23:05 UTC|newest]

Thread overview: 181+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-18  0:09 Stop the Linux kernel madness 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
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 [this message]
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=200406222046.30018.v13@priest.com \
    --to=v13@priest.com \
    --cc=hannu@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