You are not logged in.

#1 2008-06-27 19:56:00

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Trouble compiling gunzets xorg driver

I have a Panasonic Toughbook CF-M34 with a resistive touchscreen, and apparently, I need an xorg driver called "gunzets" to make it work.  So I downloaded the sources and I'm putting a PKGBUILD together for it.  Buuuuut ... it won't make.  Here's what I get ...

[max@coppertop gunzets-1.4]$ make
cc -Wall -O3 -fomit-frame-pointer -I/usr/src/linux/include   -c -o gunzets.o gunzets.c
gunzets.c:28:26: error: linux/module.h: No such file or directory
gunzets.c:31:26: error: linux/malloc.h: No such file or directory
gunzets.c:32:24: error: linux/init.h: No such file or directory
gunzets.c:33:25: error: linux/ctype.h: No such file or directory
gunzets.c:37:23: error: linux/usb.h: No such file or directory
gunzets.c:41:30: error: linux/miscdevice.h: No such file or directory
gunzets.c:42:25: error: asm/uaccess.h: No such file or directory
gunzets.c:48: error: expected ')' before string constant
gunzets.c:60: error: expected specifier-qualifier-list before 'wait_queue_head_t'
gunzets.c:70: error: field 'urb' has incomplete type
gunzets.c:71: error: field 'idev' has incomplete type
gunzets.c: In function 'gunzets_release_dev':
gunzets.c:80: warning: implicit declaration of function 'wake_up_interruptible'
gunzets.c:80: error: 'struct gunzets_buf' has no member named 'queue'
gunzets.c:81: warning: implicit declaration of function 'kfree'
gunzets.c:83: error: 'NULL' undeclared (first use in this function)
gunzets.c:83: error: (Each undeclared identifier is reported only once
gunzets.c:83: error: for each function it appears in.)
gunzets.c: In function 'gunzets_alloc_dev':
gunzets.c:89: error: 'NULL' undeclared (first use in this function)
gunzets.c:90: warning: implicit declaration of function 'kmalloc'
gunzets.c:90: error: 'GFP_KERNEL' undeclared (first use in this function)
gunzets.c:90: warning: assignment makes pointer from integer without a cast
gunzets.c:92: warning: implicit declaration of function 'memset'
gunzets.c:92: warning: incompatible implicit declaration of built-in function 'memset'
gunzets.c:93: warning: assignment makes pointer from integer without a cast
gunzets.c:96: warning: implicit declaration of function 'init_waitqueue_head'
gunzets.c:96: error: 'struct gunzets_buf' has no member named 'queue'
gunzets.c:100: warning: implicit declaration of function 'printk'
gunzets.c:100: error: 'KERN_ERR' undeclared (first use in this function)
gunzets.c:100: error: expected ')' before string constant
gunzets.c: In function 'gunzets_write_buffer':
gunzets.c:111: warning: implicit declaration of function 'memcpy'
gunzets.c:111: warning: incompatible implicit declaration of built-in function 'memcpy'
gunzets.c:113: error: 'struct gunzets_buf' has no member named 'queue'
gunzets.c: In function 'gunzets_irq':
gunzets.c:119: error: dereferencing pointer to incomplete type
gunzets.c:120: warning: pointer targets in initialization differ in signedness
gunzets.c:124: error: dereferencing pointer to incomplete type
gunzets.c:124: error: 'USB_ST_NOERROR' undeclared (first use in this function)
gunzets.c:127: error: 'KERN_WARNING' undeclared (first use in this function)
gunzets.c:127: error: expected ')' before string constant
gunzets.c:139: error: 'KERN_DEBUG' undeclared (first use in this function)
gunzets.c:139: error: expected ')' before string constant
gunzets.c:141: error: expected ')' before string constant
gunzets.c:153: warning: pointer targets in passing argument 2 of 'gunzets_write_buffer' differ in signedness
gunzets.c:121: warning: unused variable 'flags'
gunzets.c: At top level:
gunzets.c:163: warning: 'struct usb_device' declared inside parameter list
gunzets.c:163: warning: its scope is only this definition or declaration, which is probably not what you want
gunzets.c: In function 'gunzets_disconnect':
gunzets.c:169: warning: implicit declaration of function 'usb_unlink_urb'
gunzets.c:171: warning: implicit declaration of function 'input_unregister_device'
gunzets.c:174: error: 'KERN_INFO' undeclared (first use in this function)
gunzets.c:174: error: expected ')' before string constant
gunzets.c:175: error: 'MOD_DEC_USE_COUNT' undeclared (first use in this function)
gunzets.c:178:40: error: missing binary operator before token "("
gunzets.c: At top level:
gunzets.c:183: warning: 'struct usb_device_id' declared inside parameter list
gunzets.c:183: warning: 'struct usb_device' declared inside parameter list
gunzets.c: In function 'gunzets_probe':
gunzets.c:190: error: dereferencing pointer to incomplete type
gunzets.c:190: error: 'NULL' undeclared (first use in this function)
gunzets.c:191: error: dereferencing pointer to incomplete type
gunzets.c:194: error: dereferencing pointer to incomplete type
gunzets.c:195: error: dereferencing pointer to incomplete type
gunzets.c:197: error: dereferencing pointer to incomplete type
gunzets.c:198: error: dereferencing pointer to incomplete type
gunzets.c:200: error: dereferencing pointer to incomplete type
gunzets.c:201: error: dereferencing pointer to incomplete type
gunzets.c:205: warning: implicit declaration of function 'usb_set_protocol'
gunzets.c:205: error: dereferencing pointer to incomplete type
gunzets.c:206: warning: implicit declaration of function 'usb_set_idle'
gunzets.c:206: error: dereferencing pointer to incomplete type
gunzets.c:210: warning: implicit declaration of function 'usb_rcvintpipe'
gunzets.c:210: error: dereferencing pointer to incomplete type
gunzets.c:211: warning: implicit declaration of function 'usb_maxpacket'
gunzets.c:211: warning: implicit declaration of function 'usb_pipeout'
gunzets.c:213: warning: implicit declaration of function 'FILL_INT_URB'
gunzets.c:215: error: dereferencing pointer to incomplete type
gunzets.c:219: warning: implicit declaration of function 'usb_submit_urb'
gunzets.c:226: warning: implicit declaration of function 'BIT'
gunzets.c:227: warning: implicit declaration of function 'set_bit'
gunzets.c:232: warning: implicit declaration of function 'input_register_device'
gunzets.c:235: error: 'KERN_INFO' undeclared (first use in this function)
gunzets.c:235: error: expected ')' before string constant
gunzets.c:238: error: 'MOD_INC_USE_COUNT' undeclared (first use in this function)
gunzets.c: At top level:
gunzets.c:247: error: variable 'gunzets_usb_driver' has initializer but incomplete type
gunzets.c:248: error: unknown field 'name' specified in initializer
gunzets.c:248: warning: excess elements in struct initializer
gunzets.c:248: warning: (near initialization for 'gunzets_usb_driver')
gunzets.c:249: error: unknown field 'probe' specified in initializer
gunzets.c:249: warning: excess elements in struct initializer
gunzets.c:249: warning: (near initialization for 'gunzets_usb_driver')
gunzets.c:250: error: unknown field 'disconnect' specified in initializer
gunzets.c:250: warning: excess elements in struct initializer
gunzets.c:250: warning: (near initialization for 'gunzets_usb_driver')
gunzets.c:259: warning: 'struct file' declared inside parameter list
gunzets.c: In function 'gunzets_read_from_buffer':
gunzets.c:264: error: dereferencing pointer to incomplete type
gunzets.c:264: error: 'O_NONBLOCK' undeclared (first use in this function)
gunzets.c:265: error: 'EAGAIN' undeclared (first use in this function)
gunzets.c:266: warning: implicit declaration of function 'interruptible_sleep_on'
gunzets.c:266: error: 'struct gunzets_buf' has no member named 'queue'
gunzets.c:267: warning: implicit declaration of function 'signal_pending'
gunzets.c:267: error: 'current' undeclared (first use in this function)
gunzets.c:268: error: 'ERESTARTSYS' undeclared (first use in this function)
gunzets.c:273: warning: implicit declaration of function 'copy_to_user'
gunzets.c: At top level:
gunzets.c:279: warning: 'struct file' declared inside parameter list
gunzets.c: In function 'gunzets_read':
gunzets.c:284: error: dereferencing pointer to incomplete type
gunzets.c:285: warning: passing argument 1 of 'gunzets_read_from_buffer' from incompatible pointer type
gunzets.c: At top level:
gunzets.c:288: warning: 'struct poll_table_struct' declared inside parameter list
gunzets.c:288: warning: 'struct file' declared inside parameter list
gunzets.c: In function 'gunzets_poll':
gunzets.c:295: error: dereferencing pointer to incomplete type
gunzets.c:299: warning: implicit declaration of function 'poll_wait'
gunzets.c:299: error: 'struct gunzets_buf' has no member named 'queue'
gunzets.c: At top level:
gunzets.c:303: warning: 'struct file' declared inside parameter list
gunzets.c:303: warning: 'struct inode' declared inside parameter list
gunzets.c: In function 'gunzets_open':
gunzets.c:308: error: dereferencing pointer to incomplete type
gunzets.c:308: error: 'FMODE_READ' undeclared (first use in this function)
gunzets.c:309: error: 'MOD_INC_USE_COUNT' undeclared (first use in this function)
gunzets.c:312: error: 'ENODEV' undeclared (first use in this function)
gunzets.c:318: error: dereferencing pointer to incomplete type
gunzets.c: At top level:
gunzets.c:323: warning: 'struct file' declared inside parameter list
gunzets.c:323: warning: 'struct inode' declared inside parameter list
gunzets.c: In function 'gunzets_release':
gunzets.c:325: error: 'MOD_DEC_USE_COUNT' undeclared (first use in this function)
gunzets.c: At top level:
gunzets.c:329: error: variable 'gunzets_file_operations' has initializer but incomplete type
gunzets.c:330: error: unknown field 'read' specified in initializer
gunzets.c:330: warning: excess elements in struct initializer
gunzets.c:330: warning: (near initialization for 'gunzets_file_operations')
gunzets.c:331: error: unknown field 'poll' specified in initializer
gunzets.c:331: warning: excess elements in struct initializer
gunzets.c:331: warning: (near initialization for 'gunzets_file_operations')
gunzets.c:332: error: unknown field 'open' specified in initializer
gunzets.c:332: warning: excess elements in struct initializer
gunzets.c:332: warning: (near initialization for 'gunzets_file_operations')
gunzets.c:333: error: unknown field 'release' specified in initializer
gunzets.c:333: warning: excess elements in struct initializer
gunzets.c:333: warning: (near initialization for 'gunzets_file_operations')
gunzets.c:337: error: variable 'gunzets_misc' has initializer but incomplete type
gunzets.c:338: error: unknown field 'name' specified in initializer
gunzets.c:338: warning: excess elements in struct initializer
gunzets.c:338: warning: (near initialization for 'gunzets_misc')
gunzets.c:339: error: unknown field 'minor' specified in initializer
gunzets.c:339: error: 'MISC_DYNAMIC_MINOR' undeclared here (not in a function)
gunzets.c:339: warning: excess elements in struct initializer
gunzets.c:339: warning: (near initialization for 'gunzets_misc')
gunzets.c:340: error: unknown field 'fops' specified in initializer
gunzets.c:340: warning: excess elements in struct initializer
gunzets.c:340: warning: (near initialization for 'gunzets_misc')
gunzets.c: In function 'gunzets_exit':
gunzets.c:357: warning: implicit declaration of function 'usb_deregister'
gunzets.c:359: warning: implicit declaration of function 'misc_deregister'
gunzets.c:361: error: invalid use of undefined type 'struct miscdevice'
gunzets.c: In function 'gunzets_init':
gunzets.c:369: warning: implicit declaration of function 'usb_register'
gunzets.c:376: warning: implicit declaration of function 'misc_register'
gunzets.c: At top level:
gunzets.c:385: warning: data definition has no type or storage class
gunzets.c:385: warning: type defaults to 'int' in declaration of 'module_init'
gunzets.c:385: warning: parameter names (without types) in function declaration
gunzets.c:386: warning: data definition has no type or storage class
gunzets.c:386: warning: type defaults to 'int' in declaration of 'module_exit'
gunzets.c:386: warning: parameter names (without types) in function declaration
make: *** [gunzets.o] Error 1
[max@coppertop gunzets-1.4]$

