Does /lib/modules/`uname -r`/build/ exist, and does it point to your current kernel source tree?
Mark Post -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Luis Roberto Wanderley de Siqueira Sent: Friday, June 18, 2004 12:47 PM To: [EMAIL PROTECTED] Subject: Tao & cpint -- Mensagem Original -- De: Luis Roberto Wanderley de Siqueira <[EMAIL PROTECTED]> Para: [EMAIL PROTECTED] Enviar: 18-06-2004 Assunto: [Tao-s390] cpint I'm trying to make cpint (downloaded from linuxvm.org), but getting a lot of errors... would you please help me ?? [EMAIL PROTECTED] local]# cd cpint-1.1.6/ [EMAIL PROTECTED] cpint-1.1.6]# make gcc -D__KERNEL__ -DMODULE -Wall -O2 -I/lib/modules/`uname -r`/build/include -I/usr/include -M *.c > .depend gcc -D__KERNEL__ -DMODULE -Wall -O2 -I/lib/modules/`uname -r`/build/include -I/usr/include -c -o main.o main.c In file included from main.c:64: /usr/include/linux/proc_fs.h:70: syntax error before "atomic_t" /usr/include/linux/proc_fs.h:73: syntax error before '}' token /usr/include/linux/proc_fs.h:203: syntax error before "void" In file included from /usr/include/linux/sched.h:14, from /usr/include/asm-s390/uaccess.h:17, from /usr/include/asm/uaccess.h:4, from main.c:70: /usr/include/linux/timex.h:173: field `time' has incomplete type In file included from /usr/include/asm/semaphore.h:4, from /usr/include/linux/sched.h:17, from /usr/include/asm-s390/uaccess.h:17, from /usr/include/asm/uaccess.h:4, from main.c:70: /usr/include/asm-s390/semaphore.h:22: syntax error before "wait_queue_head_t" /usr/include/asm-s390/semaphore.h: In function `sema_init': /usr/include/asm-s390/semaphore.h:42: dereferencing pointer to incomplete type /usr/include/asm-s390/semaphore.h:42: extra brace group at end of initializer /usr/include/asm-s390/semaphore.h:42: (near initialization for `(anonymous)') /usr/include/asm-s390/semaphore.h:42: dereferencing pointer to incomplete type /usr/include/asm-s390/semaphore.h: In function `down': /usr/include/asm-s390/semaphore.h:67: dereferencing pointer to incomplete type /usr/include/asm-s390/semaphore.h: In function `down_interruptible': /usr/include/asm-s390/semaphore.h:75: dereferencing pointer to incomplete type /usr/include/asm-s390/semaphore.h: In function `down_trylock': /usr/include/asm-s390/semaphore.h:84: dereferencing pointer to incomplete type /usr/include/asm-s390/semaphore.h: In function `up': /usr/include/asm-s390/semaphore.h:91: dereferencing pointer to incomplete type In file included from /usr/include/asm/lowcore.h:4, from /usr/include/asm-s390/smp.h:16, from /usr/include/asm/smp.h:4, from /usr/include/linux/smp.h:14, from /usr/include/linux/sched.h:22, from /usr/include/asm-s390/uaccess.h:17, from /usr/include/asm/uaccess.h:4, from main.c:70: /usr/include/asm-s390/lowcore.h: At top level: /usr/include/asm-s390/lowcore.h:153: field `cpu_data' has incomplete type In file included from /usr/include/linux/sched.h:22, from /usr/include/asm-s390/uaccess.h:17, from /usr/include/asm/uaccess.h:4, from main.c:70: /usr/include/linux/smp.h:29: syntax error before '(' token In file included from /usr/include/linux/sched.h:81, from /usr/include/asm-s390/uaccess.h:17, from /usr/include/asm/uaccess.h:4, from main.c:70: /usr/include/linux/timer.h:45: syntax error before "spinlock_t" /usr/include/linux/timer.h:53: syntax error before '}' token /usr/include/linux/timer.h:67: syntax error before "tvec_base_t" /usr/include/linux/timer.h:101: syntax error before "tvec_bases" /usr/include/linux/timer.h: In function `init_timer': /usr/include/linux/timer.h:105: dereferencing pointer to incomplete type /usr/include/linux/timer.h:105: dereferencing pointer to incomplete type /usr/include/linux/timer.h:106: dereferencing pointer to incomplete type /usr/include/linux/timer.h: In function `timer_pending': /usr/include/linux/timer.h:121: dereferencing pointer to incomplete type In file included from /usr/include/asm/uaccess.h:4, from main.c:70: /usr/include/asm-s390/uaccess.h: In function `verify_area': /usr/include/asm-s390/uaccess.h:51: `current' undeclared (first use in this function) /usr/include/asm-s390/uaccess.h:51: (Each undeclared identifier is reported only once /usr/include/asm-s390/uaccess.h:51: for each function it appears in.) /usr/include/asm-s390/uaccess.h: In function `strncpy_from_user': /usr/include/asm-s390/uaccess.h:447: `current' undeclared (first use in this function) /usr/include/asm-s390/uaccess.h: In function `clear_user': /usr/include/asm-s390/uaccess.h:529: `current' undeclared (first use in this function) In file included from main.c:72: cpint.h: At top level: cpint.h:32: syntax error before "wait_queue_head_t" cpint.h:32: warning: no semicolon at end of struct or union cpint.h:33: warning: type defaults to `int' in declaration of `CPInt_Dev' cpint.h:33: warning: data definition has no type or storage class cpint.h:46: warning: `struct file' declared inside parameter list cpint.h:46: warning: `struct inode' declared inside parameter list cpint.h:47: warning: `struct file' declared inside parameter list cpint.h:47: warning: `struct inode' declared inside parameter list cpint.h:48: warning: `struct file' declared inside parameter list cpint.h:49: warning: `struct file' declared inside parameter list cpint.h:51: warning: `struct file' declared inside parameter list cpint.h:51: warning: `struct inode' declared inside parameter list cpint.h:52: warning: `struct file' declared inside parameter list cpint.h:52: warning: `struct inode' declared inside parameter list cpint.h:53: warning: `struct file' declared inside parameter list cpint.h:53: warning: `struct inode' declared inside parameter list cpint.h:54: warning: `struct file' declared inside parameter list cpint.h:55: warning: `struct file' declared inside parameter list cpint.h:55: warning: `struct inode' declared inside parameter list cpint.h:56: warning: `struct file' declared inside parameter list cpint.h:56: warning: `struct inode' declared inside parameter list cpint.h:57: warning: `struct file' declared inside parameter list cpint.h:59: warning: `struct file' declared inside parameter list cpint.h:59: warning: `struct inode' declared inside parameter list cpint.h:73: syntax error before '*' token cpint.h:73: warning: type defaults to `int' in declaration of `cpint_devices' cpint.h:73: warning: data definition has no type or storage class main.c:98: warning: `struct file' declared inside parameter list main.c:98: warning: `struct inode' declared inside parameter list main.c:114: syntax error before '*' token main.c:114: warning: type defaults to `int' in declaration of `cpint_devices' main.c:114: warning: data definition has no type or storage class main.c:120: variable `cpint_fops' has initializer but incomplete type main.c:121: unknown field `open' specified in initializer main.c:121: warning: excess elements in struct initializer main.c:121: warning: (near initialization for `cpint_fops') main.c:124: variable `cpcmd_fops' has initializer but incomplete type main.c:125: unknown field `read' specified in initializer main.c:125: warning: excess elements in struct initializer main.c:125: warning: (near initialization for `cpcmd_fops') main.c:126: unknown field `write' specified in initializer main.c:126: warning: excess elements in struct initializer main.c:126: warning: (near initialization for `cpcmd_fops') main.c:127: unknown field `open' specified in initializer main.c:127: warning: excess elements in struct initializer main.c:127: warning: (near initialization for `cpcmd_fops') main.c:128: unknown field `ioctl' specified in initializer main.c:128: warning: excess elements in struct initializer main.c:128: warning: (near initialization for `cpcmd_fops') main.c:129: unknown field `release' specified in initializer main.c:129: warning: excess elements in struct initializer main.c:129: warning: (near initialization for `cpcmd_fops') main.c:132: variable `applmon_fops' has initializer but incomplete type main.c:133: unknown field `write' specified in initializer main.c:133: warning: excess elements in struct initializer main.c:133: warning: (near initialization for `applmon_fops') main.c:134: unknown field `open' specified in initializer main.c:134: warning: excess elements in struct initializer main.c:134: warning: (near initialization for `applmon_fops') main.c:135: unknown field `ioctl' specified in initializer main.c:135: warning: excess elements in struct initializer main.c:135: warning: (near initialization for `applmon_fops') main.c:136: unknown field `release' specified in initializer main.c:136: warning: excess elements in struct initializer main.c:136: warning: (near initialization for `applmon_fops') main.c:139: variable `account_fops' has initializer but incomplete type main.c:140: unknown field `write' specified in initializer main.c:140: warning: excess elements in struct initializer main.c:140: warning: (near initialization for `account_fops') main.c:141: unknown field `open' specified in initializer main.c:141: warning: excess elements in struct initializer main.c:141: warning: (near initialization for `account_fops') main.c:142: unknown field `release' specified in initializer main.c:142: warning: excess elements in struct initializer main.c:142: warning: (near initialization for `account_fops') main.c:193: warning: `struct file' declared inside parameter list main.c:193: warning: `struct inode' declared inside parameter list main.c:194: conflicting types for `cpint_open' main.c:98: previous declaration of `cpint_open' main.c: In function `cpint_open': main.c:195: dereferencing pointer to incomplete type main.c:197: `dev' undeclared (first use in this function) main.c:206: dereferencing pointer to incomplete type main.c:207: dereferencing pointer to incomplete type main.c: In function `init_module': main.c:228: `dev' undeclared (first use in this function) main.c:244: warning: implicit declaration of function `register_chrdev' main.c:246: warning: implicit declaration of function `printk' main.c:246: `KERN_WARNING' undeclared (first use in this function) main.c:246: syntax error before string constant main.c:256: warning: implicit declaration of function `kmalloc' main.c:256: `GFP_KERNEL' undeclared (first use in this function) main.c:256: warning: assignment makes pointer from integer without a cast main.c:259: warning: implicit declaration of function `unregister_chrdev' main.c:263: warning: implicit declaration of function `memset' main.c:264: warning: left-hand operand of comma expression has no effect main.c:266: warning: left-hand operand of comma expression has no effect main.c:267: warning: implicit declaration of function `init_waitqueue_head' main.c: In function `cleanup_module': main.c:290: request for member `devExt' in something not a structure or union main.c:291: warning: implicit declaration of function `kfree' main.c:291: request for member `devExt' in something not a structure or union /usr/include/asm-s390/uaccess.h: At top level: main.c:120: storage size of `cpint_fops' isn't known main.c:124: storage size of `cpcmd_fops' isn't known main.c:132: storage size of `applmon_fops' isn't known main.c:139: storage size of `account_fops' isn't known make: *** [main.o] Error 1 TIA, Luis. ______________________________ EMPREL, http://www.recife.pe.gov.br ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
