This is my first posting to the Cooker list.  I'm forwarding
correspondence regarding problems getting glx compiled in the new kernel
2.2.15-13mdk, hoping that someone on the list may have experienced the
problem and overcome it ... Thanks, Peter

 ----------  Forwarded Message  ----------
Subject: Re: [utah-glx-users] Utah-GLX Patch for 2.2.15
Date: Mon, 5 Jun 2000 11:01:40 +0100
From: Peter Ruskin <[EMAIL PROTECTED]>


Thanks for your advice.  I just tried
# cat /usr/local/glx/newagp/agpgart-2.2.13.patch | patch -p1'
with the following result ... 
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u -r -N linux-orig/arch/i386/mm/ioremap.c linux/arch/i386/mm/ioremap.c
|--- linux-orig/arch/i386/mm/ioremap.c  Mon Aug  9 14:04:38 1999
|+++ linux/arch/i386/mm/ioremap.c       Mon Nov 29 21:45:33 1999
--------------------------
File to patch:  ...

linux-2.2.15-13mdk seems to have had the agpgart patch installed at
source and then messed up.  All the agp files are in the source tree but,
if I don't apply the patch, when I make xconfig the agpgart option doesn't appear.

This is what I get with p0 ...
# cat /usr/local/glx/newagp/agpgart-2.2.13.patch | patch -p0
patching file linux/arch/i386/mm/ioremap.c
patching file linux/drivers/char/Config.in
Hunk #1 succeeded at 66 (offset 6 lines).
Hunk #2 succeeded at 114 (offset 3 lines).
patching file linux/Documentation/Configure.help
Hunk #1 succeeded at 10401 (offset 1122 lines).
patching file linux/drivers/char/Makefile
Hunk #1 succeeded at 363 (offset 37 lines).
patching file linux/drivers/char/agp/Makefile
patching file linux/drivers/char/agp/agp_backend.c
patching file linux/drivers/char/agp/agp_backendP.h
patching file linux/drivers/char/agp/agpgart_fe.c
patching file linux/include/linux/agp_backend.h
The next patch would create the file linux/include/linux/agpgart.h,
which already exists!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file linux/include/linux/agpgart.h.rej   

Make modules then falls over with ...
agpgart_fe.c: In function `agp_find_mem_by_key':                                       
                                                    
agpgart_fe.c:58: invalid use of undefined type `struct agp_front_data'
agpgart_fe.c:61: invalid use of undefined type `struct agp_front_data'
agpgart_fe.c: In function `agp_remove_from_pool':
agpgart_fe.c:94: invalid use of undefined type `struct agp_front_data'
agpgart_fe.c: At top level:
agpgart_fe.c:105: parse error before `*'
agpgart_fe.c:105: warning: type defaults to `int' in declaration of `agp_client'
agpgart_fe.c:105: parse error before `*'
agpgart_fe.c:108: warning: return-type defaults to `int'
agpgart_fe.c:108: warning: function declaration isn't a prototype
agpgart_fe.c: In function `agp_find_seg_in_client':
.
.
.
agpgart_fe.c:1067: initializer element is not constant
agpgart_fe.c:1067: (near initialization for `agp_miscdev.minor')
agpgart_fe.c: In function `agp_frontend_initialize':
agpgart_fe.c:1074: sizeof applied to an incomplete type
agpgart_fe.c:1074: sizeof applied to an incomplete type
agpgart_fe.c:1074: sizeof applied to an incomplete type
agpgart_fe.c:1074: sizeof applied to an incomplete type
agpgart_fe.c:1074: sizeof applied to an incomplete type
agpgart_fe.c:1074: sizeof applied to an incomplete type
agpgart_fe.c:1075: warning: implicit declaration of function `AGP_LOCK_INIT'
agpgart_fe.c:1078: `AGPGART_MINOR' undeclared (first use in this function)
agpgart_fe.c: At top level:
agpgart_fe.c:52: storage size of `agp_fe' isn't known
agpgart_fe.c: In function `agp_allocate_memory_wrap':
agpgart_fe.c:220: warning: `prev' might be used uninitialized in this function
make[3]: *** [agpgart_fe.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.2.15/drivers/char/agp'
make[2]: *** [_modsubdir_agp] Error 2
make[2]: Leaving directory `/usr/src/linux-2.2.15/drivers/char'
make[1]: *** [_modsubdir_char] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.15/drivers'
make: *** [_mod_drivers] Error 2                                                       
                                                    

Any advice would be appreciated.

On Sat, 03 Jun 2000, you wrote:
> On Sat, 3 Jun 2000, Peter Ruskin wrote:
> 
> > Hi,
> > I was using Utah-GLX successfully on kernel 2.2.13 and 2.2.14.  Now I am
> > upgrading the kernel to linux-2.2.15-13mdk from the Mandrake Cooker site
> > and the 2.2.13 patch fails.  Your web site only offers links to the 2.2.13
> > patch.  Is there a newer one?
> 
> The 2.2.13 patch applies works (with some offsets) with stock 2.2.15,
> which is why there's been no update. Did you try 'patch -p1'? Does the
> mandrake kernel already have agpgart included?
> 
>  -ralph

-- 

------------------------------------------------------
 Peter Ruskin          <[EMAIL PROTECTED]>
 Wrexham, UK          KDE - the professionals' choice
------------------------------------------------------

Reply via email to