Ouch.  I then realized in a big way that the include directory is off, so I gave make a flag for it ...

[max@coppertop gunzets-1.4]$ make --include-dir=/usr/src/linux-2.6.25-ARCH/include
cc -Wall -O3 -fomit-frame-pointer -I/usr/src/linux/include   -c -o gunzets.o gunzets.c
gunzets.c:28:26: error: linux/module.h: No such file or directory
gunzets.c:31:26: error: linux/malloc.h: No such file or directory
gunzets.c:32:24: error: linux/init.h: No such file or directory
gunzets.c:33:25: error: linux/ctype.h: No such file or directory
gunzets.c:37:23: error: linux/usb.h: No such file or directory
gunzets.c:41:30: error: linux/miscdevice.h: No such file or directory
gunzets.c:42:25: error: asm/uaccess.h: No such file or directory
gunzets.c:48: error: expected ')' before string constant
gunzets.c:60: error: expected specifier-qualifier-list before 'wait_queue_head_t'
gunzets.c:70: error: field 'urb' has incomplete type
gunzets.c:71: error: field 'idev' has incomplete type
gunzets.c: In function 'gunzets_release_dev':
gunzets.c:80: warning: implicit declaration of function 'wake_up_interruptible'
gunzets.c:80: error: 'struct gunzets_buf' has no member named 'queue'
gunzets.c:81: warning: implicit declaration of function 'kfree'
gunzets.c:83: error: 'NULL' undeclared (first use in this function)
gunzets.c:83: error: (Each undeclared identifier is reported only once
gunzets.c:83: error: for each function it appears in.)
gunzets.c: In function 'gunzets_alloc_dev':
gunzets.c:89: error: 'NULL' undeclared (first use in this function)
gunzets.c:90: warning: implicit declaration of function 'kmalloc'
gunzets.c:90: error: 'GFP_KERNEL' undeclared (first use in this function)
gunzets.c:90: warning: assignment makes pointer from integer without a cast
gunzets.c:92: warning: implicit declaration of function 'memset'
gunzets.c:92: warning: incompatible implicit declaration of built-in function 'memset'
gunzets.c:93: warning: assignment makes pointer from integer without a cast
gunzets.c:96: warning: implicit declaration of function 'init_waitqueue_head'
gunzets.c:96: error: 'struct gunzets_buf' has no member named 'queue'
gunzets.c:100: warning: implicit declaration of function 'printk'
gunzets.c:100: error: 'KERN_ERR' undeclared (first use in this function)
gunzets.c:100: error: expected ')' before string constant
gunzets.c: In function 'gunzets_write_buffer':
gunzets.c:111: warning: implicit declaration of function 'memcpy'
gunzets.c:111: warning: incompatible implicit declaration of built-in function 'memcpy'
gunzets.c:113: error: 'struct gunzets_buf' has no member named 'queue'
gunzets.c: In function 'gunzets_irq':
gunzets.c:119: error: dereferencing pointer to incomplete type
gunzets.c:120: warning: pointer targets in initialization differ in signedness
gunzets.c:124: error: dereferencing pointer to incomplete type
gunzets.c:124: error: 'USB_ST_NOERROR' undeclared (first use in this function)
gunzets.c:127: error: 'KERN_WARNING' undeclared (first use in this function)
gunzets.c:127: error: expected ')' before string constant
gunzets.c:139: error: 'KERN_DEBUG' undeclared (first use in this function)
gunzets.c:139: error: expected ')' before string constant
gunzets.c:141: error: expected ')' before string constant
gunzets.c:153: warning: pointer targets in passing argument 2 of 'gunzets_write_buffer' differ in signedness
gunzets.c:121: warning: unused variable 'flags'
gunzets.c: At top level:
gunzets.c:163: warning: 'struct usb_device' declared inside parameter list
gunzets.c:163: warning: its scope is only this definition or declaration, which is probably not what you want
gunzets.c: In function 'gunzets_disconnect':
gunzets.c:169: warning: implicit declaration of function 'usb_unlink_urb'
gunzets.c:171: warning: implicit declaration of function 'input_unregister_device'
gunzets.c:174: error: 'KERN_INFO' undeclared (first use in this function)
gunzets.c:174: error: expected ')' before string constant
gunzets.c:175: error: 'MOD_DEC_USE_COUNT' undeclared (first use in this function)
gunzets.c:178:40: error: missing binary operator before token "("
gunzets.c: At top level:
gunzets.c:183: warning: 'struct usb_device_id' declared inside parameter list
gunzets.c:183: warning: 'struct usb_device' declared inside parameter list
gunzets.c: In function 'gunzets_probe':
gunzets.c:190: error: dereferencing pointer to incomplete type
gunzets.c:190: error: 'NULL' undeclared (first use in this function)
gunzets.c:191: error: dereferencing pointer to incomplete type
gunzets.c:194: error: dereferencing pointer to incomplete type
gunzets.c:195: error: dereferencing pointer to incomplete type
gunzets.c:197: error: dereferencing pointer to incomplete type
gunzets.c:198: error: dereferencing pointer to incomplete type
gunzets.c:200: error: dereferencing pointer to incomplete type
gunzets.c:201: error: dereferencing pointer to incomplete type
gunzets.c:205: warning: implicit declaration of function 'usb_set_protocol'
gunzets.c:205: error: dereferencing pointer to incomplete type
gunzets.c:206: warning: implicit declaration of function 'usb_set_idle'
gunzets.c:206: error: dereferencing pointer to incomplete type
gunzets.c:210: warning: implicit declaration of function 'usb_rcvintpipe'
gunzets.c:210: error: dereferencing pointer to incomplete type
gunzets.c:211: warning: implicit declaration of function 'usb_maxpacket'
gunzets.c:211: warning: implicit declaration of function 'usb_pipeout'
gunzets.c:213: warning: implicit declaration of function 'FILL_INT_URB'
gunzets.c:215: error: dereferencing pointer to incomplete type
gunzets.c:219: warning: implicit declaration of function 'usb_submit_urb'
gunzets.c:226: warning: implicit declaration of function 'BIT'
gunzets.c:227: warning: implicit declaration of function 'set_bit'
gunzets.c:232: warning: implicit declaration of function 'input_register_device'
gunzets.c:235: error: 'KERN_INFO' undeclared (first use in this function)
gunzets.c:235: error: expected ')' before string constant
gunzets.c:238: error: 'MOD_INC_USE_COUNT' undeclared (first use in this function)
gunzets.c: At top level:
gunzets.c:247: error: variable 'gunzets_usb_driver' has initializer but incomplete type
gunzets.c:248: error: unknown field 'name' specified in initializer
gunzets.c:248: warning: excess elements in struct initializer
gunzets.c:248: warning: (near initialization for 'gunzets_usb_driver')
gunzets.c:249: error: unknown field 'probe' specified in initializer
gunzets.c:249: warning: excess elements in struct initializer
gunzets.c:249: warning: (near initialization for 'gunzets_usb_driver')
gunzets.c:250: error: unknown field 'disconnect' specified in initializer
gunzets.c:250: warning: excess elements in struct initializer
gunzets.c:250: warning: (near initialization for 'gunzets_usb_driver')
gunzets.c:259: warning: 'struct file' declared inside parameter list
gunzets.c: In function 'gunzets_read_from_buffer':
gunzets.c:264: error: dereferencing pointer to incomplete type
gunzets.c:264: error: 'O_NONBLOCK' undeclared (first use in this function)
gunzets.c:265: error: 'EAGAIN' undeclared (first use in this function)
gunzets.c:266: warning: implicit declaration of function 'interruptible_sleep_on'
gunzets.c:266: error: 'struct gunzets_buf' has no member named 'queue'
gunzets.c:267: warning: implicit declaration of function 'signal_pending'
gunzets.c:267: error: 'current' undeclared (first use in this function)
gunzets.c:268: error: 'ERESTARTSYS' undeclared (first use in this function)
gunzets.c:273: warning: implicit declaration of function 'copy_to_user'
gunzets.c: At top level:
gunzets.c:279: warning: 'struct file' declared inside parameter list
gunzets.c: In function 'gunzets_read':
gunzets.c:284: error: dereferencing pointer to incomplete type
gunzets.c:285: warning: passing argument 1 of 'gunzets_read_from_buffer' from incompatible pointer type
gunzets.c: At top level:
gunzets.c:288: warning: 'struct poll_table_struct' declared inside parameter list
gunzets.c:288: warning: 'struct file' declared inside parameter list
gunzets.c: In function 'gunzets_poll':
gunzets.c:295: error: dereferencing pointer to incomplete type
gunzets.c:299: warning: implicit declaration of function 'poll_wait'
gunzets.c:299: error: 'struct gunzets_buf' has no member named 'queue'
gunzets.c: At top level:
gunzets.c:303: warning: 'struct file' declared inside parameter list
gunzets.c:303: warning: 'struct inode' declared inside parameter list
gunzets.c: In function 'gunzets_open':
gunzets.c:308: error: dereferencing pointer to incomplete type
gunzets.c:308: error: 'FMODE_READ' undeclared (first use in this function)
gunzets.c:309: error: 'MOD_INC_USE_COUNT' undeclared (first use in this function)
gunzets.c:312: error: 'ENODEV' undeclared (first use in this function)
gunzets.c:318: error: dereferencing pointer to incomplete type
gunzets.c: At top level:
gunzets.c:323: warning: 'struct file' declared inside parameter list
gunzets.c:323: warning: 'struct inode' declared inside parameter list
gunzets.c: In function 'gunzets_release':
gunzets.c:325: error: 'MOD_DEC_USE_COUNT' undeclared (first use in this function)
gunzets.c: At top level:
gunzets.c:329: error: variable 'gunzets_file_operations' has initializer but incomplete type
gunzets.c:330: error: unknown field 'read' specified in initializer
gunzets.c:330: warning: excess elements in struct initializer
gunzets.c:330: warning: (near initialization for 'gunzets_file_operations')
gunzets.c:331: error: unknown field 'poll' specified in initializer
gunzets.c:331: warning: excess elements in struct initializer
gunzets.c:331: warning: (near initialization for 'gunzets_file_operations')
gunzets.c:332: error: unknown field 'open' specified in initializer
gunzets.c:332: warning: excess elements in struct initializer
gunzets.c:332: warning: (near initialization for 'gunzets_file_operations')
gunzets.c:333: error: unknown field 'release' specified in initializer
gunzets.c:333: warning: excess elements in struct initializer
gunzets.c:333: warning: (near initialization for 'gunzets_file_operations')
gunzets.c:337: error: variable 'gunzets_misc' has initializer but incomplete type
gunzets.c:338: error: unknown field 'name' specified in initializer
gunzets.c:338: warning: excess elements in struct initializer
gunzets.c:338: warning: (near initialization for 'gunzets_misc')
gunzets.c:339: error: unknown field 'minor' specified in initializer
gunzets.c:339: error: 'MISC_DYNAMIC_MINOR' undeclared here (not in a function)
gunzets.c:339: warning: excess elements in struct initializer
gunzets.c:339: warning: (near initialization for 'gunzets_misc')
gunzets.c:340: error: unknown field 'fops' specified in initializer
gunzets.c:340: warning: excess elements in struct initializer
gunzets.c:340: warning: (near initialization for 'gunzets_misc')
gunzets.c: In function 'gunzets_exit':
gunzets.c:357: warning: implicit declaration of function 'usb_deregister'
gunzets.c:359: warning: implicit declaration of function 'misc_deregister'
gunzets.c:361: error: invalid use of undefined type 'struct miscdevice'
gunzets.c: In function 'gunzets_init':
gunzets.c:369: warning: implicit declaration of function 'usb_register'
gunzets.c:376: warning: implicit declaration of function 'misc_register'
gunzets.c: At top level:
gunzets.c:385: warning: data definition has no type or storage class
gunzets.c:385: warning: type defaults to 'int' in declaration of 'module_init'
gunzets.c:385: warning: parameter names (without types) in function declaration
gunzets.c:386: warning: data definition has no type or storage class
gunzets.c:386: warning: type defaults to 'int' in declaration of 'module_exit'
gunzets.c:386: warning: parameter names (without types) in function declaration
make: *** [gunzets.o] Error 1
[max@coppertop gunzets-1.4]$

