kernel 2.4.5 problem

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



Hi Kirk,

Kirk Bollinger writes:
 > I'm trying to build the modules for kernel 2.4.5
 > 
 > I have a 
 > 
 > 00:10.0 Multimedia video controller: Brooktree Corporation Bt878 (rev 11)
 > 00:10.1 Multimedia controller: Brooktree Corporation Bt878 (rev 11)
 > 

For whatever reason, 'buz.c' is not including <linux/slab.h>,
which defines KMALLOC_MAXSIZE.  Unfortunately, that does not look
like the only problem - Line 3215 is much more serious and most likely
will not go away even if the KMALLOC issue is fixed.  What does
the code around line 3215 look like?

To solve the KMALLOC issue, you can either edit the buz.c file and
add the line:
   # include <linux/slab.h>
or just use the same compilation sequence as listed below
with the additional flag '-DKMALLOC_MAXSIZE=131072UL'

 > card
 > 
 > and I'm getting this in the make modules
 > 
 > make[3]: Entering directory `/usr/src/linux-2.4.5/drivers/media/video'
 > ld -m elf_i386  -r -o bttv.o bttv-driver.o bttv-cards.o bttv-if.o
 > ld -m elf_i386  -r -o zoran.o zr36120.o zr36120_i2c.o zr36120_mem.o
 > gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall -Wstrict-prototypes
 > -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
 > -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include
 > /usr/src/linux-2.4.5/include/linux/modversions.h   -c -o buz.o buz.c
 > buz.c: In function `v4l_fbuffer_alloc':
 > buz.c:188: `KMALLOC_MAXSIZE' undeclared (first use in this function)
 > buz.c:188: (Each undeclared identifier is reported only once
 > buz.c:188: for each function it appears in.)
 > buz.c: In function `jpg_fbuffer_alloc':
 > buz.c:262: `KMALLOC_MAXSIZE' undeclared (first use in this function)
 > buz.c:256: warning: `alloc_contig' might be used uninitialized in this
 > function
 > buz.c: In function `jpg_fbuffer_free':
 > buz.c:322: `KMALLOC_MAXSIZE' undeclared (first use in this function)
 > buz.c:316: warning: `alloc_contig' might be used uninitialized in this
 > function
 > buz.c: In function `zoran_ioctl':
 > buz.c:2837: `KMALLOC_MAXSIZE' undeclared (first use in this function)
 > buz.c: In function `zr36057_init':
 > buz.c:3215: too few arguments to function
 > `video_register_device_Rsmp_7abed781'
 > make[3]: *** [buz.o] Error 1
 > make[3]: Leaving directory `/usr/src/linux-2.4.5/drivers/media/video'
 > make[2]: *** [_modsubdir_video] Error 2
 > make[2]: Leaving directory `/usr/src/linux-2.4.5/drivers/media'
 > make[1]: *** [_modsubdir_media] Error 2
 > make[1]: Leaving directory `/usr/src/linux-2.4.5/drivers'

Wade





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux