[#7287] Can not build usb.c with libaio

Document created by Aaronwu Employee on Sep 12, 2013
Version 1Show Document
  • View in full screen mode

[#7287] Can not build usb.c with libaio

Submitted By: Vivi Li

Open Date

2012-08-24 05:27:45    

Priority:

Medium     Assignee:

Bob Liu

Status:

Open     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Rejected

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-2012_Aug_09

App binary format:

N/A     

Summary: Can not build usb.c with libaio

Details:

 

Can not build usb.c with libaio.

 

--

bfin-linux-uclibc-gcc -Wall -DAIO -g -o usb usb.c usbstring.c -lpthread -laio

usb.c:42:20: error: libaio.h: No such file or directory

usb.c: In function ‘iso_autoconfig’:

usb.c:584: error: ‘struct usb_endpoint_descriptor’ has no member named ‘bmAttribute’

usb.c: In function ‘queue_release’:

usb.c:946: warning: implicit declaration of function ‘io_destroy’

usb.c:946: error: ‘io_context_t’ undeclared (first use in this function)

usb.c:946: error: (Each undeclared identifier is reported only once

usb.c:946: error: for each function it appears in.)

usb.c:946: error: expected expression before ‘)’ token

usb.c: At top level:

usb.c:949: error: expected ‘)’ before ‘ctx’

usb.c:975: error: expected ‘)’ before ‘ctx’

usb.c: In function ‘aio_in_thread’:

usb.c:1024: error: ‘io_context_t’ undeclared (first use in this function)

usb.c:1024: error: expected ‘;’ before ‘ctx’

usb.c:1035: warning: implicit declaration of function ‘io_setup’

usb.c:1035: error: ‘ctx’ undeclared (first use in this function)

usb.c:1044: error: dereferencing pointer to incomplete type

usb.c:1047: error: increment of pointer to unknown structure

usb.c:1047: error: arithmetic on pointer to an incomplete type

usb.c:1057: warning: implicit declaration of function ‘io_prep_pwrite’

usb.c:1060: warning: implicit declaration of function ‘io_set_callback’

usb.c:1060: error: ‘in_complete’ undeclared (first use in this function)

usb.c:1061: error: dereferencing pointer to incomplete type

usb.c:1063: warning: implicit declaration of function ‘io_submit’

usb.c:1074: warning: implicit declaration of function ‘io_run’

usb.c: At top level:

usb.c:1087: error: expected ‘)’ before ‘ctx’

usb.c: In function ‘aio_out_thread’:

usb.c:1124: error: ‘io_context_t’ undeclared (first use in this function)

usb.c:1124: error: expected ‘;’ before ‘ctx’

usb.c:1135: error: ‘ctx’ undeclared (first use in this function)

usb.c:1144: error: dereferencing pointer to incomplete type

usb.c:1147: error: increment of pointer to unknown structure

usb.c:1147: error: arithmetic on pointer to an incomplete type

usb.c:1157: warning: implicit declaration of function ‘io_prep_pread’

usb.c:1158: error: ‘out_complete’ undeclared (first use in this function)

usb.c:1159: error: dereferencing pointer to incomplete type

make: *** [usb] Error 1

--

 

Follow-ups

 

--- Bob Liu                                                  2012-09-11 03:46:24

need libaio support on blackfin

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes