The problem of usb-skeleton.c compilation in Linux System ~ Could you please advise. Urgent.

Source: Internet
Author: User
The problem of usb-skeleton.c compilation in Linux System ~ Could you please advise. Urgent. -- Linux general technology-Linux programming and kernel information. The following is a detailed description. I recently learned how to write a program for usb communication between two linux-based servers!
The instructor only needs to complete the analysis of the USB driver in linux, and then add a function to receive and feedback information ..
Mainly for the application of usb-skeleton.c .. But according to the Internet (http://hi.baidu.com/wenlongren/ B... a993d7f6039e35.html) Guidance, according to the requirements after done, make found a lot of problems, can not pass .. I don't know what's going on. Which expert will give you some advice .. You can also advise if you have other methods to implement usb interface communication between linux servers .. Urgent ..


However, there are many problems after compilation .. Please advise.
[Root @ localhost usb] # make
Make-C/lib/modules/2.6.18-8. el5/build M =/root/usb modules
Make [1]: Entering directory '/usr/src/kernels/2.6.18-8. el5-i686'
CC [M]/root/usb. o
/Root/usb. c: 32: Warning: large integer implicit truncation is of the unsigned type
/Root/usb. c: 32: Warning: large integer implicit truncation is of the unsigned type
/Root/usb. c: 54: error: the type of the field 'submitted' is incomplete.
/Root/usb. c: In the 'skel _ open' function:
/Root/usb. c: 110: Error: Implicit declaration function 'usb _ autopm_get_interface'
/Root/usb. c: In the 'skel _ release' function:
/Root/usb. c: 145: Error: Implicit declaration function 'usb _ autopm_put_interface'
/Root/usb. c: In the 'skel _ write' function:
/Root/usb. c: 296: Warning: transfer between incompatible pointer types when passing parameter 6 ('usb _ fill_bulk_urb ')
/Root/usb. c: 298: Error: Implicit declaration function 'usb _ anchor_urb'
/Root/usb. c: 315: Error: Implicit declaration function 'usb _ unanchor_urb'
/Root/usb. c: In the 'skel _ probe 'function:
/Root/usb. c: 365: Error: Implicit declaration function 'init _ usb_anchor'
/Root/usb. c: 377: Error: Implicit declaration function 'usb _ endpoint_is_bulk_in'
/Root/usb. c: 390: Error: Implicit declaration function 'usb _ endpoint_is_bulk_out'
/Root/usb. c: In the 'skel _ disconnect 'function:
/Root/usb. c: 439: Error: Implicit declaration function 'usb _ kill_anchored_urbs'
/Root/usb. c: In the 'skel _ draw_down 'function:
/Root/usb. c: 451: Error: Implicit declaration function 'usb _ wait_anchor_empty_timeout'
/Root/usb. c: At the top layer:
/Root/usb. c: 498: Warning: incompatible pointer type Initialization
/Root/usb. c: 499: Warning: incompatible pointer type Initialization
/Root/usb. c: 501: Error: Unknown field 'ororts _ autosuspend' exists in the initial value setting'
/Root/usb. c: 501: Warning: curly brackets are missing around the Initial Value
/Root/usb. c: 501: Warning :( near initialization of 'skel _ driver. dynids)
Make [2]: *** [/root/usb. o] Error 1
Make [1]: *** [_ module _/root/usb] Error 2
Make [1]: Leaving directory '/usr/src/kernels/2.6.18-8. el5-i686'
Make: *** [default] Error 2
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.