Hi all,
I'm trying to compile the NI-KAL on my gentoo machine but it fails.
I'm using gcc-4.1.1 with kernel 2.6.20-gentoo-r7 and this is my output. Any hint or tip is highly appreciated. cheers!
Installing NI-KAL version 1.5.0f0...
Pre Installation ..
Preparing... ########################################### [100%]
1:nikali ########################################### [100%]
Post Installation .
Warning: nikali post installation failed! /tmp/nikaliPostInstall.log follows:
Configuring for linux kernel version 2.6.20-gentoo-r7.
********************************* NOTE *********************************
Using kernel headers found in /lib/modules/2.6.20-gentoo-r7/source.
If this does not correspond to the location of the 2.6.20-gentoo-r7 headers,
then define KERNELHEADERS in your environment to point to the location
of the kernel headers, define KERNELTARGET as the version of the
kernel for which to compile, and then rerun ./configure.
********************************* NOTE *********************************
Kernel has reparent_to_init(): yes
Number of arguments for do_munmap(): 3
pte_offset function: pte_offset_kernel()
Levels in page table: 4
Kernel has remap_pfn_range: yes
USB altsetting name: cur_altsetting
Kernel has usb_get_intf(): yes
Kernel has intf_cache member in usb_host_config: yes
Kernel has ep[] members in usb_device: yes
Kernel exports usb_set_configuration(): no
Units of USB_CTRL_GET_TIMEOUT: msec
Kernel has owner member in usb_driver: no
Kernel has put_page_testzero(): yes
Kernel has mutex method: yes
Kernel has kthread: yes
Storing configuration in Makefile.in
If the values stored are incorrect they can be changed before running make.
Uninstalling NI-KAL (nikal): done
/bin/rm -rf objects
Updating NI-KAL:
NI-KAL update failed.
/bin/cp nikal.c objects/nikal.c
/bin/cp nikal.h objects/nikal.h
make -C /lib/modules/2.6.20-gentoo-r7/source SUBDIRS=/usr/local/natinst/nikal/src/objects modules
make[1]: Entering directory `/usr/src/linux-2.6.20-gentoo-r7'
CC [M] /usr/local/natinst/nikal/src/objects/nikal.o
/usr/local/natinst/nikal/src/objects/nikal.c:34:26: error: linux/config.h: No such file or directory
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_registerPCIDriver’:
/usr/local/natinst/nikal/src/objects/nikal.c:2667: warning: ignoring return value of ‘pci_register_driver’, declared with attribute warn_unused_result
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_buildControlURB’:
/usr/local/natinst/nikal/src/objects/nikal.c:3422: warning: passing argument 7 of ‘usb_fill_control_urb’ from incompatible pointer type
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_buildBulkURB’:
/usr/local/natinst/nikal/src/objects/nikal.c:3447: warning: passing argument 6 of ‘usb_fill_bulk_urb’ from incompatible pointer type
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_buildInterruptURB’:
/usr/local/natinst/nikal/src/objects/nikal.c:3498: warning: assignment from incompatible pointer type
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_buildIsochronousURB’:
/usr/local/natinst/nikal/src/objects/nikal.c:3539: warning: assignment from incompatible pointer type
/usr/local/natinst/nikal/src/objects/nikal.c:3644:48: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_usbClearHaltAsync’:
/usr/local/natinst/nikal/src/objects/nikal.c:3643: error: ‘INIT_WORK’ undeclared (first use in this function)
/usr/local/natinst/nikal/src/objects/nikal.c:3643: error: (Each undeclared identifier is reported only once
/usr/local/natinst/nikal/src/objects/nikal.c:3643: error: for each function it appears in.)
/usr/local/natinst/nikal/src/objects/nikal.c: In function ‘nNIKAL100_reserveInterrupt’:
/usr/local/natinst/nikal/src/objects/nikal.c:3946: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
make[2]: *** [/usr/local/natinst/nikal/src/objects/nikal.o] Error 1
make[1]: *** [_module_/usr/local/natinst/nikal/src/objects] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.20-gentoo-r7'
make: *** [objects/nikal.ko] Error 2