Bug 69237 - Compiling kernel driver i830.o from XFree86 fails
Summary: Compiling kernel driver i830.o from XFree86 fails
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: XFree86 (Show other bugs)
(Show other bugs)
Version: 7.3
Hardware: i686 Linux
Target Milestone: ---
Assignee: Mike A. Harris
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2002-07-19 13:07 UTC by Anne Possoz
Modified: 2007-04-18 16:44 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-07-19 13:07:24 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Anne Possoz 2002-07-19 13:07:19 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1a) Gecko/20020702

Description of problem:
Trying to recompile i830.o from XFree86 using kernel include files

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. rpm -Uvh XFree86-4.2.0-8.src.rpm
2. rpm -Uvh kernel-source-2.4.18-5
3. rpm -bc /usr/src/redhat/SPECS/XFree86.spec

make TREE=/usr/src/linux-2.4.18-5/include/ -f Makefile.linux i830.o

Actual Results:  cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align
-Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE
-DMODVERSIONS -I/lib/modules/2.4.18-5/build/include -include
/lib/modules/2.4.18-5/build/include/linux/modversions.h -DEXPORT_SYMTAB
-I/lib/modules/2.4.18-5/build/include -c i830_drv.c -o i830_drv.o
cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes
-Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer
-I/lib/modules/2.4.18-5/build/include -include
-I/lib/modules/2.4.18-5/build/include -c i830_dma.c -o i830_dma.o
i830_dma.c: In function `i830_unmap_buffer':
i830_dma.c:254: too few arguments to function `do_munmap_R4545600f'
i830_dma.c: In function `i830_free_page':
i830_dma.c:320: structure has no member named `wait'
i830_dma.c: In function `i830_wait_ring':
i830_dma.c:384: warning: implicit declaration of function `udelay'
i830_dma.c:366: warning: unused variable `i'
make: *** [i830_dma.o] Error 1

Unfortunately, I am not able to provide a patch for it.

Expected Results:  As far as I understand, this comes from inconsistencies
between include
files in XFree86 and the redhat kernel, both being plain redhat rpms.

Additional info:

From the web pages
we know that the 830M video driver can be patch to run:
1) patch /usr/src/linux-2.4.18-5/drivers/char/agp/agpgart_be.c
to create the new module agpgart.o
This works fine.

2) patch

But here, even if the patch can work with some minor changes, the compilation
fails. This is not surprising as it already fails without any patch.

I was answered that with the plain kernel-2.4.18 (not readhat one)
this would work.
So I would be glad to see patches for this part of the kernel (or XFree86?)
so that we could take advantage of XFree86 patches.

Today, the 830M is working without i830.o, i.e. without DRI,
as long as agpgart.o is patched. I would be glad to be able to use
also DRI while keeping redhat kernel.

N.B. The laptop that I used for this is an HP omnibook xt6050.
This bug is related to Bug -  65661 and Bug -  66687 but with
a more general framework.

Comment 1 Mike A. Harris 2002-07-19 18:12:57 UTC
This is not a bug.  The Red Hat kernel contains a bug fixed version of the
XFree86 4.2.0 DRM code.  We do not support user compiled kernels, or kernel
modules wether or not it comes from sources we ship or not.  We only support
binaries that we ship.

Please note that bugzilla is not a user technical support forum, it is only
for reporting and tracking bugs.

Note You need to log in before you can comment on or make changes to this bug.