[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] kernel compile error



On Thu, Sep 25, 2003 at 10:45:32PM -0700, Cecil Watson wrote:
> Hello Everyone,
> 
> I'm trying to recompile a custom kernel, but am getting errors:
> 
> make -C drm modules
> make[3]: Entering directory
> `/usr/src/kernel-source-2.4.22-xfs/drivers/char/drm'
> gcc-2.95 -D__KERNEL__
> -I/usr/src/kernel-source-2.4.22-xfs/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2
> -fno-strict-aliasing -fno-common -fomit-frame-pointer
> -pipe -mpreferred-stack-boundary=2 -march=i586
> -DMODULE  -nostdinc -iwithprefix include
> -DKBUILD_BASENAME=gamma_drv  -c -o gamma_drv.o
> gamma_drv.c
> In file included from gamma_drv.c:34:
> drmP.h:932: redefinition of `__cmpxchg'
> /usr/src/kernel-source-2.4.22-xfs/include/asm/system.h:244:
> `__cmpxchg' previously defined here
> make[3]: *** [gamma_drv.o] Error 1
> make[3]: Leaving directory
> `/usr/src/kernel-source-2.4.22-xfs/drivers/char/drm'
> make[2]: *** [_modsubdir_drm] Error 2
> make[2]: Leaving directory
> `/usr/src/kernel-source-2.4.22-xfs/drivers/char'
> make[1]: *** [_modsubdir_char] Error 2
> make[1]: Leaving directory
> `/usr/src/kernel-source-2.4.22-xfs/drivers'
> make: *** [_mod_drivers] Error 2
> 
> Other than disabling drm, does anyone have any suggests on resolving this?  

Either compile in 386 compatibiility mode, or remove the additional
__cmpxchg function from the drm sources (which is only needed if your
processor does not support this opcode anyways).

Regards
-Klaus Knopper
-- 
Klaus Knopper                           Technical Solutions & Finances
knopper@linuxtag.org                          http://www.linuxtag.org/
Phone +49-(0)631-3109371                        Fax +49-(0)631-3109372
LinuxTag 2004 - Europes largest Linux Expo       Where .com meets .org
_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: