Results 1 to 10 of 21
Hello,
I am new to Linux and I'm trying to install an USB-RS232 adapter (Velleman's PCUSB6) on my PC.
So, I downloaded the installation file (''Driver software (Mac/Linux/Windows)'') on the ...
- 06-11-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 9
Installation Problems - USB-RS232 adapter
Hello,
I am new to Linux and I'm trying to install an USB-RS232 adapter (Velleman's PCUSB6) on my PC.
So, I downloaded the installation file (''Driver software (Mac/Linux/Windows)'') on the company site (just google Velleman-downloads PCUSB6)
, and I typed in my command window ''make inst'' just as it says in the readme.txt. Unfortunately, that didn't work. What I suspect is that the MakeFile was made for RedHat, so Ubuntu is unable to read it ???
Here's what I got after ''make inst'':
Code:genevieve@genevieve-laptop:~/Téléchargements/pcusb6/Linux/Redhat9$ make inst gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -I/usr/src/linux-2.4/drivers/usb/serial -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -DMODULE -c pl2303.c pl2303.c:33:26: error: linux/config.h: Aucun fichier ou dossier de ce type pl2303.c:36:24: error: linux/init.h: Aucun fichier ou dossier de ce type pl2303.c:37:24: error: linux/slab.h: Aucun fichier ou dossier de ce type pl2303.c:39:30: error: linux/tty_driver.h: Aucun fichier ou dossier de ce type pl2303.c:40:28: error: linux/tty_flip.h: Aucun fichier ou dossier de ce type pl2303.c:42:26: error: linux/module.h: Aucun fichier ou dossier de ce type pl2303.c:43:28: error: linux/spinlock.h: Aucun fichier ou dossier de ce type pl2303.c:44:25: error: asm/uaccess.h: Aucun fichier ou dossier de ce type pl2303.c:45:23: error: linux/usb.h: Aucun fichier ou dossier de ce type pl2303.c:53:24: error: usb-serial.h: Aucun fichier ou dossier de ce type pl2303.c:54:20: error: pl2303.h: Aucun fichier ou dossier de ce type pl2303.c:64: error: array type has incomplete element type pl2303.c:65: warning: implicit declaration of function ‘USB_DEVICE’ pl2303.c:65: error: ‘PL2303_VENDOR_ID’ undeclared here (not in a function) pl2303.c:65: error: ‘PL2303_PRODUCT_ID’ undeclared here (not in a function) pl2303.c:66: error: ‘PL2303_PRODUCT_ID_RSAQ2’ undeclared here (not in a function) pl2303.c:67: error: ‘IODATA_VENDOR_ID’ undeclared here (not in a function) pl2303.c:67: error: ‘IODATA_PRODUCT_ID’ undeclared here (not in a function) pl2303.c:68: error: ‘ATEN_VENDOR_ID’ undeclared here (not in a function) pl2303.c:68: error: ‘ATEN_PRODUCT_ID’ undeclared here (not in a function) pl2303.c:69: error: ‘ELCOM_VENDOR_ID’ undeclared here (not in a function) pl2303.c:69: error: ‘ELCOM_PRODUCT_ID’ undeclared here (not in a function) pl2303.c:70: error: ‘ITEGNO_VENDOR_ID’ undeclared here (not in a function) pl2303.c:70: error: ‘ITEGNO_PRODUCT_ID’ undeclared here (not in a function) pl2303.c:71: error: ‘MA620_VENDOR_ID’ undeclared here (not in a function) pl2303.c:71: error: ‘MA620_PRODUCT_ID’ undeclared here (not in a function) pl2303.c:72: error: ‘RATOC_VENDOR_ID’ undeclared here (not in a function) pl2303.c:72: error: ‘RATOC_PRODUCT_ID’ undeclared here (not in a function) pl2303.c:76: warning: data definition has no type or storage class pl2303.c:76: warning: type defaults to ‘int’ in declaration of ‘MODULE_DEVICE_TABLE’ pl2303.c:76: warning: parameter names (without types) in function declaration pl2303.c:102: warning: ‘struct file’ declared inside parameter list pl2303.c:102: warning: its scope is only this definition or declaration, which is probably not what you want pl2303.c:102: warning: ‘struct usb_serial_port’ declared inside parameter list pl2303.c:103: warning: ‘struct file’ declared inside parameter list pl2303.c:103: warning: ‘struct usb_serial_port’ declared inside parameter list pl2303.c:105: warning: ‘struct termios’ declared inside parameter list pl2303.c:105: warning: ‘struct usb_serial_port’ declared inside parameter list pl2303.c:107: warning: ‘struct file’ declared inside parameter list pl2303.c:107: warning: ‘struct usb_serial_port’ declared inside parameter list pl2303.c:108: warning: ‘struct urb’ declared inside parameter list pl2303.c:109: warning: ‘struct urb’ declared inside parameter list pl2303.c:110: warning: ‘struct urb’ declared inside parameter list pl2303.c:112: warning: ‘struct usb_serial_port’ declared inside parameter list pl2303.c:113: warning: ‘struct usb_serial_port’ declared inside parameter list pl2303.c:114: warning: ‘struct usb_serial’ declared inside parameter list pl2303.c:115: warning: ‘struct usb_serial’ declared inside parameter list pl2303.c:119: error: variable ‘pl2303_device’ has initializer but incomplete type pl2303.c:120: error: unknown field ‘owner’ specified in initializer pl2303.c:120: error: ‘THIS_MODULE’ undeclared here (not in a function) pl2303.c:120: warning: excess elements in struct initializer pl2303.c:120: warning: (near initialization for ‘pl2303_device’) pl2303.c:121: error: unknown field ‘name’ specified in initializer pl2303.c:121: warning: excess elements in struct initializer pl2303.c:121: warning: (near initialization for ‘pl2303_device’) pl2303.c:122: error: unknown field ‘id_table’ specified in initializer pl2303.c:122: warning: excess elements in struct initializer pl2303.c:122: warning: (near initialization for ‘pl2303_device’) pl2303.c:123: error: unknown field ‘num_interrupt_in’ specified in initializer pl2303.c:123: error: ‘NUM_DONT_CARE’ undeclared here (not in a function) pl2303.c:123: warning: excess elements in struct initializer pl2303.c:123: warning: (near initialization for ‘pl2303_device’) pl2303.c:124: error: unknown field ‘num_bulk_in’ specified in initializer pl2303.c:124: warning: excess elements in struct initializer pl2303.c:124: warning: (near initialization for ‘pl2303_device’) pl2303.c:125: error: unknown field ‘num_bulk_out’ specified in initializer pl2303.c:125: warning: excess elements in struct initializer pl2303.c:125: warning: (near initialization for ‘pl2303_device’) pl2303.c:126: error: unknown field ‘num_ports’ specified in initializer pl2303.c:126: warning: excess elements in struct initializer pl2303.c:126: warning: (near initialization for ‘pl2303_device’) pl2303.c:127: error: unknown field ‘open’ specified in initializer pl2303.c:127: warning: excess elements in struct initializer pl2303.c:127: warning: (near initialization for ‘pl2303_device’) pl2303.c:128: error: unknown field ‘close’ specified in initializer pl2303.c:128: warning: excess elements in struct initializer pl2303.c:128: warning: (near initialization for ‘pl2303_device’) pl2303.c:129: error: unknown field ‘write’ specified in initializer pl2303.c:129: warning: excess elements in struct initializer pl2303.c:129: warning: (near initialization for ‘pl2303_device’) ................. ................. make: *** [pl2303.o] Erreur 1
How can I install this adapter on Linux?
Thanks for your help !!!
- 06-11-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,975
This is the device driver code. You need to have the kernel-devel package installed on your system first, otherwise you won't have the kernel headers needed to build this package. It is not "normal" software, but kernel module code.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-11-2010 #3Just Joined!
- Join Date
- Jun 2010
- Posts
- 9
Hi Rubberman,
thank you for your response.
Where do I find this kernel-device ?
Is there a name for it ? As I said, I'm a newbie...
- 06-11-2010 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,975
Open the synaptic package manager and look for kernel. One of the entries will be something like "kernel-devel" and another (possibly) of "kernel-headers". Download and install both of those.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-11-2010 #5Just Joined!
- Join Date
- Jun 2010
- Posts
- 9
ok, all I could find on Synaptic was kernel-package, but still the same errors occurs when I try the ''make inst''
I opened the Makefile for the adapter installation:
Code:# USB-Serial Makefile # # USAGE: # To install driver - # make inst (The Makefile will check the module and compile and link it automatically. It will also remove # the loaded USB-Serial driver) # # To uninstall driver - # make uninst # # To uninstall all drivers (including base driver) - # make uninst_all # # To remove module (*.o) files - # make clean # ###KINCLUDES=/usr/src/linux-2.4/include ### DRVINCLUDES=/usr/src/linux-2.4/drivers/usb/serial KINCLUDES=/usr/src/linux-headers-2.6.32-22/include DRVINCLUDES=/usr/src/linux-headers-2.6.32-22/drivers/usb/serial # 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 BASE_MODULE= usbserial CC= gcc CPPFLAGS= -D__KERNEL__ -I$(KINCLUDES) -I$(DRVINCLUDES) MODFLAGS= -DMODULE KERNFLAGS= $(CPPFLAGS) $(CPUFLAGS) $(SMPFLAGS) \ -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer \ -fno-strict-aliasing -fno-common -Wno-unused # EXTRA_CFLAGS= -DEXPORT_SYMTAB # DBGCFLAGS= -DDEBUG -DCONFIG_USB_SERIAL_DEBUG CFLAGS= $(KERNFLAGS) $(DBGCFLAGS) $(MODFLAGS) RELVER= $(shell uname -r) all:: $(MODULE).o $(MODULE).o: $(MODULE).c $(CC) $(CFLAGS) -c $< .PHONY: inst, uninst, uninst_all, clean inst: $(MODULE).o ifneq (,$(findstring $(MODULE),$(shell lsmod | grep $(MODULE)))) # if module was already loaded rmmod $(MODULE) insmod ./$(MODULE).o else ifeq (,$(findstring $(BASE_MODULE),$(shell lsmod | grep $(BASE_MODULE)))) # if there is no base module insmod /lib/modules/$(RELVER)/kernel/drivers/usb/serial/$(BASE_MODULE).o endif insmod ./$(MODULE).o endif @echo @echo ">> Please unplug and plug the cable if it is already plugged-in. <<" @echo uninst: ifneq (,$(findstring $(MODULE),$(shell lsmod | grep $(MODULE)))) # if module was loaded rmmod $(MODULE) endif @echo @echo ">> The USB-Serial driver is removed! <<" @echo uninst_all: ifneq (,$(findstring $(MODULE),$(shell lsmod | grep $(MODULE)))) # if module was loaded rmmod $(MODULE) endif ifneq (,$(findstring $(BASE_MODULE),$(shell lsmod | grep $(BASE_MODULE)))) # if base module was loaded rmmod $(BASE_MODULE) endif @echo @echo ">> The USB-Serial and base driver are removed! <<" @echo clean: rm -f *.o
. I modified the following:
KINCLUDES=/usr/src/linux-2.4/include
DRVINCLUDES=/usr/src/linux-2.4/drivers/usb/serial to the actual headers I have:
because I'm not able to find these headers in Synaptic (linux-2.4/include), I tried with the one installed on my computer:
KINCLUDES=/usr/src/linux-headers-2.6.32-22/include
DRVINCLUDES=/usr/src/linux-headers-2.6.32-22/drivers/usb/serial
And now I have the following messages:
Do you think that if I had the linux-2.4 headers it would work?Code:pl2303.c:381: error: request for member ‘dev’ in something not a structure or union pl2303.c:381: error: ‘struct usb_device_id’ has no member named ‘descriptor’ pl2303.c:381: error: request for member ‘bMaxPacketSize0’ in something not a structure or union pl2303.c:381: warning: comparison between pointer and integer pl2303.c:383: error: dereferencing pointer to incomplete type pl2303.c:383: error: request for member ‘dev’ in something not a structure or union pl2303.c:383: error: ‘struct usb_device_id’ has no member named ‘descriptor’ pl2303.c:383: error: request for member ‘bDeviceClass’ in something not a structure or union pl2303.c:385: error: dereferencing pointer to incomplete type pl2303.c:385: error: request for member ‘dev’ in something not a structure or union pl2303.c:385: error: ‘struct usb_device_id’ has no member named ‘descriptor’ pl2303.c:385: error: request for member ‘bDeviceClass’ in something not a structure or union pl2303.c:385: warning: comparison between pointer and integer pl2303.c:388: warning: implicit declaration of function ‘info’ pl2303.c:390: error: dereferencing pointer to incomplete type pl2303.c:390: error: request for member ‘sem’ in something not a structure or union pl2303.c:390: warning: passing argument 1 of ‘down’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/semaphore.h:42: note: expected ‘struct semaphore *’ but argument is of type ‘struct usb_device_id (*)[1]’ pl2303.c:392: error: dereferencing pointer to incomplete type pl2303.c:392: error: request for member ‘open_count’ in something not a structure or union pl2303.c:392: error: lvalue required as increment operand pl2303.c:393: error: ‘MOD_INC_USE_COUNT’ undeclared (first use in this function) pl2303.c:395: error: dereferencing pointer to incomplete type pl2303.c:395: error: request for member ‘active’ in something not a structure or union pl2303.c:396: error: dereferencing pointer to incomplete type pl2303.c:396: error: request for member ‘active’ in something not a structure or union pl2303.c:408: error: dereferencing pointer to incomplete type pl2303.c:408: error: request for member ‘dev’ in something not a structure or union pl2303.c:408: error: dereferencing pointer to incomplete type pl2303.c:408: error: request for member ‘dev’ in something not a structure or union pl2303.c:408: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:408: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:409: error: dereferencing pointer to incomplete type pl2303.c:409: error: request for member ‘dev’ in something not a structure or union pl2303.c:409: error: dereferencing pointer to incomplete type pl2303.c:409: error: request for member ‘dev’ in something not a structure or union pl2303.c:409: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:409: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:410: error: dereferencing pointer to incomplete type pl2303.c:410: error: request for member ‘dev’ in something not a structure or union pl2303.c:410: error: dereferencing pointer to incomplete type pl2303.c:410: error: request for member ‘dev’ in something not a structure or union pl2303.c:410: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:410: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:411: error: dereferencing pointer to incomplete type pl2303.c:411: error: request for member ‘dev’ in something not a structure or union pl2303.c:411: error: dereferencing pointer to incomplete type pl2303.c:411: error: request for member ‘dev’ in something not a structure or union pl2303.c:411: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:411: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:412: error: dereferencing pointer to incomplete type pl2303.c:412: error: request for member ‘dev’ in something not a structure or union pl2303.c:412: error: dereferencing pointer to incomplete type pl2303.c:412: error: request for member ‘dev’ in something not a structure or union pl2303.c:412: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:412: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:413: error: dereferencing pointer to incomplete type pl2303.c:413: error: request for member ‘dev’ in something not a structure or union pl2303.c:413: error: dereferencing pointer to incomplete type pl2303.c:413: error: request for member ‘dev’ in something not a structure or union pl2303.c:413: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:413: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:414: error: dereferencing pointer to incomplete type pl2303.c:414: error: request for member ‘dev’ in something not a structure or union pl2303.c:414: error: dereferencing pointer to incomplete type pl2303.c:414: error: request for member ‘dev’ in something not a structure or union pl2303.c:414: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:414: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:415: error: dereferencing pointer to incomplete type pl2303.c:415: error: request for member ‘dev’ in something not a structure or union pl2303.c:415: error: dereferencing pointer to incomplete type pl2303.c:415: error: request for member ‘dev’ in something not a structure or union pl2303.c:415: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:415: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:416: error: dereferencing pointer to incomplete type pl2303.c:416: error: request for member ‘dev’ in something not a structure or union pl2303.c:416: error: dereferencing pointer to incomplete type pl2303.c:416: error: request for member ‘dev’ in something not a structure or union pl2303.c:416: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:416: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:417: error: dereferencing pointer to incomplete type pl2303.c:417: error: request for member ‘dev’ in something not a structure or union pl2303.c:417: error: dereferencing pointer to incomplete type pl2303.c:417: error: request for member ‘dev’ in something not a structure or union pl2303.c:417: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:417: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:420: error: dereferencing pointer to incomplete type pl2303.c:420: error: request for member ‘dev’ in something not a structure or union pl2303.c:420: error: dereferencing pointer to incomplete type pl2303.c:420: error: request for member ‘dev’ in something not a structure or union pl2303.c:420: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:420: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:422: error: dereferencing pointer to incomplete type pl2303.c:422: error: request for member ‘dev’ in something not a structure or union pl2303.c:422: error: dereferencing pointer to incomplete type pl2303.c:422: error: request for member ‘dev’ in something not a structure or union pl2303.c:422: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:422: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:426: error: dereferencing pointer to incomplete type pl2303.c:426: error: request for member ‘tty’ in something not a structure or union pl2303.c:426: error: ‘struct usb_device_id’ has no member named ‘termios’ pl2303.c:426: error: incompatible types when assigning to type ‘struct usb_device_id’ from type ‘struct ktermios’ pl2303.c:427: error: dereferencing pointer to incomplete type pl2303.c:427: error: request for member ‘tty’ in something not a structure or union pl2303.c:427: error: ‘struct usb_device_id’ has no member named ‘termios’ pl2303.c:427: error: ‘struct usb_device_id’ has no member named ‘c_cflag’ pl2303.c:429: warning: passing argument 1 of ‘pl2303_set_termios’ from incompatible pointer type pl2303.c:212: note: expected ‘struct usb_serial_port *’ but argument is of type ‘struct usb_serial_port *’ pl2303.c:434: error: dereferencing pointer to incomplete type pl2303.c:434: error: request for member ‘read_urb’ in something not a structure or union pl2303.c:434: error: ‘struct usb_device_id’ has no member named ‘dev’ pl2303.c:434: error: dereferencing pointer to incomplete type pl2303.c:434: error: request for member ‘dev’ in something not a structure or union pl2303.c:435: error: dereferencing pointer to incomplete type pl2303.c:435: error: request for member ‘read_urb’ in something not a structure or union pl2303.c:435: warning: passing argument 1 of ‘usb_submit_urb’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1338: note: expected ‘struct urb *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:435: error: too few arguments to function ‘usb_submit_urb’ pl2303.c:435: warning: assignment makes integer from pointer without a cast pl2303.c:437: error: expected ‘)’ before ‘KBUILD_MODNAME’ pl2303.c:438: error: dereferencing pointer to incomplete type pl2303.c:438: error: request for member ‘sem’ in something not a structure or union pl2303.c:438: warning: passing argument 1 of ‘up’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/semaphore.h:47: note: expected ‘struct semaphore *’ but argument is of type ‘struct usb_device_id (*)[1]’ pl2303.c:439: warning: passing argument 1 of ‘pl2303_close’ from incompatible pointer type pl2303.c:102: note: expected ‘struct usb_serial_port *’ but argument is of type ‘struct usb_serial_port *’ pl2303.c:444: error: dereferencing pointer to incomplete type pl2303.c:444: error: request for member ‘interrupt_in_urb’ in something not a structure or union pl2303.c:444: error: ‘struct usb_device_id’ has no member named ‘dev’ pl2303.c:444: error: dereferencing pointer to incomplete type pl2303.c:444: error: request for member ‘dev’ in something not a structure or union pl2303.c:445: error: dereferencing pointer to incomplete type pl2303.c:445: error: request for member ‘interrupt_in_urb’ in something not a structure or union pl2303.c:445: warning: passing argument 1 of ‘usb_submit_urb’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1338: note: expected ‘struct urb *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:445: error: too few arguments to function ‘usb_submit_urb’ pl2303.c:445: warning: assignment makes integer from pointer without a cast pl2303.c:447: error: expected ‘)’ before ‘KBUILD_MODNAME’ pl2303.c:448: error: dereferencing pointer to incomplete type pl2303.c:448: error: request for member ‘sem’ in something not a structure or union pl2303.c:448: warning: passing argument 1 of ‘up’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/semaphore.h:47: note: expected ‘struct semaphore *’ but argument is of type ‘struct usb_device_id (*)[1]’ pl2303.c:449: warning: passing argument 1 of ‘pl2303_close’ from incompatible pointer type pl2303.c:102: note: expected ‘struct usb_serial_port *’ but argument is of type ‘struct usb_serial_port *’ pl2303.c:453: error: dereferencing pointer to incomplete type pl2303.c:453: error: request for member ‘sem’ in something not a structure or union pl2303.c:453: warning: passing argument 1 of ‘up’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/semaphore.h:47: note: expected ‘struct semaphore *’ but argument is of type ‘struct usb_device_id (*)[1]’ pl2303.c: At top level: pl2303.c:458: warning: ‘struct usb_serial_port’ declared inside parameter list pl2303.c:458: error: conflicting types for ‘pl2303_close’ pl2303.c:102: note: previous declaration of ‘pl2303_close’ was here pl2303.c: In function ‘pl2303_close’: pl2303.c:467: warning: implicit declaration of function ‘get_usb_serial’ pl2303.c:467: warning: assignment makes pointer from integer without a cast pl2303.c:473: error: dereferencing pointer to incomplete type pl2303.c:473: error: request for member ‘open_count’ in something not a structure or union pl2303.c:473: error: lvalue required as decrement operand pl2303.c:474: error: dereferencing pointer to incomplete type pl2303.c:474: error: request for member ‘open_count’ in something not a structure or union pl2303.c:475: error: dereferencing pointer to incomplete type pl2303.c:475: error: request for member ‘dev’ in something not a structure or union pl2303.c:476: error: dereferencing pointer to incomplete type pl2303.c:476: error: request for member ‘tty’ in something not a structure or union pl2303.c:476: error: ‘struct usb_device_id’ has no member named ‘termios’ pl2303.c:476: error: ‘struct usb_device_id’ has no member named ‘c_cflag’ pl2303.c:476: warning: assignment makes integer from pointer without a cast pl2303.c:479: error: dereferencing pointer to incomplete type pl2303.c:479: error: request for member ‘private’ in something not a structure or union pl2303.c:479: warning: assignment from incompatible pointer type pl2303.c:481: error: dereferencing pointer to incomplete type pl2303.c:481: error: request for member ‘serial’ in something not a structure or union pl2303.c:481: error: ‘struct usb_device_id’ has no member named ‘dev’ pl2303.c:482: warning: passing argument 1 of ‘set_control_lines’ from incompatible pointer type pl2303.c:162: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:487: error: dereferencing pointer to incomplete type pl2303.c:487: error: request for member ‘write_urb’ in something not a structure or union pl2303.c:487: warning: passing argument 1 of ‘usb_unlink_urb’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1339: note: expected ‘struct urb *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:493: error: dereferencing pointer to incomplete type pl2303.c:493: error: request for member ‘read_urb’ in something not a structure or union pl2303.c:493: warning: passing argument 1 of ‘usb_unlink_urb’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1339: note: expected ‘struct urb *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:499: error: dereferencing pointer to incomplete type pl2303.c:499: error: request for member ‘interrupt_in_urb’ in something not a structure or union pl2303.c:499: warning: passing argument 1 of ‘usb_unlink_urb’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1339: note: expected ‘struct urb *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:506: error: dereferencing pointer to incomplete type pl2303.c:506: error: request for member ‘active’ in something not a structure or union pl2303.c:507: error: dereferencing pointer to incomplete type pl2303.c:507: error: request for member ‘open_count’ in something not a structure or union pl2303.c:510: error: ‘MOD_DEC_USE_COUNT’ undeclared (first use in this function) pl2303.c: At top level: pl2303.c:513: warning: ‘struct usb_serial_port’ declared inside parameter list pl2303.c: In function ‘set_modem_info’: pl2303.c:515: error: dereferencing pointer to incomplete type pl2303.c:515: error: request for member ‘private’ in something not a structure or union pl2303.c:515: warning: initialization from incompatible pointer type pl2303.c:545: error: dereferencing pointer to incomplete type pl2303.c:545: error: request for member ‘serial’ in something not a structure or union pl2303.c:545: error: ‘struct usb_device_id’ has no member named ‘dev’ pl2303.c:545: warning: passing argument 1 of ‘set_control_lines’ from incompatible pointer type pl2303.c:162: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c: At top level: pl2303.c:548: warning: ‘struct usb_serial_port’ declared inside parameter list pl2303.c: In function ‘get_modem_info’: pl2303.c:550: error: dereferencing pointer to incomplete type pl2303.c:550: error: request for member ‘private’ in something not a structure or union pl2303.c:550: warning: initialization from incompatible pointer type pl2303.c: At top level: pl2303.c:564: warning: ‘struct usb_serial_port’ declared inside parameter list pl2303.c:564: error: conflicting types for ‘pl2303_ioctl’ pl2303.c:105: note: previous declaration of ‘pl2303_ioctl’ was here pl2303.c: In function ‘pl2303_ioctl’: pl2303.c:572: warning: passing argument 1 of ‘get_modem_info’ from incompatible pointer type pl2303.c:548: note: expected ‘struct usb_serial_port *’ but argument is of type ‘struct usb_serial_port *’ pl2303.c:578: warning: passing argument 1 of ‘set_modem_info’ from incompatible pointer type pl2303.c:513: note: expected ‘struct usb_serial_port *’ but argument is of type ‘struct usb_serial_port *’ pl2303.c: At top level: pl2303.c:589: warning: ‘struct usb_serial_port’ declared inside parameter list pl2303.c:589: error: conflicting types for ‘pl2303_break_ctl’ pl2303.c:112: note: previous declaration of ‘pl2303_break_ctl’ was here pl2303.c: In function ‘pl2303_break_ctl’: pl2303.c:591: error: dereferencing pointer to incomplete type pl2303.c:591: error: request for member ‘serial’ in something not a structure or union pl2303.c:591: warning: initialization from incompatible pointer type pl2303.c:603: error: dereferencing pointer to incomplete type pl2303.c:603: error: request for member ‘dev’ in something not a structure or union pl2303.c:603: error: dereferencing pointer to incomplete type pl2303.c:603: error: request for member ‘dev’ in something not a structure or union pl2303.c:603: warning: passing argument 1 of ‘__create_pipe’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1530: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:605: warning: passing argument 1 of ‘usb_control_msg’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1404: note: expected ‘struct usb_device *’ but argument is of type ‘struct usb_device_id *’ pl2303.c: At top level: pl2303.c:611: warning: ‘struct usb_serial’ declared inside parameter list pl2303.c:611: error: conflicting types for ‘pl2303_shutdown’ pl2303.c:114: note: previous declaration of ‘pl2303_shutdown’ was here pl2303.c: In function ‘pl2303_shutdown’: pl2303.c:618: error: dereferencing pointer to incomplete type pl2303.c:618: error: request for member ‘num_ports’ in something not a structure or union pl2303.c:618: warning: comparison between pointer and integer pl2303.c:619: error: dereferencing pointer to incomplete type pl2303.c:619: error: request for member ‘port’ in something not a structure or union pl2303.c:619: error: ‘struct usb_device_id’ has no member named ‘open_count’ pl2303.c:620: error: dereferencing pointer to incomplete type pl2303.c:620: error: request for member ‘port’ in something not a structure or union pl2303.c:620: warning: passing argument 1 of ‘pl2303_close’ from incompatible pointer type pl2303.c:458: note: expected ‘struct usb_serial_port *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:621: error: dereferencing pointer to incomplete type pl2303.c:621: error: request for member ‘port’ in something not a structure or union pl2303.c:621: error: ‘struct usb_device_id’ has no member named ‘private’ pl2303.c: In function ‘pl2303_read_int_callback’: pl2303.c:628: error: ‘struct urb’ has no member named ‘context’ pl2303.c:629: warning: initialization makes pointer from integer without a cast pl2303.c:644: error: ‘struct urb’ has no member named ‘actual_length’ pl2303.c: In function ‘pl2303_read_bulk_callback’: pl2303.c:655: error: ‘struct urb’ has no member named ‘context’ pl2303.c:656: warning: initialization makes pointer from integer without a cast pl2303.c:674: error: dereferencing pointer to incomplete type pl2303.c:674: error: request for member ‘active’ in something not a structure or union pl2303.c:682: error: dereferencing pointer to incomplete type pl2303.c:682: error: request for member ‘dev’ in something not a structure or union pl2303.c:682: warning: assignment from incompatible pointer type pl2303.c:683: error: too few arguments to function ‘usb_submit_urb’ pl2303.c:683: warning: assignment makes integer from pointer without a cast pl2303.c:685: error: expected ‘)’ before ‘KBUILD_MODNAME’ pl2303.c:692: error: ‘struct urb’ has no member named ‘actual_length’ pl2303.c:694: error: dereferencing pointer to incomplete type pl2303.c:694: error: request for member ‘tty’ in something not a structure or union pl2303.c:694: warning: assignment from incompatible pointer type pl2303.c:695: error: ‘struct urb’ has no member named ‘actual_length’ pl2303.c:696: error: ‘struct urb’ has no member named ‘actual_length’ pl2303.c:696: warning: comparison between pointer and integer pl2303.c:697: error: ‘struct tty_struct’ has no member named ‘flip’ pl2303.c:697: error: request for member ‘count’ in something not a structure or union pl2303.c:697: error: ‘TTY_FLIPBUF_SIZE’ undeclared (first use in this function) pl2303.c:706: error: dereferencing pointer to incomplete type pl2303.c:706: error: request for member ‘active’ in something not a structure or union pl2303.c:707: error: dereferencing pointer to incomplete type pl2303.c:707: error: request for member ‘dev’ in something not a structure or union pl2303.c:707: warning: assignment from incompatible pointer type pl2303.c:708: error: too few arguments to function ‘usb_submit_urb’ pl2303.c:708: warning: assignment makes integer from pointer without a cast pl2303.c:710: error: expected ‘)’ before ‘KBUILD_MODNAME’ pl2303.c: In function ‘pl2303_write_bulk_callback’: pl2303.c:720: error: ‘struct urb’ has no member named ‘context’ pl2303.c:730: warning: implicit declaration of function ‘serial_paranoia_check’ pl2303.c:730: error: dereferencing pointer to incomplete type pl2303.c:730: error: request for member ‘serial’ in something not a structure or union pl2303.c:735: error: dereferencing pointer to incomplete type pl2303.c:735: error: request for member ‘write_urb’ in something not a structure or union pl2303.c:735: error: ‘struct usb_device_id’ has no member named ‘transfer_buffer_length’ pl2303.c:736: error: dereferencing pointer to incomplete type pl2303.c:736: error: request for member ‘write_urb’ in something not a structure or union pl2303.c:736: error: ‘struct usb_device_id’ has no member named ‘dev’ pl2303.c:736: error: dereferencing pointer to incomplete type pl2303.c:736: error: request for member ‘serial’ in something not a structure or union pl2303.c:736: error: ‘struct usb_device_id’ has no member named ‘dev’ pl2303.c:737: error: dereferencing pointer to incomplete type pl2303.c:737: error: request for member ‘write_urb’ in something not a structure or union pl2303.c:737: warning: passing argument 1 of ‘usb_submit_urb’ from incompatible pointer type /usr/src/linux-headers-2.6.32-22/include/linux/usb.h:1338: note: expected ‘struct urb *’ but argument is of type ‘struct usb_device_id *’ pl2303.c:737: error: too few arguments to function ‘usb_submit_urb’ pl2303.c:737: warning: assignment makes integer from pointer without a cast pl2303.c:739: error: expected ‘)’ before ‘KBUILD_MODNAME’ pl2303.c:744: warning: implicit declaration of function ‘queue_task’ pl2303.c:744: error: dereferencing pointer to incomplete type pl2303.c:744: error: request for member ‘tqueue’ in something not a structure or union pl2303.c:744: error: ‘tq_immediate’ undeclared (first use in this function) pl2303.c:745: warning: implicit declaration of function ‘mark_bh’ pl2303.c:745: error: ‘IMMEDIATE_BH’ undeclared (first use in this function) pl2303.c: In function ‘pl2303_init’: pl2303.c:753: warning: implicit declaration of function ‘usb_serial_register’ pl2303.c: In function ‘pl2303_exit’: pl2303.c:761: warning: implicit declaration of function ‘usb_serial_deregister’ pl2303.c: At top level: pl2303.c:771: error: expected ‘)’ before string constant make: *** [pl2303.o] Erreur 1
- 06-11-2010 #6Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,975
What distribution+version of linux are you running? Also, what kernel are you running? You can find the kernel with the command uname -r
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-11-2010 #7Just Joined!
- Join Date
- Jun 2010
- Posts
- 9
I'm on Ubuntu 10.04 kernel Debian and for uname-r:
genevieve@genevieve-laptop:~$ uname-r
uname-r: command not found
and with ls-boot I got:
genevieve@genevieve-laptop:~$ ls /boot
abi-2.6.32-21-generic memtest86+.bin
abi-2.6.32-22-generic System.map-2.6.32-21-generic
config-2.6.32-21-generic System.map-2.6.32-22-generic
config-2.6.32-22-generic vmcoreinfo-2.6.32-21-generic
grub vmcoreinfo-2.6.32-22-generic
initrd.img-2.6.32-21-generic vmlinuz-2.6.32-21-generic
initrd.img-2.6.32-22-generic vmlinuz-2.6.32-22-generic
- 06-11-2010 #8Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,975
There is a space between uname and -r
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 06-11-2010 #9
Hmm, rubberman, you did see that this installation is for redhat 9,
the errors indicate, that this module is for a 2.4 kernel?
Without a rewrite, this module might be useless on a ubuntu 10.04.
genevi03, can you please do a
That reveals the usb id of that device, which can be used for a google search.Code:lsusb
You must always face the curtain with a bow.
- 06-11-2010 #10
Also, there is a chance, that it just works(tm)
Can you plug it in and then do a
andCode:dmesg
If the device file is there, then it is ready to be used.Code:ls -la /dev/ttyUSB*
You must always face the curtain with a bow.


Reply With Quote