Linmodems Mailing list Archives


Return-Path: <>
Mailing-List: contact; run by ezmlm
Delivered-To: mailing list
Received: (qmail 2117 invoked from network); 19 Apr 2004 18:19:17 -0000
Received: from (
  by with SMTP; 19 Apr 2004 18:19:17 -0000
Received: from [] (
	by with esmtp (Exim 4.30)
	id 1BFdMQ-0003G3-R8; Mon, 19 Apr 2004 18:19:14 +0000
Message-ID: <>
Date: Mon, 19 Apr 2004 19:30:24 +0100
From: Robert Thornburrow <>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031031
X-Accept-Language: en-gb, en-us, en
MIME-Version: 1.0
To: William John Murray <>
CC: linmodems <>
Subject: Re: Fedora compile error... was Re: A problem compiling the	driver...
References: <>	 <> <1082388052.8085.20.camel@wjmurray>
In-Reply-To: <1082388052.8085.20.camel@wjmurray>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Originating-Heisenberg-IP: []

Hi William,

Well, there is a configure script which is part of the build process
for the pctel driver.  A standard way to find out if something works
is to write an inline test program which the configure script attempts
to compile - if this fails, then we know that that feature isn't
availabe - the good things about this appoach is that it will work
regardless of what kernel is being used - whether the code compiles
or not depends entirely upon the kernel headers installed and not
upon what distro the kernel is running along with.  Then we do
exactly as you suggest and add a #define and an #ifdef.

I will have a crack at writing this, but as I don't have Fedora,
I can't exactly test it properly.  Maybe someone with Fedora will
test my script fragment for me, as it looks like it could be of
benefit to a lot of driver maintainers.

Best regards,


William John Murray wrote:
>    Hi Robert,
>             I agree, a correct patch is required. But a kludge
> can help? For pctel I added
> FEDORA = `find /etc -maxdepth 1 -name fedora-release | wc -l`
> and then passed the FEDORA variable to ptserial-2.4.7.c
> with a -D FEDORA=$(FEDORA)
> and finally used
> #if (FEDORA>0)
> to decide how to make this test.
>    There has only been 1 complaint from someone with their own
> kernel on a Fedora machine....
>     Bill

Webmaster: Russell Nelson
Last modified: Wed Jul 30 11:02:43 EDT 2003