Posted: 7/31/2005 2:13:51 PM EDT
|
Alright, as many of you know from another thread I'm a Linux newby. I switched all of my systems over to Fedora Core 4 and ditched windows and all of the windows based applications. My question is about drivers. I'm trying to install drivers for my GPS mouse and really have no clue where to go. The included documentation says nothing about installing the linux drivers. I have a folder with the following files. Makefile pl2303.c pl2303.h readme.txt (nothing useful in it) usbserial.c usb-serial.h I assume that the .c files are C source code and that it probably needs to be compiled but dont really know how to do that. Any help would be greatly appreciated. |
I'll bite. Post readme.txt. |
|
It appeared useless to me, but here it is. Release Information Driver Version for Linux 2.4.x : V0213 Released date: 02/13/2002 Files Included in This Release: pl2303.c pl2303.h usbserial.c usb-serial.h readme.txt makefile Changes in This Release: 1. To fixed using cat command problem in Linux |
I get the following. [schapman43@localhost Linux]$ make 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.c pl2303.c:1: error: CPU you selected does not support x86-64 instruction set pl2303.c:1: error: CPU you selected does not support x86-64 instruction set make: *** [pl2303.o] Error 1 [schapman43@localhost Linux]$ |
Ahh, I bet a configure script would have fixed this. Slap the developers for me. Do me a favor and post the contents of Makefile. |
|
Here is Makefile # Kernel includes. Please avoid # using '/usr/include' unless all # other options exhausted. # KINCLUDES=/usr/src/linux/include # uncomment line below if you have SMP #SMPFLAGS= -D__SMP__ -DCONFIG_SMP=1 # Unless you have a 386/486, you shouldn't need # to change anything below here... CPUFLAGS= -DCPU=586 -march=i586 MODULE= pl2303 CC= gcc KERNFLAGS= \ -D__KERNEL__ -I$(KINCLUDES) $(CPUFLAGS) $(SMPFLAGS) \ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ -fno-strict-aliasing -pipe -DMODULE EXTRA_CFLAGS= -DEXPORT_SYMTAB # DBGCFLAGS = -DDEBUG -DUSB_SERIAL_DEBUG CFLAGS= $(KERNFLAGS) $(DBGCFLAGS) all:: $(MODULE).o usbserial.o $(MODULE).o: $(MODULE).c usb-serial.h $(CC) $(CFLAGS) -c $< usbserial.o: usbserial.c usb-serial.h $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< inst: insmod ./usbserial.o insmod ./pl2303.o uninst: rmmod pl2303 rmmod usbserial clean: rm -f *.o |
Yikes! That made it really angry! :) [schapman43@localhost Linux]$ make CPUFLAGS='-DCPU=\"x86_64\" -march=athlon64' gcc -D__KERNEL__ -I/usr/src/linux/include -DCPU=\"x86_64\" -march=athlon64 -Wal l -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -DMODU LE -c pl2303.c In file included from pl2303.c:12: /usr/include/linux/config.h:5:2: error: #error Incorrectly using glibc headers f or a kernel module In file included from /usr/include/linux/sched.h:14, from pl2303.c:14: /usr/include/linux/timex.h:148: error: field ‘time’ has incomplete type In file included from /usr/include/asm/system.h:4, from /usr/include/linux/sched.h:16, from pl2303.c:14: /usr/include/asm-x86_64/system.h: In function ‘__cmpxchg’: /usr/include/asm-x86_64/system.h:74: error: syntax error before ‘LOCK_PREFIX’ /usr/include/asm-x86_64/system.h:80: error: syntax error before ‘LOCK_PREFIX’ /usr/include/asm-x86_64/system.h:86: error: syntax error before ‘LOCK_PREFIX’ /usr/include/asm-x86_64/system.h:92: error: syntax error before ‘LOCK_PREFIX’ In file included from /usr/include/asm/processor.h:4, from /usr/include/linux/sched.h:69, from pl2303.c:14: /usr/include/asm-x86_64/processor.h: At top level: /usr/include/asm-x86_64/processor.h:75: error: conflicting types for ‘____cachel ine_aligned’ /usr/include/asm-x86_64/pda.h:25: error: previous declaration of ‘____cacheline_ aligned’ was here /usr/include/asm-x86_64/processor.h:88: error: array type has incomplete element type /usr/include/asm-x86_64/processor.h:292: error: syntax error before ‘u16’ /usr/include/asm-x86_64/processor.h:294: error: syntax error before ‘twd’ /usr/include/asm-x86_64/processor.h:295: error: syntax error before ‘fop’ /usr/include/asm-x86_64/processor.h:296: error: syntax error before ‘rip’ /usr/include/asm-x86_64/processor.h:297: error: syntax error before ‘rdp’ /usr/include/asm-x86_64/processor.h:298: error: syntax error before ‘mxcsr’ /usr/include/asm-x86_64/processor.h:299: error: syntax error before ‘mxcsr_mask’ /usr/include/asm-x86_64/processor.h:300: error: syntax error before ‘st_space’ /usr/include/asm-x86_64/processor.h:301: error: syntax error before ‘xmm_space’ /usr/include/asm-x86_64/processor.h:302: error: syntax error before ‘padding’ /usr/include/asm-x86_64/processor.h:303: error: syntax error before ‘}’ token /usr/include/asm-x86_64/processor.h:306: error: field ‘fxsave’ has incomplete ty pe /usr/include/asm-x86_64/processor.h:314: error: syntax error before ‘u32’ /usr/include/asm-x86_64/processor.h:316: error: syntax error before ‘rsp1’ /usr/include/asm-x86_64/processor.h:317: error: syntax error before ‘rsp2’ /usr/include/asm-x86_64/processor.h:318: error: syntax error before ‘reserved2’ /usr/include/asm-x86_64/processor.h:319: error: syntax error before ‘ist’ /usr/include/asm-x86_64/processor.h:320: error: syntax error before ‘reserved3’ /usr/include/asm-x86_64/processor.h:321: error: syntax error before ‘reserved4’ /usr/include/asm-x86_64/processor.h:322: error: syntax error before ‘reserved5’ /usr/include/asm-x86_64/processor.h:323: error: syntax error before ‘io_map_base ’ /usr/include/asm-x86_64/processor.h:324: error: syntax error before ‘io_bitmap’ /usr/include/asm-x86_64/processor.h:325: error: syntax error before ‘}’ token /usr/include/asm-x86_64/processor.h:347: error: syntax error before ‘u32’ /usr/include/asm-x86_64/processor.h: In function ‘thread_saved_pc’: /usr/include/asm-x86_64/processor.h:396: error: dereferencing pointer to incompl ete type pl2303.c:19:24: error: linux/slab.h: No such file or directory In file included from pl2303.c:22: /usr/include/linux/tty_driver.h: At top level: /usr/include/linux/tty_driver.h:130: error: field ‘init_termios’ has incomplete type pl2303.c:23:28: error: linux/tty_flip.h: No such file or directory In file included from pl2303.c:33: usb-serial.h:72: error: syntax error before ‘wait_queue_head_t’ usb-serial.h:72: warning: no semicolon at end of struct or union usb-serial.h:76: error: syntax error before ‘port_lock’ usb-serial.h:76: warning: type defaults to ‘int’ in declaration of ‘port_lock’ usb-serial.h:76: warning: data definition has no type or storage class usb-serial.h:79: error: syntax error before ‘}’ token usb-serial.h:92: error: array type has incomplete element type usb-serial.h:127: warning: ‘struct file’ declared inside parameter list usb-serial.h:128: warning: ‘struct file’ declared inside parameter list usb-serial.h:131: warning: ‘struct file’ declared inside parameter list usb-serial.h: In function ‘serial_paranoia_check’: usb-serial.h:164: warning: implicit declaration of function ‘dbg’ usb-serial.h: In function ‘port_paranoia_check’: usb-serial.h:188: error: dereferencing pointer to incomplete type usb-serial.h:193: error: dereferencing pointer to incomplete type usb-serial.h:198: error: dereferencing pointer to incomplete type usb-serial.h: In function ‘get_usb_serial’: usb-serial.h:209: error: dereferencing pointer to incomplete type usb-serial.h:215: error: dereferencing pointer to incomplete type pl2303.c: At top level: pl2303.c:42: warning: ‘struct file’ declared inside parameter list pl2303.c:43: warning: ‘struct file’ declared inside parameter list pl2303.c:47: warning: ‘struct file’ declared inside parameter list pl2303.c:53: error: array type has incomplete element type pl2303.c:54: warning: implicit declaration of function ‘USB_DEVICE’ pl2303.c:58: error: array type has incomplete element type pl2303.c:63: error: invalid application of ‘sizeof’ to incomplete type ‘struct u sb_device_id’ pl2303.c:78: warning: initialization from incompatible pointer type pl2303.c:79: warning: initialization from incompatible pointer type pl2303.c:83: warning: initialization from incompatible pointer type pl2303.c: In function ‘prolific_sa_startup’: 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 once pl2303.c:137: error: for each function it appears in.) pl2303.c:148: error: dereferencing pointer to incomplete type pl2303.c:149: warning: implicit declaration of function ‘info’ pl2303.c:149: error: dereferencing pointer to incomplete type pl2303.c:151: warning: implicit declaration of function ‘init_waitqueue_head’ pl2303.c: In function ‘prolific_sa_shutdown’: pl2303.c:170: warning: implicit declaration of function ‘kfree’ pl2303.c: At top level: pl2303.c:174: warning: ‘struct file’ declared inside parameter list pl2303.c:175: error: conflicting types for ‘prolific_sa_open’ pl2303.c:42: error: previous declaration of ‘prolific_sa_open’ was here pl2303.c: In function ‘prolific_sa_open’: pl2303.c:178: error: syntax error before string constant pl2303.c:180: warning: implicit declaration of function ‘spin_lock_irqsave’ pl2303.c:180: error: dereferencing pointer to incomplete type pl2303.c:182: error: dereferencing pointer to incomplete type pl2303.c:183: warning: implicit declaration of function ‘atomic_inc’ pl2303.c:183: error: ‘__this_module’ undeclared (first use in this function) pl2303.c:183: warning: value computed is not used pl2303.c:185: error: dereferencing pointer to incomplete type pl2303.c:186: error: dereferencing pointer to incomplete type pl2303.c:193: error: dereferencing pointer to incomplete type pl2303.c:193: error: dereferencing pointer to incomplete type pl2303.c:194: warning: implicit declaration of function ‘usb_submit_urb’ pl2303.c:194: error: dereferencing pointer to incomplete type pl2303.c:195: warning: implicit declaration of function ‘err’ pl2303.c:197: error: dereferencing pointer to incomplete type pl2303.c:197: error: dereferencing pointer to incomplete type pl2303.c:198: error: dereferencing pointer to incomplete type pl2303.c:202: warning: implicit declaration of function ‘spin_unlock_irqrestore’ pl2303.c:202: error: dereferencing pointer to incomplete type pl2303.c: At top level: pl2303.c:207: warning: ‘struct file’ declared inside parameter list pl2303.c:208: error: conflicting types for ‘prolific_sa_close’ pl2303.c:43: error: previous declaration of ‘prolific_sa_close’ was here pl2303.c: In function ‘prolific_sa_close’: pl2303.c:211: error: syntax error before string constant pl2303.c:213: error: dereferencing pointer to incomplete type pl2303.c:215: error: dereferencing pointer to incomplete type pl2303.c:216: warning: implicit declaration of function ‘atomic_dec’ pl2303.c:216: error: ‘__this_module’ undeclared (first use in this function) pl2303.c:216: warning: value computed is not used pl2303.c:218: error: dereferencing pointer to incomplete type pl2303.c:220: warning: implicit declaration of function ‘usb_unlink_urb’ pl2303.c:220: error: dereferencing pointer to incomplete type pl2303.c:221: error: dereferencing pointer to incomplete type pl2303.c:222: error: dereferencing pointer to incomplete type pl2303.c:223: error: dereferencing pointer to incomplete type pl2303.c:226: error: dereferencing pointer to incomplete type pl2303.c: In function ‘prolific_sa_read_int_callback’: pl2303.c:231: error: dereferencing pointer to incomplete type pl2303.c:232: error: dereferencing pointer to incomplete type pl2303.c:234: error: dereferencing pointer to incomplete type pl2303.c:237: error: dereferencing pointer to incomplete type pl2303.c:243: error: dereferencing pointer to incomplete type pl2303.c:247: error: dereferencing pointer to incomplete type pl2303.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: In function ‘prolific_sa_set_termios’: pl2303.c:304: error: dereferencing pointer to incomplete type pl2303.c:305: error: dereferencing pointer to incomplete type pl2303.c:306: error: dereferencing pointer to incomplete type pl2303.c:307: error: dereferencing pointer to incomplete type pl2303.c:311: error: syntax error before string constant pl2303.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: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: syntax error before string constant pl2303.c: In function ‘prolific_sa_break_ctl’: pl2303.c:397: error: dereferencing pointer to incomplete type pl2303.c: At top level: pl2303.c:409: warning: ‘struct file’ declared inside parameter list pl2303.c:410: error: conflicting types for ‘prolific_sa_ioctl’ pl2303.c:47: error: previous declaration of ‘prolific_sa_ioctl’ was here pl2303.c: In function ‘prolific_sa_ioctl’: pl2303.c:411: error: dereferencing pointer to incomplete type pl2303.c:413: error: dereferencing pointer to incomplete type pl2303.c:416: error: syntax error before string constant pl2303.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: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:502: error: dereferencing pointer to incomplete type pl2303.c:508: error: dereferencing pointer to incomplete type pl2303.c:510: error: syntax error before string constant pl2303.c: In function ‘prolific_sa_write’: pl2303.c:533: error: dereferencing pointer to incomplete type pl2303.c:537: error: syntax error before string constant pl2303.c:540: error: syntax error before string constant pl2303.c:552: error: dereferencing pointer to incomplete type pl2303.c:553: warning: implicit declaration of function ‘schedule’ pl2303.c:555: error: dereferencing pointer to incomplete type pl2303.c:556: error: dereferencing pointer to incomplete type pl2303.c:556: error: dereferencing pointer to incomplete type pl2303.c:561: warning: implicit declaration of function ‘copy_from_user’ pl2303.c:561: error: dereferencing pointer to incomplete type pl2303.c:564: warning: implicit declaration of function ‘memcpy’ pl2303.c:564: warning: incompatible implicit declaration of built-in function ‘m emcpy’ pl2303.c:564: error: dereferencing pointer to incomplete type pl2303.c:568: warning: implicit declaration of function ‘FILL_BULK_URB’ pl2303.c:568: error: dereferencing pointer to incomplete type pl2303.c:568: warning: implicit declaration of function ‘usb_sndbulkpipe’ pl2303.c:568: error: dereferencing pointer to incomplete type pl2303.c:569: error: dereferencing pointer to incomplete type pl2303.c:574: error: dereferencing pointer to incomplete type pl2303.c:576: error: syntax error before string constant pl2303.c:577: error: dereferencing pointer to incomplete type pl2303.c:581: error: dereferencing pointer to incomplete type pl2303.c: In function ‘prolific_sa_write_bulk_callback’: pl2303.c:591: error: dereferencing pointer to incomplete type pl2303.c:594: error: syntax error before string constant pl2303.c:597: error: syntax error before string constant pl2303.c:601: error: dereferencing pointer to incomplete type pl2303.c:602: error: syntax error before string constant pl2303.c:606: warning: implicit declaration of function ‘queue_task’ pl2303.c:606: error: dereferencing pointer to incomplete type 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) make: *** [pl2303.o] Error 1 [schapman43@localhost Linux]$ |
Doesnt look like that did much good either. [schapman43@localhost Linux]$ make clean rm -f *.o [schapman43@localhost Linux]$ ./configure bash: ./configure: No such file or directory [schapman43@localhost Linux]$ make 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.c pl2303.c:1: error: CPU you selected does not support x86-64 instruction set pl2303.c:1: error: CPU you selected does not support x86-64 instruction set make: *** [pl2303.o] Error 1 [schapman43@localhost Linux]$ make install make: *** No rule to make target `install'. Stop. [schapman43@localhost Linux]$ |
Its the GM-210 model www.holux.com.tw/Temp%20web/download-data.html#GM-210 |
My guess is, it's expecting 2.4 kernel header files. You have a 2.6x kernel. Hmmm...what's the make and model of the device? I'll see if I can hunt something down. EDIT: Gotcha. |
Same deal [root@localhost ld_pl2303_v0213]# make CPUFLAGS='-DCPU=\"x86_64\" -march=athlon64' KINCLUDES='/usr/include/linux' gcc -D__KERNEL__ -I/usr/include/linux -DCPU=\"x86_64\" -march=athlon64 -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -DMODULE -c pl2303.c In file included from pl2303.c:12: /usr/include/linux/config.h:5:2: error: #error Incorrectly using glibc headers for a kernel module In file included from /usr/include/linux/sched.h:14, from pl2303.c:14: /usr/include/linux/timex.h:148: error: field ‘time’ has incomplete type In file included from /usr/include/asm/system.h:4, from /usr/include/linux/sched.h:16, from pl2303.c:14: /usr/include/asm-x86_64/system.h: In function ‘__cmpxchg’: /usr/include/asm-x86_64/system.h:74: error: syntax error before ‘LOCK_PREFIX’ /usr/include/asm-x86_64/system.h:80: error: syntax error before ‘LOCK_PREFIX’ /usr/include/asm-x86_64/system.h:86: error: syntax error before ‘LOCK_PREFIX’ /usr/include/asm-x86_64/system.h:92: error: syntax error before ‘LOCK_PREFIX’ In file included from /usr/include/asm/processor.h:4, from /usr/include/linux/sched.h:69, from pl2303.c:14: /usr/include/asm-x86_64/processor.h: At top level: /usr/include/asm-x86_64/processor.h:75: error: conflicting types for ‘____cacheline_aligned’ /usr/include/asm-x86_64/pda.h:25: error: previous declaration of ‘____cacheline_aligned’ was here /usr/include/asm-x86_64/processor.h:88: error: array type has incomplete element type /usr/include/asm-x86_64/processor.h:292: error: syntax error before ‘u16’ /usr/include/asm-x86_64/processor.h:294: error: syntax error before ‘twd’ /usr/include/asm-x86_64/processor.h:295: error: syntax error before ‘fop’ /usr/include/asm-x86_64/processor.h:296: error: syntax error before ‘rip’ /usr/include/asm-x86_64/processor.h:297: error: syntax error before ‘rdp’ /usr/include/asm-x86_64/processor.h:298: error: syntax error before ‘mxcsr’ /usr/include/asm-x86_64/processor.h:299: error: syntax error before ‘mxcsr_mask’ /usr/include/asm-x86_64/processor.h:300: error: syntax error before ‘st_space’ /usr/include/asm-x86_64/processor.h:301: error: syntax error before ‘xmm_space’ /usr/include/asm-x86_64/processor.h:302: error: syntax error before ‘padding’ /usr/include/asm-x86_64/processor.h:303: error: syntax error before ‘}’ token /usr/include/asm-x86_64/processor.h:306: error: field ‘fxsave’ has incomplete type /usr/include/asm-x86_64/processor.h:314: error: syntax error before ‘u32’ /usr/include/asm-x86_64/processor.h:316: error: syntax error before ‘rsp1’ /usr/include/asm-x86_64/processor.h:317: error: syntax error before ‘rsp2’ /usr/include/asm-x86_64/processor.h:318: error: syntax error before ‘reserved2’ /usr/include/asm-x86_64/processor.h:319: error: syntax error before ‘ist’ /usr/include/asm-x86_64/processor.h:320: error: syntax error before ‘reserved3’ /usr/include/asm-x86_64/processor.h:321: error: syntax error before ‘reserved4’ /usr/include/asm-x86_64/processor.h:322: error: syntax error before ‘reserved5’ /usr/include/asm-x86_64/processor.h:323: error: syntax error before ‘io_map_base’ /usr/include/asm-x86_64/processor.h:324: error: syntax error before ‘io_bitmap’ /usr/include/asm-x86_64/processor.h:325: error: syntax error before ‘}’ token /usr/include/asm-x86_64/processor.h:347: error: syntax error before ‘u32’ /usr/include/asm-x86_64/processor.h: In function ‘thread_saved_pc’: /usr/include/asm-x86_64/processor.h:396: error: dereferencing pointer to incomplete type pl2303.c:19:24: error: linux/slab.h: No such file or directory In file included from pl2303.c:22: /usr/include/linux/tty_driver.h: At top level: /usr/include/linux/tty_driver.h:130: error: field ‘init_termios’ has incomplete type pl2303.c:23:28: error: linux/tty_flip.h: No such file or directory In file included from pl2303.c:33: usb-serial.h:72: error: syntax error before ‘wait_queue_head_t’ usb-serial.h:72: warning: no semicolon at end of struct or union usb-serial.h:76: error: syntax error before ‘port_lock’ usb-serial.h:76: warning: type defaults to ‘int’ in declaration of ‘port_lock’ usb-serial.h:76: warning: data definition has no type or storage class usb-serial.h:79: error: syntax error before ‘}’ token usb-serial.h:92: error: array type has incomplete element type usb-serial.h:127: warning: ‘struct file’ declared inside parameter list usb-serial.h:128: warning: ‘struct file’ declared inside parameter list usb-serial.h:131: warning: ‘struct file’ declared inside parameter list usb-serial.h: In function ‘serial_paranoia_check’: usb-serial.h:164: warning: implicit declaration of function ‘dbg’ usb-serial.h: In function ‘port_paranoia_check’: usb-serial.h:188: error: dereferencing pointer to incomplete type usb-serial.h:193: error: dereferencing pointer to incomplete type usb-serial.h:198: error: dereferencing pointer to incomplete type usb-serial.h: In function ‘get_usb_serial’: usb-serial.h:209: error: dereferencing pointer to incomplete type usb-serial.h:215: error: dereferencing pointer to incomplete type pl2303.c: At top level: pl2303.c:42: warning: ‘struct file’ declared inside parameter list pl2303.c:43: warning: ‘struct file’ declared inside parameter list pl2303.c:47: warning: ‘struct file’ declared inside parameter list pl2303.c:53: error: array type has incomplete element type pl2303.c:54: warning: implicit declaration of function ‘USB_DEVICE’ pl2303.c:58: error: array type has incomplete element type pl2303.c:63: error: invalid application of ‘sizeof’ to incomplete type ‘struct usb_device_id’ pl2303.c:78: warning: initialization from incompatible pointer type pl2303.c:79: warning: initialization from incompatible pointer type pl2303.c:83: warning: initialization from incompatible pointer type pl2303.c: In function ‘prolific_sa_startup’: 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 once pl2303.c:137: error: for each function it appears in.) pl2303.c:148: error: dereferencing pointer to incomplete type pl2303.c:149: warning: implicit declaration of function ‘info’ pl2303.c:149: error: dereferencing pointer to incomplete type pl2303.c:151: warning: implicit declaration of function ‘init_waitqueue_head’ pl2303.c: In function ‘prolific_sa_shutdown’: pl2303.c:170: warning: implicit declaration of function ‘kfree’ pl2303.c: At top level: pl2303.c:174: warning: ‘struct file’ declared inside parameter list pl2303.c:175: error: conflicting types for ‘prolific_sa_open’ pl2303.c:42: error: previous declaration of ‘prolific_sa_open’ was here pl2303.c: In function ‘prolific_sa_open’: pl2303.c:178: error: syntax error before string constant pl2303.c:180: warning: implicit declaration of function ‘spin_lock_irqsave’ pl2303.c:180: error: dereferencing pointer to incomplete type pl2303.c:182: error: dereferencing pointer to incomplete type pl2303.c:183: warning: implicit declaration of function ‘atomic_inc’ pl2303.c:183: error: ‘__this_module’ undeclared (first use in this function) pl2303.c:183: warning: value computed is not used pl2303.c:185: error: dereferencing pointer to incomplete type pl2303.c:186: error: dereferencing pointer to incomplete type pl2303.c:193: error: dereferencing pointer to incomplete type pl2303.c:193: error: dereferencing pointer to incomplete type pl2303.c:194: warning: implicit declaration of function ‘usb_submit_urb’ pl2303.c:194: error: dereferencing pointer to incomplete type pl2303.c:195: warning: implicit declaration of function ‘err’ pl2303.c:197: error: dereferencing pointer to incomplete type pl2303.c:197: error: dereferencing pointer to incomplete type pl2303.c:198: error: dereferencing pointer to incomplete type pl2303.c:202: warning: implicit declaration of function ‘spin_unlock_irqrestore’ pl2303.c:202: error: dereferencing pointer to incomplete type pl2303.c: At top level: pl2303.c:207: warning: ‘struct file’ declared inside parameter list pl2303.c:208: error: conflicting types for ‘prolific_sa_close’ pl2303.c:43: error: previous declaration of ‘prolific_sa_close’ was here pl2303.c: In function ‘prolific_sa_close’: pl2303.c:211: error: syntax error before string constant pl2303.c:213: error: dereferencing pointer to incomplete type pl2303.c:215: error: dereferencing pointer to incomplete type pl2303.c:216: warning: implicit declaration of function ‘atomic_dec’ pl2303.c:216: error: ‘__this_module’ undeclared (first use in this function) pl2303.c:216: warning: value computed is not used pl2303.c:218: error: dereferencing pointer to incomplete type pl2303.c:220: warning: implicit declaration of function ‘usb_unlink_urb’ pl2303.c:220: error: dereferencing pointer to incomplete type pl2303.c:221: error: dereferencing pointer to incomplete type pl2303.c:222: error: dereferencing pointer to incomplete type pl2303.c:223: error: dereferencing pointer to incomplete type pl2303.c:226: error: dereferencing pointer to incomplete type pl2303.c: In function ‘prolific_sa_read_int_callback’: pl2303.c:231: error: dereferencing pointer to incomplete type pl2303.c:232: error: dereferencing pointer to incomplete type pl2303.c:234: error: dereferencing pointer to incomplete type pl2303.c:237: error: dereferencing pointer to incomplete type pl2303.c:243: error: dereferencing pointer to incomplete type pl2303.c:247: error: dereferencing pointer to incomplete type pl2303.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: In function ‘prolific_sa_set_termios’: pl2303.c:304: error: dereferencing pointer to incomplete type pl2303.c:305: error: dereferencing pointer to incomplete type pl2303.c:306: error: dereferencing pointer to incomplete type pl2303.c:307: error: dereferencing pointer to incomplete type pl2303.c:311: error: syntax error before string constant pl2303.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: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: syntax error before string constant pl2303.c: In function ‘prolific_sa_break_ctl’: pl2303.c:397: error: dereferencing pointer to incomplete type pl2303.c: At top level: pl2303.c:409: warning: ‘struct file’ declared inside parameter list pl2303.c:410: error: conflicting types for ‘prolific_sa_ioctl’ pl2303.c:47: error: previous declaration of ‘prolific_sa_ioctl’ was here pl2303.c: In function ‘prolific_sa_ioctl’: pl2303.c:411: error: dereferencing pointer to incomplete type pl2303.c:413: error: dereferencing pointer to incomplete type pl2303.c:416: error: syntax error before string constant pl2303.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: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:502: error: dereferencing pointer to incomplete type pl2303.c:508: error: dereferencing pointer to incomplete type pl2303.c:510: error: syntax error before string constant pl2303.c: In function ‘prolific_sa_write’: pl2303.c:533: error: dereferencing pointer to incomplete type pl2303.c:537: error: syntax error before string constant pl2303.c:540: error: syntax error before string constant pl2303.c:552: error: dereferencing pointer to incomplete type pl2303.c:553: warning: implicit declaration of function ‘schedule’ pl2303.c:555: error: dereferencing pointer to incomplete type pl2303.c:556: error: dereferencing pointer to incomplete type pl2303.c:556: error: dereferencing pointer to incomplete type pl2303.c:561: warning: implicit declaration of function ‘copy_from_user’ pl2303.c:561: error: dereferencing pointer to incomplete type pl2303.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 type pl2303.c:568: warning: implicit declaration of function ‘FILL_BULK_URB’ pl2303.c:568: error: dereferencing pointer to incomplete type pl2303.c:568: warning: implicit declaration of function ‘usb_sndbulkpipe’ pl2303.c:568: error: dereferencing pointer to incomplete type pl2303.c:569: error: dereferencing pointer to incomplete type pl2303.c:574: error: dereferencing pointer to incomplete type pl2303.c:576: error: syntax error before string constant pl2303.c:577: error: dereferencing pointer to incomplete type pl2303.c:581: error: dereferencing pointer to incomplete type pl2303.c: In function ‘prolific_sa_write_bulk_callback’: pl2303.c:591: error: dereferencing pointer to incomplete type pl2303.c:594: error: syntax error before string constant pl2303.c:597: error: syntax error before string constant pl2303.c:601: error: dereferencing pointer to incomplete type pl2303.c:602: error: syntax error before string constant pl2303.c:606: warning: implicit declaration of function ‘queue_task’ pl2303.c:606: error: dereferencing pointer to incomplete type 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) make: *** [pl2303.o] Error 1 [root@localhost ld_pl2303_v0213]# What website were you looking at where you found others with the same problem? |
[schapman43@localhost ~]$ tail /var/log/dmesg eth0: no IPv6 routers present audit(1122879194.111:2): avc: denied { write } for pid=2094 comm="fsck" name=rhgb-console dev=ramfs ino=7168 scontext=system_u:system_r:fsadm_t tcontext=system_u:object_r:ramfs_t tclass=fifo_file EXT3 FS on dm-0, internal journal kjournald starting. Commit interval 5 seconds EXT3 FS on sda2, internal journal EXT3-fs: mounted filesystem with ordered data mode. SELinux: initialized (dev sda2, type ext3), uses xattr SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs Adding 2031608k swap on /dev/VolGroup00/LogVol01. Priority:-1 extents:1 SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts [schapman43@localhost ~]$ ======================================================================================================== [schapman43@localhost ~]$ cat /proc/bus/usb/devices T: Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.11-1.1369_FC4 uhci_hcd S: Product=UHCI Host Controller S: SerialNumber=0000:00:10.3 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.11-1.1369_FC4 uhci_hcd S: Product=UHCI Host Controller S: SerialNumber=0000:00:10.2 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=067b ProdID=2303 Rev= 3.00 S: Manufacturer=Prolific Technology Inc. S: Product=USB-Serial Controller C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=pl2303 E: Ad=81(I) Atr=03(Int.) MxPS= 10 Ivl=1ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.11-1.1369_FC4 uhci_hcd S: Product=UHCI Host Controller S: SerialNumber=0000:00:10.1 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.11-1.1369_FC4 uhci_hcd S: Product=UHCI Host Controller S: SerialNumber=0000:00:10.0 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 8 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.11-1.1369_FC4 ehci_hcd S: Product=EHCI Host Controller S: SerialNumber=0000:00:10.4 C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms [schapman43@localhost ~]$ |