$ sudo make[sudo] password for chandra: gcc -D__KERNEL__ -I/usr/src/linux/include -DCPU=586 -march=i586 -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -DMODULE -c pl2303.cpl2303.c:12:26: error: linux/config.h: No such file or directoryIn file included from /usr/include/asm/siginfo.h:8, from /usr/include/linux/signal.h:5, from pl2303.c:15:/usr/include/asm-generic/siginfo.h:57: error: size of array ‘_pad’ is too largepl2303.c:18:24: error: linux/init.h: No such file or directorypl2303.c:19:24: error: linux/slab.h: No such file or directorypl2303.c:22:30: error: linux/tty_driver.h: No such file or directorypl2303.c:23:28: error: linux/tty_flip.h: No such file or directorypl2303.c:24:26: error: linux/module.h: No such file or directorypl2303.c:25:28: error: linux/spinlock.h: No such file or directorypl2303.c:26:23: error: linux/usb.h: No such file or directoryIn file included from pl2303.c:33:usb-serial.h:72: error: expected specifier-qualifier-list before ‘wait_queue_head_t’usb-serial.h:117: error: field ‘driver_list’ has incomplete typeusb-serial.h:127: warning: ‘struct file’ declared inside parameter listusb-serial.h:127: warning: its scope is only this definition or declaration, which is probably not what you wantusb-serial.h:128: warning: ‘struct file’ declared inside parameter listusb-serial.h:131: warning: ‘struct file’ declared inside parameter listusb-serial.h:132: warning: ‘struct termios’ declared inside parameter listusb-serial.h: In function ‘serial_paranoia_check’:usb-serial.h:164: warning: implicit declaration of function ‘dbg’pl2303.c: At top level:pl2303.c:42: warning: ‘struct file’ declared inside parameter listpl2303.c:43: warning: ‘struct file’ declared inside parameter listpl2303.c:45: warning: ‘struct termios’ declared inside parameter listpl2303.c:47: warning: ‘struct file’ declared inside parameter listpl2303.c:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘struct’pl2303.c:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘struct’pl2303.c:63: warning: data definition has no type or storage classpl2303.c:63: warning: type defaults to ‘int’ in declaration of ‘MODULE_DEVICE_TABLE’pl2303.c:63: warning: parameter names (without types) in function declarationpl2303.c:70: error: ‘prolific_sa_table’ undeclared here (not in a function)pl2303.c:78: warning: initialization from incompatible pointer typepl2303.c:79: warning: initialization from incompatible pointer typepl2303.c:83: warning: initialization from incompatible pointer typepl2303.c:84: warning: initialization from incompatible pointer typepl2303.c: In function ‘prolific_sa_startup’:pl2303.c:137: error: ‘struct usb_serial_port’ has no member named ‘private’pl2303.c:137: warning: implicit declaration of function ‘kmalloc’pl2303.c:137: error: ‘GFP_KERNEL’ undeclared (first use in this function)pl2303.c:137: error: (Each undeclared identifier is reported only oncepl2303.c:137: error: for each function it appears in.)pl2303.c:138: error: ‘struct usb_serial_port’ has no member named ‘private’pl2303.c:140: error: ‘struct usb_serial_port’ has no member named ‘private’pl2303.c:148: error: dereferencing pointer to incomplete typepl2303.c:149: warning: implicit declaration of function ‘info’pl2303.c:149: error: dereferencing pointer to incomplete typepl2303.c:151: warning: implicit declaration of function ‘init_waitqueue_head’pl2303.c:151: error: ‘struct usb_serial_port’ has no member named ‘write_wait’pl2303.c: In function ‘prolific_sa_shutdown’:pl2303.c:164: error: ‘struct usb_serial_port’ has no member named ‘open_count’pl2303.c:169: error: ‘struct usb_serial_port’ has no member named ‘private’pl2303.c:170: warning: implicit declaration of function ‘kfree’pl2303.c:170: error: ‘struct usb_serial_port’ has no member named ‘private’pl2303.c: At top level:pl2303.c:174: warning: ‘struct file’ declared inside parameter listpl2303.c:174: error: conflicting types for ‘prolific_sa_open’pl2303.c:42: error: previous declaration of ‘prolific_sa_open’ was herepl2303.c: In function ‘prolific_sa_open’:pl2303.c:178: error: expected ‘)’ before string constantpl2303.c:180: warning: implicit declaration of function ‘spin_lock_irqsave’pl2303.c:180: error: ‘struct usb_serial_port’ has no member named ‘port_lock’pl2303.c:182: error: ‘struct usb_serial_port’ has no member named ‘open_count’pl2303.c:183: error: ‘MOD_INC_USE_COUNT’ undeclared (first use in this function)pl2303.c:193: error: dereferencing pointer to incomplete typepl2303.c:194: warning: implicit declaration of function ‘usb_submit_urb’pl2303.c:195: warning: implicit declaration of function ‘err’pl2303.c:197: error: dereferencing pointer to incomplete typepl2303.c:202: warning: implicit declaration of function ‘spin_unlock_irqrestore’pl2303.c:202: error: ‘struct usb_serial_port’ has no member named ‘port_lock’pl2303.c: At top level:pl2303.c:207: warning: ‘struct file’ declared inside parameter listpl2303.c:207: error: conflicting types for ‘prolific_sa_close’pl2303.c:43: error: previous declaration of ‘prolific_sa_close’ was herepl2303.c: In function ‘prolific_sa_close’:pl2303.c:211: error: expected ‘)’ before string constantpl2303.c:213: error: ‘struct usb_serial_port’ has no member named ‘port_lock’pl2303.c:215: error: ‘struct usb_serial_port’ has no member named ‘open_count’pl2303.c:216: error: ‘MOD_DEC_USE_COUNT’ undeclared (first use in this function)pl2303.c:218: error: ‘struct usb_serial_port’ has no member named ‘open_count’pl2303.c:220: warning: implicit declaration of function ‘usb_unlink_urb’pl2303.c:226: error: ‘struct usb_serial_port’ has no member named ‘port_lock’pl2303.c: In function ‘prolific_sa_read_int_callback’:pl2303.c:231: error: dereferencing pointer to incomplete typepl2303.c:232: error: ‘struct usb_serial_port’ has no member named ‘private’pl2303.c:234: error: dereferencing pointer to incomplete typepl2303.c:237: error: dereferencing pointer to incomplete typepl2303.c:247: error: dereferencing pointer to incomplete typepl2303.c:257: error: ‘TIOCM_DSR’ undeclared (first use in this function)pl2303.c:262: error: ‘TIOCM_CTS’ undeclared (first use in this function)pl2303.c:267: error: ‘TIOCM_RI’ undeclared (first use in this function)pl2303.c:272: error: ‘TIOCM_CD’ undeclared (first use in this function)pl2303.c: At top level:pl2303.c:302: warning: ‘struct termios’ declared inside parameter listpl2303.c:302: error: conflicting types for ‘prolific_sa_set_termios’pl2303.c:45: error: previous declaration of ‘prolific_sa_set_termios’ was herepl2303.c: In function ‘prolific_sa_set_termios’:pl2303.c:305: error: ‘struct usb_serial_port’ has no member named ‘private’pl2303.c:306: error: dereferencing pointer to incomplete typepl2303.c:307: error: dereferencing pointer to incomplete typepl2303.c:311: error: expected ‘)’ before string constantpl2303.c:314: error: ‘CBAUD’ undeclared (first use in this function)pl2303.c:316: error: ‘B0’ undeclared (first use in this function)pl2303.c:317: error: ‘TIOCM_DTR’ undeclared (first use in this function)pl2303.c:317: error: ‘TIOCM_RTS’ undeclared (first use in this function)pl2303.c:318: warning: implicit declaration of function ‘usb_control_msg’pl2303.c:318: warning: implicit declaration of function ‘usb_sndctrlpipe’pl2303.c:318: error: ‘HZ’ undeclared (first use in this function)pl2303.c:322: error: ‘CRTSCTS’ undeclared (first use in this function)pl2303.c:329: error: ‘B150’ undeclared (first use in this function)pl2303.c:330: error: ‘B300’ undeclared (first use in this function)pl2303.c:331: error: ‘B600’ undeclared (first use in this function)pl2303.c:332: error: ‘B1200’ undeclared (first use in this function)pl2303.c:333: error: ‘B2400’ undeclared (first use in this function)pl2303.c:334: error: ‘B4800’ undeclared (first use in this function)pl2303.c:335: error: ‘B9600’ undeclared (first use in this function)pl2303.c:336: error: ‘B19200’ undeclared (first use in this function)pl2303.c:337: error: ‘B38400’ undeclared (first use in this function)pl2303.c:338: error: ‘B115200’ undeclared (first use in this function)pl2303.c:339: error: ‘B230400’ undeclared (first use in this function)pl2303.c:340: error: ‘B460800’ undeclared (first use in this function)pl2303.c:354: error: ‘PARENB’ undeclared (first use in this function)pl2303.c:354: error: ‘PARODD’ undeclared (first use in this function)pl2303.c:362: error: ‘CSIZE’ undeclared (first use in this function)pl2303.c:365: error: ‘CS5’ undeclared (first use in this function)pl2303.c:366: error: ‘CS6’ undeclared (first use in this function)pl2303.c:367: error: ‘CS7’ undeclared (first use in this function)pl2303.c:368: error: ‘CS8’ undeclared (first use in this function)pl2303.c:373: error: ‘CSTOPB’ undeclared (first use in this function)pl2303.c:389: error: expected ‘)’ before string constantpl2303.c: In function ‘prolific_sa_break_ctl’:pl2303.c:400: error: ‘HZ’ undeclared (first use in this function)pl2303.c: At top level:pl2303.c:409: warning: ‘struct file’ declared inside parameter listpl2303.c:409: error: conflicting types for ‘prolific_sa_ioctl’pl2303.c:46: error: previous declaration of ‘prolific_sa_ioctl’ was herepl2303.c: In function ‘prolific_sa_ioctl’:pl2303.c:413: error: ‘struct usb_serial_port’ has no member named ‘private’pl2303.c:416: error: expected ‘)’ before string constantpl2303.c:421: error: ‘TIOCMGET’ undeclared (first use in this function)pl2303.c:423: warning: implicit declaration of function ‘put_user’pl2303.c:426: error: ‘TIOCMSET’ undeclared (first use in this function)pl2303.c:427: error: ‘TIOCMBIS’ undeclared (first use in this function)pl2303.c:428: error: ‘TIOCMBIC’ undeclared (first use in this function)pl2303.c:429: warning: implicit declaration of function ‘get_user’pl2303.c:434: error: ‘TIOCM_RTS’ undeclared (first use in this function)pl2303.c:443: error: ‘HZ’ undeclared (first use in this function)pl2303.c:455: error: ‘TIOCM_DTR’ undeclared (first use in this function)pl2303.c:479: error: ‘TIOCMIWAIT’ undeclared (first use in this function)pl2303.c:485: error: ‘TIOCGICOUNT’ undeclared (first use in this function)pl2303.c:493: error: ‘ENOIOCTLCMD’ undeclared (first use in this function)pl2303.c: In function ‘prolific_set_dcr_state’:pl2303.c:508: error: ‘struct usb_serial_port’ has no member named ‘private’pl2303.c:510: error: expected ‘)’ before string constantpl2303.c:512: error: ‘HZ’ undeclared (first use in this function)pl2303.c: In function ‘prolific_sa_write’:pl2303.c:537: error: expected ‘)’ before string constantpl2303.c:540: error: expected ‘)’ before string constantpl2303.c:552: error: dereferencing pointer to incomplete typepl2303.c:553: warning: implicit declaration of function ‘schedule’pl2303.c:555: error: ‘struct usb_serial_port’ has no member named ‘port_lock’pl2303.c:561: warning: implicit declaration of function ‘copy_from_user’pl2303.c:561: error: dereferencing pointer to incomplete typepl2303.c:564: warning: implicit declaration of function ‘memcpy’pl2303.c:564: warning: incompatible implicit declaration of built-in function ‘memcpy’pl2303.c:564: error: dereferencing pointer to incomplete typepl2303.c:568: warning: implicit declaration of function ‘FILL_BULK_URB’pl2303.c:568: warning: implicit declaration of function ‘usb_sndbulkpipe’pl2303.c:569: error: dereferencing pointer to incomplete typepl2303.c:576: error: expected ‘)’ before string constantpl2303.c:577: error: ‘struct usb_serial_port’ has no member named ‘port_lock’pl2303.c:581: error: ‘struct usb_serial_port’ has no member named ‘port_lock’pl2303.c: In function ‘prolific_sa_write_bulk_callback’:pl2303.c:591: error: dereferencing pointer to incomplete typepl2303.c:594: error: expected ‘)’ before string constantpl2303.c:597: error: expected ‘)’ before string constantpl2303.c:601: error: dereferencing pointer to incomplete typepl2303.c:602: error: expected ‘)’ before string constantpl2303.c:606: warning: implicit declaration of function ‘queue_task’pl2303.c:606: error: ‘struct usb_serial_port’ has no member named ‘tqueue’pl2303.c:606: error: ‘tq_immediate’ undeclared (first use in this function)pl2303.c:607: warning: implicit declaration of function ‘mark_bh’pl2303.c:607: error: ‘IMMEDIATE_BH’ undeclared (first use in this function)pl2303.c: At top level:pl2303.c:612: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘prolific_sa_init’pl2303.c:618: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘prolific_sa_exit’pl2303.c:623: warning: data definition has no type or storage classpl2303.c:623: warning: type defaults to ‘int’ in declaration of ‘module_init’pl2303.c:623: warning: parameter names (without types) in function declarationpl2303.c:624: warning: data definition has no type or storage classpl2303.c:624: warning: type defaults to ‘int’ in declaration of ‘module_exit’pl2303.c:624: warning: parameter names (without types) in function declarationpl2303.c:626: error: expected declaration specifiers or ‘...’ before string constantpl2303.c:626: warning: data definition has no type or storage classpl2303.c:626: warning: type defaults to ‘int’ in declaration of ‘MODULE_AUTHOR’pl2303.c:626: warning: function declaration isn’t a prototypepl2303.c:627: error: expected declaration specifiers or ‘...’ before string constantpl2303.c:627: warning: data definition has no type or storage classpl2303.c:627: warning: type defaults to ‘int’ in declaration of ‘MODULE_DESCRIPTION’pl2303.c:627: warning: function declaration isn’t a prototypepl2303.c:629: error: expected ‘)’ before string constantpl2303.c:630: error: expected ‘)’ before string constantmake: *** [pl2303.o] Error 1