I'm running FC4 and when I try to "make" I get an error about irq_vectors.h: No such file or directory
I have installed kernel_devel and am running the 2.6.14-1.1653_FC4 kernel.
Heres the full output of the make command.
[penguin@penguinator lcdmod]$ make
make -C /lib/modules/2.6.14-1.1653_FC4/build SUBDIRS=/home/penguin/Desktop/lcdmod modules
make[1]: Entering directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
CC [M] /home/penguin/Desktop/lcdmod/lcd.o
In file included from include/asm/processor.h:18,
from include/asm/thread_info.h:17,
from include/linux/thread_info.h:21,
from include/asm/uaccess.h:9,
from /home/penguin/Desktop/lcdmod/lcd.c:27:
include/asm/system.h: In function ‘__set_64bit_var’:
include/asm/system.h:211: warning: dereferencing type-punned pointer will break strict-aliasing rules
include/asm/system.h:211: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from include/linux/irq.h:21,
from include/asm/hardirq.h:6,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:11,
from include/linux/rcuref.h:36,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:6,
from include/linux/parport.h:101,
from /home/penguin/Desktop/lcdmod/lcd.c:32:
include/asm/irq.h:16:25: error: irq_vectors.h: No such file or directory
In file included from include/asm/hardirq.h:6,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:11,
from include/linux/rcuref.h:36,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:6,
from include/linux/parport.h:101,
from /home/penguin/Desktop/lcdmod/lcd.c:32:
include/linux/irq.h: At top level:
include/linux/irq.h:84: error: ‘NR_IRQS’ undeclared here (not in a function)
In file included from include/linux/irq.h:93,
from include/asm/hardirq.h:6,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:11,
from include/linux/rcuref.h:36,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:6,
from include/linux/parport.h:101,
from /home/penguin/Desktop/lcdmod/lcd.c:32:
include/asm/hw_irq.h:30: error: ‘NR_IRQ_VECTORS’ undeclared here (not in a function)
/home/penguin/Desktop/lcdmod/lcd.c:33:2: warning: #warning - Your kernel has parallel-port support compiled as a
/home/penguin/Desktop/lcdmod/lcd.c:34:2: warning: #warning - module, you must ensure that the parport module is
/home/penguin/Desktop/lcdmod/lcd.c:35:2: warning: #warning - inserted before lcdmod. This should happen automatically
/home/penguin/Desktop/lcdmod/lcd.c:36:2: warning: #warning - whenever you send data to /dev/lcd if you "make install"
/home/penguin/Desktop/lcdmod/lcd.c: In function ‘start_module’:
/home/penguin/Desktop/lcdmod/lcd.c:656: warning: initialization from incompatible pointer type
make[2]: *** [/home/penguin/Desktop/lcdmod/lcd.o] Error 1
make[1]: *** [_module_/home/penguin/Desktop/lcdmod] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
make: *** [lcd2.6] Error 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I seem to have fixed in though
I opened up irq.h and the did a find for irq_vectors.h and then put the path to irq_vectors.h at the once place where irq_vectors.h appears in irq.h
then make was successful
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm running FC4 and when I try to "make" I get an error about irq_vectors.h: No such file or directory
I have installed kernel_devel and am running the 2.6.14-1.1653_FC4 kernel.
Heres the full output of the make command.
[penguin@penguinator lcdmod]$ make
make -C /lib/modules/2.6.14-1.1653_FC4/build SUBDIRS=/home/penguin/Desktop/lcdmod modules
make[1]: Entering directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
CC [M] /home/penguin/Desktop/lcdmod/lcd.o
In file included from include/asm/processor.h:18,
from include/asm/thread_info.h:17,
from include/linux/thread_info.h:21,
from include/asm/uaccess.h:9,
from /home/penguin/Desktop/lcdmod/lcd.c:27:
include/asm/system.h: In function ‘__set_64bit_var’:
include/asm/system.h:211: warning: dereferencing type-punned pointer will break strict-aliasing rules
include/asm/system.h:211: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from include/linux/irq.h:21,
from include/asm/hardirq.h:6,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:11,
from include/linux/rcuref.h:36,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:6,
from include/linux/parport.h:101,
from /home/penguin/Desktop/lcdmod/lcd.c:32:
include/asm/irq.h:16:25: error: irq_vectors.h: No such file or directory
In file included from include/asm/hardirq.h:6,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:11,
from include/linux/rcuref.h:36,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:6,
from include/linux/parport.h:101,
from /home/penguin/Desktop/lcdmod/lcd.c:32:
include/linux/irq.h: At top level:
include/linux/irq.h:84: error: ‘NR_IRQS’ undeclared here (not in a function)
In file included from include/linux/irq.h:93,
from include/asm/hardirq.h:6,
from include/linux/hardirq.h:7,
from include/linux/interrupt.h:11,
from include/linux/rcuref.h:36,
from include/linux/fs.h:12,
from include/linux/proc_fs.h:6,
from include/linux/parport.h:101,
from /home/penguin/Desktop/lcdmod/lcd.c:32:
include/asm/hw_irq.h:30: error: ‘NR_IRQ_VECTORS’ undeclared here (not in a function)
/home/penguin/Desktop/lcdmod/lcd.c:33:2: warning: #warning - Your kernel has parallel-port support compiled as a
/home/penguin/Desktop/lcdmod/lcd.c:34:2: warning: #warning - module, you must ensure that the parport module is
/home/penguin/Desktop/lcdmod/lcd.c:35:2: warning: #warning - inserted before lcdmod. This should happen automatically
/home/penguin/Desktop/lcdmod/lcd.c:36:2: warning: #warning - whenever you send data to /dev/lcd if you "make install"
/home/penguin/Desktop/lcdmod/lcd.c: In function ‘start_module’:
/home/penguin/Desktop/lcdmod/lcd.c:656: warning: initialization from incompatible pointer type
make[2]: *** [/home/penguin/Desktop/lcdmod/lcd.o] Error 1
make[1]: *** [_module_/home/penguin/Desktop/lcdmod] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.14-1.1653_FC4-i686'
make: *** [lcd2.6] Error 2
I seem to have fixed in though
I opened up irq.h and the did a find for irq_vectors.h and then put the path to irq_vectors.h at the once place where irq_vectors.h appears in irq.h
then make was successful