... but it seems to be ignoring my flag.  What do I do?

Last edited by synthead (2008-06-27 19:57:12)

Offline

#2 2008-06-27 21:11:48

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: Trouble compiling gunzets xorg driver

well, the argument to make should be KERNELDIR=/usr/src/linux-2.6.25-ARCH, however getting that right leads to its own problems.  The changelog for the source lists the last change as November 2003 and the kernel has changed a lot since then, it looks like this module needs updating to work with the current kernel.  I've fixed some problems but theres one I cant seem to find a fix for.

 make  KERNELDIR=/usr/src/linux-2.6.25-ARCH
cc -Wall -O3 -fomit-frame-pointer -I/usr/src/linux-2.6.25-ARCH/include   -c -o gunzets.o gunzets.c
In file included from gunzets.c:39:
/usr/src/linux-2.6.25-ARCH/include/linux/usb.h: In function 'usb_register':
/usr/src/linux-2.6.25-ARCH/include/linux/usb.h:1035: error: 'KBUILD_MODNAME' undeclared (first use in this function)
/usr/src/linux-2.6.25-ARCH/include/linux/usb.h:1035: error: (Each undeclared identifier is reported only once
/usr/src/linux-2.6.25-ARCH/include/linux/usb.h:1035: error: for each function it appears in.)
gunzets.c: At top level:
........

The only reference to KBUILD_MODNAME that I can find that might be relevant is in moduleparam.h

#ifdef MODULE
#define MODULE_PARAM_PREFIX /* empty */
#else
#define MODULE_PARAM_PREFIX KBUILD_MODNAME "."
#endif

however, including this header does not seem to have any effect.  Also, I'm not fully convinced that I know whats going on as I'm only starting to learn C and the kernel is a complicated beast smile

Last edited by ghostHack (2008-06-27 21:12:51)

Offline

#3 2008-06-29 20:00:41

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Trouble compiling gunzets xorg driver

Ah, alright.  I had the feeling that this was ancient.  I'm going to try to get it to work with a different driver.  I would imagine evtouch would work.

Offline

#4 2009-04-07 00:59:15

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Trouble compiling gunzets xorg driver

No luck so far, anybody have any similar issues or a solution?

Offline

Board footer

Powered by FluxBB