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

Re: Compiling kernel 2.4.16 error please help



Compiling your own kernel is a blast!

D., 2002-Jan-01 15:13 -0800:
> I'm running Woody with currently kernel-2.4.9 and I'm
> trying to build kernel-2.4.16 with kpkg-make.  I tried
> to use the config-2.4.9 that I am currently using but
> it gave me a ton of error's sbout USB so I did the
> make xconfig and selected/deselected the things that I
> needed/didn't need and it starts to build the package.
>  The first thing that I see is /usr/lib/modules not
> found.. that goes by fast and I think that is the
> correct path that is said.

To fix this minor issue, just create the directory it's looking
for ( and it should be /usr/src/modules ) and leave it empty.
This is where you would put drivers source that is not included
in the kernel source, that you want to compile into modules along
with the kernel.

> It will compile for awhile
> then I get this error:
> modversions.h   -c -o accel.o accel.c rm -f rivafb.o
> ld -m elf_i386  -r -o rivafb.o fbdev.o riva_hw.o
> accel.o
> make[4]: Leaving directory
> `/usr/src/kernel-source-2.4.16/drivers/video/riva'

The above is for framebuffer using a NVidia riva driver.  Looks
okay so far.

> /usr/bin/make -C sis modules
> make[4]: Entering directory
> `/usr/src/kernel-source-2.4.16/drivers/video/sis'
> gcc -D__KERNEL__
> -I/usr/src/kernel-source-2.4.16/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2
> -fomit-frame-pointer -fno-strict-aliasing -fno-common
> -pipe -mpreferred-stack-boundary=2 -march=i586
> -DMODULE -DMODVERSIONS -include
> /usr/src/kernel-source-2.4.16/include/linux/modversions.h
>   -DEXPORT_SYMTAB -c sis_main.c
> sis_main.c: In function `sisfb_heap_init':
> sis_main.c:1265: `HW_CURSOR_AREA_SIZE' undeclared
> (first use in this function)
> sis_main.c:1265: (Each undeclared identifier is
> reported only once
> sis_main.c:1265: for each function it appears in.)
> sis_main.c:1087: warning: unused variable `temp'
> sis_main.c: In function `sisfb_post_setmode':
> sis_main.c:1647: `IND_SIS_CRT2_WRITE_ENABLE'
> undeclared (first use in this function)
> make[4]: *** [sis_main.o] Error 1
> make[4]: Leaving directory
> `/usr/src/kernel-source-2.4.16/drivers/video/sis'
> make[3]: *** [_modsubdir_sis] Error 2
> make[3]: Leaving directory
> `/usr/src/kernel-source-2.4.16/drivers/video'
> make[2]: *** [_modsubdir_video] Error 2
> make[2]: Leaving directory
> `/usr/src/kernel-source-2.4.16/drivers'
> make[1]: *** [_mod_drivers] Error 2
> make[1]: Leaving directory
> `/usr/src/kernel-source-2.4.16'
> make: *** [stamp-build] Error 2
> dodaa@D:/usr/src/linux$ 

This next section above appears to be trying to compile a video
driver for the SIS chipset, and/or a framebuffer device driver
using the SIS chipset.  I don't know of the NVidia Riva driver
might butt-heads with the SIS video driver, but you shouldn't
have both.  Determine what your video chip is and only select
that one.  Also, I've found that sometimes a kernel will compile
fine with a certain driver selected as a module as opposed to as
part of the kernel.

>   I was using the guide from
> newbieguide.sourceforge.net that Colin pointed out as
> my reference.
>   Any guidance that you all could provide would be
> greatly appreciated.
> Thanks
> Don

If you can get a kernel that works the way you want it to in 3 or
less tries, you're a PRO in my book!  :-)

jc

-- 
Jeff Coppock		Systems Engineer
Diggin' Debian		Admin and User



Reply to: