public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: jon svendsen <jon-sven@frisurf.no>
To: linux-kernel@vger.kernel.org
Subject: xfree86 compilation failure due to naming conflict (linux 2.4.17, Xfree86 4.1.0)
Date: Thu, 10 Jan 2002 05:45:55 +0100	[thread overview]
Message-ID: <20020110054555.C4116@fig.aubernet> (raw)
In-Reply-To: <20020110053949.A4116@fig.aubernet>
In-Reply-To: <20020110053949.A4116@fig.aubernet>; from jon-sven@frisurf.no on Thu, Jan 10, 2002 at 05:39:49 +0100

On 2002.01.10 05:39 jon svendsen wrote:
Hello,

The SiS DRM drivers in the 2.4.17 linux kernel has caused the 
possibility of failure to compile xfree86 4.1.0 (and CVS). The cause of 
the conflict is the definition of CONFIG_DRM_SIS, used both in kernel 
configuration and in the xfree86 DRM code.

If DRM is enabled in the kernel (CONFIG_DRM) but the SiS driver is 
disabled or configured as a module, <linux/autoconf.h>, included from 
<linux/config.h>, will contain an #undef CONFIG_DRM_SIS.

<linux/config.h> is included from 
xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm.h in the 
xfree86 source tree. The file 
xc/programs/Xserver/hw/xfree86/os-support/linux/drm/xf86drmSiS.c does a 
#define CONFIG_DRM_SIS prior to including this file in order to have 
necessary parts of it included.

It flows something like this:

xf86drmSiS.c:
#define CONFIG_DRM_SIS
#include "drm.h"

drm.h:
#include <linux/config.h> // #undef CONFIG_DRM_SIS

#ifdef CONFIG_DRM_SIS
// stuff necessary for compilation of xf86drmSiS.c
#endif

And compilation of xf86drmSiS.c fails.

I'd supply a patch, but I'm not familiar enough with the relationship 
between the kernel and xfree86 drivers to know what the proper solution 
would be, nor am I certain if the modification should happen in linux 
or in xfree86. Hopefully I have supplied enough information facilitiate 
a fairly simple solution.

Jon Svendsen
--- Sorcerer GNU Linux (http://sorcerer.wox.org)




       reply	other threads:[~2002-01-10  4:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20020110053949.A4116@fig.aubernet>
2002-01-10  4:45 ` jon svendsen [this message]
2002-01-10 11:12   ` xfree86 compilation failure due to naming conflict (linux 2.4.17, Xfree86 4.1.0) Alan Cox

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=20020110054555.C4116@fig.aubernet \
    --to=jon-sven@frisurf.no \
    --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